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
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 hhs-vertretungsplan-parser-0.1.4.tar.gz.
File metadata
- Download URL: hhs-vertretungsplan-parser-0.1.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb6f0deda43d23fe457f55d38dd8bee00630fcde0e9d8f49e82d28c95d5f809e
|
|
| MD5 |
3bf3f01e928e2a3dd333add3c82741b3
|
|
| BLAKE2b-256 |
df711f262a90ec51921a0f31b594c1990c398ed4b7b6aaef9c7d5da77ef1f759
|
File details
Details for the file hhs_vertretungsplan_parser-0.1.4-py3-none-any.whl.
File metadata
- Download URL: hhs_vertretungsplan_parser-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c35ea8e772f31abde128d38760d379fc5ddaf4ab8effc010b6e69e6a806a04b
|
|
| MD5 |
7133de2bd61649771929ffd8dfc62579
|
|
| BLAKE2b-256 |
5e60474ad44698321c0312da0aae26ac318bb6a0b45199a1ff76024ce140464d
|