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.8.2.tar.gz (12.4 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.8.2-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-lectio-1.8.2.tar.gz
  • Upload date:
  • Size: 12.4 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.8.2.tar.gz
Algorithm Hash digest
SHA256 dddebc47f084465078705139ff974903b8efa5316eb54fb27084ea0228f94ab0
MD5 70d422934e80003b0c9f681f9e2d4071
BLAKE2b-256 8b09a966accd9985b6ad752a1063769ff8b21419363ff906783078786d17d856

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_lectio-1.8.2-py3-none-any.whl
  • Upload date:
  • Size: 30.0 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.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8001d18a9d1a1841020018079906c60f897972a59a52f60c953fbeba790c93
MD5 18f74eae194f16d141bd7452a82ec6a7
BLAKE2b-256 7dd16d6a8a9503fc7c0d30e6fae806e7abb1355af5f88666856b8739dc830449

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