Skip to main content

En SDK til gymnasie siden Lectio

Project description

Python-Lectio

En SDK til gymnasie siden Lectio
Dataen bliver returneret som JSON

Installation

pip install python-lectio

Dokumentation

Denne dokumentation er til den gamle python-lectio branch og vil måske ikke returnere/fungere som den gjorde før.
Hvis du vil bruge den gamle python-lectio kan du finde den her.

En dokumentation til den nye python-lectio er på vej.

Login

Login på Lectio igennem python

import lectio

client = lectio.sdk(brugernavn="mit brugernavn", adgangskode="min adgangskode", skoleId="mit skole id")

Elev ID

import lectio

elevId = client.elevId

Skema

Se dit skema for en hvilken som helst uge. Hvis du ikke skriver uge/år på tager den for ugen næste skoledag

skema = client.skema()
skemaSpecifikUge = client.skema(uge=35, år=2022)
lektierForSpecifikElev = client.lektier(elevId="...")

Returneret format:

{
    "modulTider": {"1. modul": "8:15 - 9:15", "2. modul": "9:20 - 10:20"...},
    "ugeDage": ["Mandag (31/10)", "Tirsdag (1/11)", "Onsdag (2/11)"...],
    "moduler": [
        {
            "navn": "...",
            "tidspunkt": "...",
            "hold": "...",
            "lærer": "...",
            "lokale": "...",
            "absid": "...",
            "andet": "..."
        },
        ...
    ],
}

Lektier

Få dine lektier for de kommende 14 dage

lektier = client.lektier()
lektierForSpecifikElev = client.lektier(elevId="...")

Returneret format:

[
    {
        "dato": "...",
        "aktivitet": {
            "navn": "...",
            "tidspunkt": "...",
            "hold": "...",
            "lærer": "...",
            "lokale": "...",
            "absid": "..."
        },
        "note": "...",
        "lektier": {
            "beskrivelse": "...",
            "link": "..."
        }
    },
    ...
]

Elever Brug informationer() i stedet

Få alle elever på skolen med et bestemt forbogstav.

elever = client.elever(forbogstav="A")

Returneret format:

[
    {
        "navn": "...",
        "elevid": "..."
    },
    ...
]

To Do

  • Tilføj flere funktioner
  • Login med auto login key

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

python-lectio-1.26.4.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_lectio-1.26.4-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file python-lectio-1.26.4.tar.gz.

File metadata

  • Download URL: python-lectio-1.26.4.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for python-lectio-1.26.4.tar.gz
Algorithm Hash digest
SHA256 3915260fbde325e426923ae9f12e43466f793621722aa0a34f4fd4329982b22a
MD5 05d92136d81f8134e82c6d95fa70cab2
BLAKE2b-256 821cbafd9639b2192000ea33357fc51e018afd06879ed28c96e6297e3e5f9634

See more details on using hashes here.

File details

Details for the file python_lectio-1.26.4-py3-none-any.whl.

File metadata

  • Download URL: python_lectio-1.26.4-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for python_lectio-1.26.4-py3-none-any.whl
Algorithm Hash digest
SHA256 09a1bcdbabe6674139eb3485ba8e0afe988240122806b2b0085baeaa0fedb73c
MD5 9f5a076c91ba3b23bb09ee7eee2bb061
BLAKE2b-256 5dfbefe05aec489594ae35741a693cddb1fbe5dadacf09aea2801ce129f40f02

See more details on using hashes here.

Supported by

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