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.13.tar.gz
(59.5 kB
view details)
Built Distribution
File details
Details for the file pyelternportal-0.0.13.tar.gz
.
File metadata
- Download URL: pyelternportal-0.0.13.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 | d6ab132d45b4cf8bdc0c741d203359bcf6e69c740cefe2c757fbfd59bb881c4d |
|
MD5 | 3064130cf1dbf81a668b7cc24ac3be7d |
|
BLAKE2b-256 | b047bb5b43d0cb09a7485b15fb44fd4c2dc330b4cac3cc91fadaa9aa009dc921 |
File details
Details for the file pyelternportal-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: pyelternportal-0.0.13-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 | cc0c491a51962c550370cfec5008c2d7e42e3853fe2d663add689d0d4e6f7948 |
|
MD5 | 9e8208b7be0e6a2d72ae6e630eb9414c |
|
BLAKE2b-256 | 6f6ab28c0d8181d8fbe9fbe7fde68c788e392d9b426ec5297093f2163d13f21c |