컴시간알리미 시간표 파싱 라이브러리입니다.
Project description
pycomcigan
컴시간알리미 에서 시간표 정보를 가져오는 Python 라이브러리입니다.
컴시간알리미 구조에 대한 설명은 comcigan.md를 참고하세요.
설치
$ pip install pycomcigan
기능
- 시간표 가져오기
- 학교 검색
- 담임 정보
사용법
Docs
예제
from pycomcigan import TimeTable, get_school_code
# 학교 검색
# [학교명, 지역명, 학교 코드, 지역 코드] 리스트로 응답
get_school_code("경기")
# 시간표 가져오기
# week_num: 0이면 이번주, 1이면 다음주
timetable = TimeTable("경기북과학고", week_num=1)
# 시간표 출력
for day in timetable.timetable[3][1]:
for time in day:
print(time, end=" ")
print()
# 3학년 1반 담임선생님
print(timetable.homeroom(3, 1))
print(timetable)
라이센스
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
pycomcigan-1.4.1.tar.gz
(7.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 pycomcigan-1.4.1.tar.gz.
File metadata
- Download URL: pycomcigan-1.4.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.13 Linux/6.17.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d02b41679583fa85ed4f23eb9111ec4694837fbdffebbd5d3ab5cf50b52e5b6
|
|
| MD5 |
13903b654fb237708dcddd20b4c22d60
|
|
| BLAKE2b-256 |
11f84b2e49bc5a8fd91e102af30b357ed24e837c9f9770f60aa58b69b609f4df
|
File details
Details for the file pycomcigan-1.4.1-py3-none-any.whl.
File metadata
- Download URL: pycomcigan-1.4.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.13 Linux/6.17.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16e028e601b02ff0d7938d8ca366c44921294b1786e9f81cab1f77a04a458969
|
|
| MD5 |
cdaafcdab4e9f2ff65f9d31069b868f4
|
|
| BLAKE2b-256 |
89d8a53403c6b64334860513cb1068f25dff5cc16c33e412ff676d98852af2f6
|