Skip to main content

API to retrieve data from Eltern-Portal

Project description

pyelternportal

Project Maintenance GitHub Release GitHub Activity License Code style: black

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


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.9.tar.gz (59.5 kB view details)

Uploaded Source

Built Distribution

pyelternportal-0.0.9-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file pyelternportal-0.0.9.tar.gz.

File metadata

  • Download URL: pyelternportal-0.0.9.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

Hashes for pyelternportal-0.0.9.tar.gz
Algorithm Hash digest
SHA256 5df7a4bad7f4b7a4108868e0551c5a7f46f58f6e778345f0b6fac7472e20d0b7
MD5 939e715bcd023a0fbdc0526fabdcb41f
BLAKE2b-256 d69bc3ee6c065b589b90e09b623ea68b6a097c18b77d2afe1796a88fb11e4a49

See more details on using hashes here.

File details

Details for the file pyelternportal-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for pyelternportal-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2637570b8e4440a1bee42fbfe834e507cc302f99228262aa7882dddcfd4d0401
MD5 15faa51788499b83f7cce627159b202c
BLAKE2b-256 a67b3de81ee577aab3f27b0e6671ee176191786675ddc0ac23e99bc0e2875a14

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page