zermelo api
Project description
zermelo api
documentation
install
pip install zermeloapi
how to import
import zermeloapi
initializing
zermelo = zermeloapi.zermelo(school, username, password, teacher=False, version=3)
get token
token = zermelo.get_token()
if u wand to u can give the school username and password again but u don't need to in that case u can use get_token(school,username,password)
get access token
access_token = zermelo.get_access_token()
again if u wand to u can give the school and username again but u don't need to in that case u can use get_access_token(school,username)
get schedule
raw_schedule = zermelo.get_schedule()
u can give the week number and or year of u wand to else it uses the current year/week u can use get_schedule(week=41)
,get_schedule(year=2021)
orget_schedule(year=2021,week=41)
sort schedule
sorted_schedule = zermelo.sort_schedule()
like before u can give the week and year but u can also give the schedule from get_schedule()
instead to sort it defaults to getting it self but if u give it uses that one u can do that by using it like this sort_schedule(schedule)
for the week and year it is the same syntax
readable schedule
readable = zermelo.readable_schedule()
again u can give it week and year with the same syntax as before also you can give it a sorted schedule (output from sort_schedule()
) by using readable_schedule(sorted_schedule)
print schedule
zermelo.print_schedule()
yes u can use it like this zermelo.print_schedule(zermelo.readable_schedule())
but WHY if u wand that use it like that just print(zermelo.readable_schedule())
the only use is that it defaults to zermelo.readable_schedule()
source code
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
Hashes for zermeloapi-2021.10.13.21.12.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cd982ac011e499f4b8ab92283e235536426758dedc6b58c24ac33d39ea7ff55 |
|
MD5 | b59581264b656dcac7facd6bc8f56def |
|
BLAKE2b-256 | 58a18ef20d1815b0b80a56422225916e7c44d2eba424f5c1877fd9b86f34b4e1 |