school meal data
Project description
๐ K-School Meal
k-๊ธ์
๋ค์ด
python3 -m pip install k-SchoolMeal
์์
import asyncio
import KSchoolMeal
#async
async def main():
school_data = await KSchoolMeal.school_code( input('school: ') )
meal_data = await KSchoolMeal.school_meal(school_data.region_code, school_data.school_code, input('date(yyyyMM): '))
# meal_data: List[SchoolMealInfo]
#sync
def main():
school_data = KSchoolMeal.sync.school_code( input('school: ') )
meal_data = KSchoolMeal.sync.school_meal(school_data.region_code, school_data.school_code, input('date(yyyyMM): '))
์ ๋ณด
๊ต์ก์ฒญ ์ฝ๋
region_codes = {
'์์ธํน๋ณ์': 'B10',
'๋ถ์ฐ๊ด์ญ์': 'C10',
'๋๊ตฌ๊ด์ญ์': 'D10',
'์ธ์ฒ๊ด์ญ์': 'E10',
'๊ด์ฃผ๊ด์ญ์': 'F10',
'๋์ ๊ด์ญ์': 'G10',
'์ธ์ฐ๊ด์ญ์': 'H10',
'์ธ์ข
ํน๋ณ์์น์': 'I10',
'๊ฒฝ๊ธฐ๋': 'J10',
'๊ฐ์๋': 'K10',
'์ถฉ์ฒญ๋ถ๋': 'M10',
'์ถฉ์ฒญ๋จ๋': 'N10',
'์ ๋ผ๋ถ๋': 'P10',
'์ ๋ผ๋จ๋': 'Q10',
'๊ฒฝ์๋ถ๋': 'R10',
'๊ฒฝ์๋จ๋': 'S10',
'์ ์ฃผํน๋ณ์์น๋': 'T10'
}
ํด๋์ค
class SchoolMealInfo: # ๊ธ์ ์ ๋ณด
region_code : str #์๋๊ต์ก์ฒญ์ฝ๋
region_office_name : str #์๋๊ต์ก์ฒญ๋ช
school_code : str #ํ์คํ๊ต์ฝ๋
school_name : str #ํ๊ต๋ช
meal_code : str #์์ฌ์ฝ๋
meal_type : str #์์ฌ๋ช
date : str #๊ธ์์ผ์
person_number: int #๊ธ์์ธ์์
dish : list[str] #์๋ฆฌ๋ช
origin_info : list[str] #์์ฐ์ง์ ๋ณด
calorie : str #์นผ๋ก๋ฆฌ์ ๋ณด
nutrients : dict[str, float] #์์์ ๋ณด
class SchoolInfo: # ํ๊ต ์ ๋ณด
region_code : str #์๋๊ต์ก์ฒญ์ฝ๋
region_office_name : str #์๋๊ต์ก์ฒญ๋ช
school_code : str #ํ์คํ๊ต์ฝ๋
school_name : str #ํ๊ต๋ช
school_level: str #ํ๊ต์ข
๋ฅ๋ช
location_name : str #์์ฌ์ง๋ช
foundation_type : str #์ค๋ฆฝ๋ช
(ex: ์ฌ๋ฆฝ, ๊ณต๋ฆฝ)
address : str #๋๋ก๋ช
์ฃผ์
tel: str #์ ํ๋ฒํธ
homepage: str #ํํ์ด์ง์ฃผ์
coeducation: str #๋จ๋
๊ณตํ๊ตฌ๋ถ๋ช
school_type : str #๊ณ ๋ฑํ๊ต๊ตฌ๋ถ๋ช
school_anniversary : str #๊ฐ๊ต๊ธฐ๋
์ผ
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
k-SchoolMeal-1.0.1.Alpha.tar.gz
(17.5 kB
view hashes)
Built Distribution
Close
Hashes for k_SchoolMeal-1.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c20937e41fd2a4009b1be3fbba9188e539e6074e17255e810489744ca404df |
|
MD5 | 38aed9068d6ccaeccfe32b1d86e16159 |
|
BLAKE2b-256 | c08c67eabe34f5e0ea23a54dc6eb7e01bf00b1849b0a80600634a7609bf522ec |