Metadata-Version: 2.1
Name: skolmaten-python
Version: 1.0.0
Summary: An python wrapper for the skolmaten service.
Home-page: https://github.com/simoncircle/skolmaten-python
Author: Simon Lövskog
Author-email: simon@lovskog.eu
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: xmltodict

# skolmaten-python

[![Build Status](https://jenkins.lovskog.net/buildStatus/icon?job=skolmaten-python%2Fmaster&style=flat-square)](https://jenkins.lovskog.net/job/skolmaten-python/job/master/)

This is a simple wrapper for the [skolmaten.se](https://skolmaten.se) service.

I wrote this becuase I needed a way to get the data for what I am going to eat in school for some stuff. So, why not publish it and help somebody else.

FOR NON-SWEDISH PEPOLE: [skolmaten.se](https://skolmaten.se) has data for what is going to be servered in schools all over Sweden.

## Usage

```python

from skolmaten import skolmaten

# You can find the id of your school by going to skolmaten.se, selecting your school, and looking in the address bar. 
# For example this is what I see for polhemsskolan => https://skolmaten.se/polhemsskolan2/
schoolFood = skolmaten("polhemsskolan2")

weekly = schoolFood.getData()
print(weekly)

[{'date': datetime.datetime(2019, 10, 14, 0, 0), 'food': [u'Falukorv med potatismos', u'Potatisfrestelse med salladsost', u'ängsbiffar']}, ... {'date': datetime.datetime(2019, 10, 21, 0, 0), 'food': [u'Pastasås Arrabiata med linser och soltorkade tomater', u'Grönsakspaj']}]

```

## Todo

- [x] Basic weekly data.
- [ ] 100% Test coverage.
- [ ] Full documation.

