A simple parser for Heinrich-Hertz-Schule, Hamburg, class substitution schedule
Project description
hhs-vertretungsplan
Python parser for the Heinrich-Hertz-Schule, Hamburg, Vertretungsplan interface
Retrieves latest status of classes being substituted.
Ask your Elternvertreter for username and password.
Usage:
import aiohttp
import asyncio
import sys
from hhs_vertretungsplan_parser.vertretungsplan_parser import HHSVertretungsplanParser
async def main(user: str, password: str):
async with aiohttp.ClientSession() as session:
hhs = HHSVertretungsplanParser(session, user, password)
await hhs.load_data()
for vertretung in hhs.vertretungen:
print(f"Klasse {vertretung.klasse} hat am {vertretung.datum} in Stunde {vertretung.stunde} im Fach {vertretung.fach} bei {vertretung.vertreter} Vertretung.")
if (__name__ == '__main__'):
# on Windows add:
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
if len(sys.argv) == 3:
asyncio.run(main(sys.argv[1], sys.argv[2]))
else:
print(f"usage: python hhs-vertretungsplan.py <user> <password>")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hhs-vertretungsplan-parser-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6f0deda43d23fe457f55d38dd8bee00630fcde0e9d8f49e82d28c95d5f809e |
|
MD5 | 3bf3f01e928e2a3dd333add3c82741b3 |
|
BLAKE2b-256 | df711f262a90ec51921a0f31b594c1990c398ed4b7b6aaef9c7d5da77ef1f759 |
Close
Hashes for hhs_vertretungsplan_parser-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c35ea8e772f31abde128d38760d379fc5ddaf4ab8effc010b6e69e6a806a04b |
|
MD5 | 7133de2bd61649771929ffd8dfc62579 |
|
BLAKE2b-256 | 5e60474ad44698321c0312da0aae26ac318bb6a0b45199a1ff76024ce140464d |