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.12.tar.gz
(59.5 kB
view details)
Built Distribution
File details
Details for the file pyelternportal-0.0.12.tar.gz
.
File metadata
- Download URL: pyelternportal-0.0.12.tar.gz
- Upload date:
- Size: 59.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16fb6cef9b3d40bc089b6ca43208f4875292d849b443416645d274af55faa1b3 |
|
MD5 | 4a16fac8de40e62d75a92a7645df2f06 |
|
BLAKE2b-256 | be6eec0468ac3fa1400e51fa3b0f3bf377b3ffd9435f6da40faf3bb5e0ce4442 |
File details
Details for the file pyelternportal-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: pyelternportal-0.0.12-py3-none-any.whl
- Upload date:
- Size: 26.4 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 | 27e95479f61d44333d9e3f4bcaa91aded814bde4c8c24cdf56b45e3c9cd674e7 |
|
MD5 | 2743acaa56d61191e7efef80a9bff3dd |
|
BLAKE2b-256 | fb67a1515e6540c96945ac0f308dc9def0c7345f41ad30e53f9b873372da6c0c |