Skip to main content

나이스 API를 활용할 수 있게 도와주는 파이썬 패키지 입니다

Project description

Neis API

PyPI versionPyPI downloads

Neis_API를 사용하기 위해서는 토큰이 필요합니다.
토큰은 나이스 교육정보 개방 포탈 에서 신청할 수 있습니다.

특징

  • 나이스 API에 올라와있는 데이터를 가져오고, 활용할 수 있습니다.

설치

pip install Neis-API

예제

Region

# API에서 필수로 입력되어야 하는 시도교육청코드입니다.
from Neis-API import Region
# SEOUL     (서울) : B10
# BUSAN     (부산) : C10
# DAEGU     (대구) : D10
# INCHEON   (인천) : E10
# GWANGJU   (광주) : F10
# DAEJEON   (대전) : G10
# ULSAN     (울산) : H10
# SEJONG    (세종) : I10
# GYEONGGI  (경기) : J10
# GANGWON   (강원) : K10
# CHUNGBUK  (전북) : M10
# CHUNGNAM  (전남) : N10
# JEONBUK   (전북) : P10
# JEONNAM   (전남) : Q10
# GYEONGBUK (경북) : R10
# GYEONGNAM (경남) : S10
# JEJU      (제주) : T10
# FORIENGER (그 외 국제학교) : V10

print(Region.SEOUL)

### 출력 ###
# B10

mealInfo

from Neis-API import Region, mealInfo

# 날짜로 급식찾기
data = mealInfo.get_meal_data(key= "토큰",
                              atpt_ofcdc_sc_code=Region.SEOUL,
                              sd_schul_code="7091432",
                              mlsv_ymd="20211109")
print(data[0].ddish_nm) # tuple형식으로 return됩니다(검색 정확도 순)

### 결과 ###
# 기장흑미밥
# 얼큰꽃게탕5.8.9.13.17.18.
# 감자채볶음1.5.10.13.
# 매콤닭불구이1.2.5.6.15.
# 배추김치9.13.
# 힘내파인애플씨13.

라이선스

이 프로젝트는 MIT License에 속해 있습니다.

도와주신 분

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

Neis_API-0.2.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

Neis_API-0.2.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

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