컴시간알리미 시간표 파싱 라이브러리입니다.
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)
# 3학년 1반 화요일 시간표
print(timetable.timetable[3][1][timetable.THURSDAY])
# 3학년 1반 담임선생님
print(timetable.homeroom(3, 1))
라이센스
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.3.0.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file pycomcigan-1.3.0.tar.gz
.
File metadata
- Download URL: pycomcigan-1.3.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9793a5a3407b97b53c81380ceca5a176cff24c92759f454542f9c4cbe820ccf1 |
|
MD5 | 5c2cda1f0c4f857974681f7ec79980ed |
|
BLAKE2b-256 | 310c61b9a4c33454253c61e7e6d753863bd8f3247b6627a15b8e9f9343a63ad6 |
File details
Details for the file pycomcigan-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: pycomcigan-1.3.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1768c8834e6e3a67453b332a17f81d028b0c780be961d7129eee15bbf69eb561 |
|
MD5 | 8cec5c4bd27144284174bbdd658e8017 |
|
BLAKE2b-256 | 0feaaeced1ba7426428d3acd9d8d6bfe6db95267d560a6673573d82cdd092e02 |