Skip to main content

korean_school_py

A python wrapper for NEIS OpenAPI
이 파이썬 래퍼는 NEIS OpenAPI 를 위하여 제작된 라이브러리 입니다.

설치(Installation)

# Windows
py -3 -m pip install korean_school

# Linux / MacOS
python3 -m pip install korean_school

예제(Samples)

급식 정보 불러오기

import korean_school
import asyncio


async def main():
  client = korean_school.Client()
  school = await client.school(name="<학교명>")
  meal = await school[0].meal()

  print(meal[0].Meal)
  print(meal[0].allergy)
  print(meal[0].type)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
# > ['칼슘수수밥k', '감자수제비국s', '메추리알곤약조림k', '애느타리깨소스무침k', '수제코다리살강정', '배추겉절이(입찰)k', '키위']
# > [[], ['아황산염', '밀', '대두'], ['아황산염', '밀', '대두', '난류'], ['아황산염', '밀', '대두'], ['아황산염', '토마토', '밀', '대두', '난류'], ['아황산염', '새우'], []]
# > 중식
# 본 정보는 가락고등학교의 2021년 3월 19일 기준 중식 자료 입니다.

시간표 정보 불러오기

import korean_school
import asyncio


async def main():
    client = korean_school.Client()
    school = await client.school(name="<학교명>")
    # 학년과 반은 int형이나, str으로 작성해도 문제 없음.
    timetable = await school[0].timetable(grade="학년", class_nm="반")

    print("{}시간: {}".format(timetable[0].time, timetable[0].title))

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
# > 1시간: 자율활동
# 본 정보는 가락고등학교 2학년 1반의 2021년 3월 2일 기준 자료 입니다.

학원 정보 불러오기

import korean_school
import asyncio


async def main():
    client = korean_school.Client()
    # 학원 정보를 불러 올때에는 무조건 시/도 지역을 지정해주셔야합니다.
    academy = await client.academy(provincial_code=korean_school.Location.Seoul, name="<학원명>")
    print(academy[0].name)
    print(academy[0].address1)
    print(academy[0].address2)

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

사용권(License)

  • MIT License
    Copyright (c) 2021 gunyu1019

Metadata

Release files for korean-school 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for korean-school 1.0
File Size Uploaded Provenance Actions
korean_school-1.0.tar.gz 12.5 kB Without provenance Details for korean_school-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for korean-school 1.0
File Interpreter ABI Platform Actions
korean_school-1.0-py3-none-any.whl Python 3 none any Details for korean_school-1.0-py3-none-any.whl

Total release size: 31.6 kB

Release files / korean_school-1.0.tar.gz

Download URL korean_school-1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2ad3491fce98c3e7906a1e0f8ba01d4a296cb4878b2dd9853fddaa8175918b55
BLAKE2b-256 checksum
How to use checksums
a0dbc1b950c49474c328141710eda62a770aa9e080ecb36bf1edad2b961a6aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / korean_school-1.0-py3-none-any.whl

Download URL korean_school-1.0-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6abfcb4645dbb169792b798cc2f865592c68b0d0c5aff0acfd15a80086cbecc
BLAKE2b-256 checksum
How to use checksums
ca9311ffa6453800a19ec9cf87d87290105098fa55dacf232083e401a698ea84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Security for korean-school 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page