API to retrieve data from Eltern-Portal
Project description
pyelternportal
Python client library to retrieve data provided by eltern-portal.org
Install
pip install pyelternportal
Usage by example
Get values
import pyelternportal
api = pyelternportal.ElternPortalAPI()
print(f"timezone:\t{api.timezone.zone}")
api.set_config("demo", "demo", "demo")
print(f"school:\t\t{api.school}")
print(f"username:\t{api.username}")
await api.async_validate_config()
print(f"school_name:\t{api.school_name}")
await api.async_update()
print(f"last_update:\t{api.last_update}")
for student in api.students:
print("---")
print(f"student_id:\t{student.student_id}")
print(f"fullname:\t{student.fullname}")
print(f"firstname:\t{student.firstname}")
print(f"letters:\t{len(student.letters)}")
for letter in student.letters:
print(f"\tnumber:\t\t{letter.number}")
print(f"\tsent:\t\t{letter.sent}")
print(f"\tsubject:\t{letter.subject}")
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
pyelternportal-0.0.8.tar.gz
(53.6 kB
view details)
Built Distribution
File details
Details for the file pyelternportal-0.0.8.tar.gz
.
File metadata
- Download URL: pyelternportal-0.0.8.tar.gz
- Upload date:
- Size: 53.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f250bf0a896b0e71fd4258d0838723bdd6e27c40aef5dbfe16b748e9814c96f3 |
|
MD5 | 6dde862cba82c6718ae0c4185e703150 |
|
BLAKE2b-256 | c050b5d866d13d09d2fea183e5a1495573b83950519a8b32569a34aa0c29a270 |
File details
Details for the file pyelternportal-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pyelternportal-0.0.8-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045eb96498ca94cf17a4beaf1b41362c587122f52d87a53bc930f03bb199796c |
|
MD5 | 162adc08d26a0b59c2910c5f200fc304 |
|
BLAKE2b-256 | 2ed5ac5baf716b06d60e2146feb57c22d16b65344c999c19c0e53cc14ad5f0fc |