python http client for Neis service(http://neis.go.kr/)
Project description
# pyneis
python http client for Neis service(http://neis.go.kr/)
[](https://travis-ci.org/hallazzang/pyneis)
Installation
------------
```bash
$ pip install pyneis
```
Example
-------
```python
>>> import neis
>>> client = neis.NeisClient('서울')
>>> schools = client.search_school('휘문')
>>> print(schools)
[<School: 휘문중학교>, <School: 휘문고등학교>]
>>> meals = schools[1].get_weekly_meals(2015, 10, 10, 2)
>>> print(meals)
[<Meal: Empty>, <Meal: 6 Menus>, <Meal: 6 Menus>,
<Meal: 6 Menus>, <Meal: 6 Menus>, <Meal: Empty>, <Meal: Empty>]
>>> print(meals[1].menus)
[<Menu: 혼합잡곡밥>, <Menu: 돈육김치찌개>, <Menu: 안동찜닭>,
<Menu: 콩나물무침>, <Menu: 삼치살양념구이>, <Menu: 석박지>]
```
`School.get_weekly_meals()` takes `year`, `month`, `day` and `type` for parameters.
`type` can be 1(breakfast), 2(lunch), 3(dinner).
Note
----
pyneis is developed in Python 2.7.13
python http client for Neis service(http://neis.go.kr/)
[](https://travis-ci.org/hallazzang/pyneis)
Installation
------------
```bash
$ pip install pyneis
```
Example
-------
```python
>>> import neis
>>> client = neis.NeisClient('서울')
>>> schools = client.search_school('휘문')
>>> print(schools)
[<School: 휘문중학교>, <School: 휘문고등학교>]
>>> meals = schools[1].get_weekly_meals(2015, 10, 10, 2)
>>> print(meals)
[<Meal: Empty>, <Meal: 6 Menus>, <Meal: 6 Menus>,
<Meal: 6 Menus>, <Meal: 6 Menus>, <Meal: Empty>, <Meal: Empty>]
>>> print(meals[1].menus)
[<Menu: 혼합잡곡밥>, <Menu: 돈육김치찌개>, <Menu: 안동찜닭>,
<Menu: 콩나물무침>, <Menu: 삼치살양념구이>, <Menu: 석박지>]
```
`School.get_weekly_meals()` takes `year`, `month`, `day` and `type` for parameters.
`type` can be 1(breakfast), 2(lunch), 3(dinner).
Note
----
pyneis is developed in Python 2.7.13
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyneis-0.3.0.tar.gz
(4.6 kB
view details)
Built Distribution
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 pyneis-0.3.0.tar.gz.
File metadata
- Download URL: pyneis-0.3.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17616ffa8867631799f8c302f05ffc19d426b2d070f22f1933a3be0d0f91af80
|
|
| MD5 |
f209581544ce525c376b80a746729656
|
|
| BLAKE2b-256 |
9a83d5ca5e0405dffc1746681d6baabadb4817fd39fbd3f47b11314370e07727
|
File details
Details for the file pyneis-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyneis-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45ed0a57da7b82261246df0144e57fa6ab6b745eb78ac5b801fff84986f96637
|
|
| MD5 |
8c3b9a1f5bd0729c03892137938aa7ab
|
|
| BLAKE2b-256 |
23c8e1f3fae71f2051a63018da16e1a6d5e0d7154f0e55a1645a054169ec16ef
|