컴시간알리미 시간표 파싱 라이브러리입니다.
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.0.tar.gz
(6.3 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.0.tar.gz.
File metadata
- Download URL: pycomcigan-1.4.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e569974bd8f42d0a8c8757eb18b9923ef49c04697de0fb8244f948fd1b24339
|
|
| MD5 |
d96ba2554af9fa89f1566b2b4c68d3b9
|
|
| BLAKE2b-256 |
acc751776c10c34ddf09153a20ea077ea3fa6631b4c29c761172512ffe6a0abd
|
File details
Details for the file pycomcigan-1.4.0-py3-none-any.whl.
File metadata
- Download URL: pycomcigan-1.4.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a582c853d2b9350cab728e4c95cdbadd15749b9c3966b3382dd2462ab3288d2
|
|
| MD5 |
72bfa81d69b8c59518e0303f1fb9dfe6
|
|
| BLAKE2b-256 |
917e7b3c576211779b3eb6c476a28df9d20a5e2a9865345d9c643f242eed83da
|