API to retrieve data from Eltern-Portal
Reason this release was yanked:
broken
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.7.tar.gz
(53.5 kB
view details)
Built Distribution
File details
Details for the file pyelternportal-0.0.7.tar.gz
.
File metadata
- Download URL: pyelternportal-0.0.7.tar.gz
- Upload date:
- Size: 53.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 | be18fc2149e8908a1322a8aa87984d648d436f70455b75e9710830db49b0a17c |
|
MD5 | 85c5cc5e991c4b873b664e296f68fdc8 |
|
BLAKE2b-256 | 69aa829d594b03b8d543b928491bebae3143e684873dd2024b2dfb197b4c252d |
File details
Details for the file pyelternportal-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: pyelternportal-0.0.7-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 | 8a8b4d824105349419be90202a0df6e3c4ea1afd4180ced9aa9b8a55e989810c |
|
MD5 | f0bac3f840580aefaaa8b12c52219a18 |
|
BLAKE2b-256 | 6463c28786026ead64a93bcba85a6df17240f37204dace6380163c726febacaa |