An python wrapper for the skolmaten service.
Project description
skolmaten-python
This is a simple wrapper for the 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 has data for what is going to be servered in schools all over Sweden.
Usage
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
- Basic weekly data.
- 100% Test coverage.
- Full documation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skolmaten-python-1.0.0.tar.gz.
File metadata
- Download URL: skolmaten-python-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
234f44b939d24bff6f1a9b3045eb03fa07926b9af3a999c1d8808bd279b420fc
|
|
| MD5 |
eaec21067217c1ed1ec6a1a0fc4638e1
|
|
| BLAKE2b-256 |
4ee2eebb10f2e97f14de15253567f8440b8012ba33be72b219a6be4291687922
|
File details
Details for the file skolmaten_python-1.0.0-py3-none-any.whl.
File metadata
- Download URL: skolmaten_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b528f15731053bb27e490192b4e7c478bd6e48357058dfd1405ec8c13e74072a
|
|
| MD5 |
ac9fbfefa2257211254f9dc278c7eee1
|
|
| BLAKE2b-256 |
3c7cdd31c7f1ec33c611b061b4d4c033bdc66b9d22e20949f2a60f9109257193
|
File details
Details for the file skolmaten_python-1.0.0-py2-none-any.whl.
File metadata
- Download URL: skolmaten_python-1.0.0-py2-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19f5d16187c275ea916691bfab7d23539ae5af401f7ea098d0b039c72160b32c
|
|
| MD5 |
cc5d4d9ab015b9b17e33c4426aa33a89
|
|
| BLAKE2b-256 |
d49c33c3e2f71b606ed8d27e569bdc6335ca15d5a8c6c7d50a2ae5c80055fcee
|