Skip to main content

open-neis-api wrapping with aiohttp

Project description

open-neis-api-python

현재 급식,학교정보만 가져올수있습니다.

Api키는 이곳여기서 받으실수있습니다.

Example

import asyncio
from neispy import lunch, school, sort

key = "Api key paste here"
name="인천기계공업고등학교"

async def main():
    param = await sort.sort_reqarg(key)
    scinfo = await school.schoolinfo(param, name)
    AE, SE = await sort.sort_schoolcode(scinfo)
    lunchinfo = await lunch.lunchinfo(param, AE, SE, 20190102)
    lunchmenu = await sort.sort_lunchmenu(lunchinfo)
    print(lunchmenu)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

#실행 결과
비빔밥()5.13.
계란북어국()1.5.6.13.
해시브라운/케찹()1.2.12.
배추김치()9.
볶음고추장()5.6.10.13.
삼색과일

인자값

변수명 타입 변수 설명 설명
KEY STRING(필수) 인증키 기본값 : sample key
Type STRING(필수) 호출 문서(xml, json) 기본값 : xml
pIndex INTEGER(필수) 페이지 위치 기본값 : 1(sample key는 1 고정)
pSize INTEGER(필수) 페이지 당 신청 숫자 기본값 : 100(sample key는 5 고정)

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

neispy-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neispy-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file neispy-0.1.1.tar.gz.

File metadata

  • Download URL: neispy-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for neispy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a822a36632f7aa84ccc27fde0ab01c1cf58bba88182266243b77f43250142e09
MD5 c308f61f7ce02196dd97831fa604697a
BLAKE2b-256 0a320f0977e46679d4e860dda78bcf1be8c01f8b2f920aa5931c317f222cc8fe

See more details on using hashes here.

File details

Details for the file neispy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: neispy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for neispy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da5d896b577024d1734b3891cc25949dc74ca7a3d57acf51ea062e8957850c76
MD5 47dcad2a2565687e5029b3a76d0bb27c
BLAKE2b-256 0bfaa49ff658cac98b46a12525acf15beceaf79a5425db335b3df95330edad2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page