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.3.0.tar.gz (8.7 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.3.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-lectio-1.3.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.7

File hashes

Hashes for python-lectio-1.3.0.tar.gz
Algorithm Hash digest
SHA256 4291cd252655494e0c10a9829549919bf1a99b2ed16d78d288b4821823ef243c
MD5 c23fa0149cc68ecdac0151282347a7b5
BLAKE2b-256 db02fba65aaafa3a545c9c6fcceabdc85fe88cd7e7f66f1f078d6f66771e9831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_lectio-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.7

File hashes

Hashes for python_lectio-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78c363061ff370c02c0eb2c0967f97be38f79352a284fedd45770ede2715f6a8
MD5 6928934fac638d379d8c5e8a62768171
BLAKE2b-256 059ac3a2dbba5029f1cd5fe6bfb3efff3d53943acf6184e97d9885aebda7c6ad

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