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

Documentation

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

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-0.0.13.tar.gz (5.5 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-0.0.13-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for python-lectio-0.0.13.tar.gz
Algorithm Hash digest
SHA256 26d5b34136347c26848bb4111c7ec7eb75e534c2f851414f1910f64aa5f36230
MD5 b8ef5bc5e96cf7deb8de2bb7e24dc58b
BLAKE2b-256 eb2126a6a73121c5f56dfaf4e549e0cfb42e6f172df34033a7dc5679c9dbb9c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_lectio-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 17.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-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 544d3bbb17d528944bdc5bd5b9371256114b797e300848d3512ac1e93aff41ad
MD5 a18a5e0be98f469229d6de580c75b3cb
BLAKE2b-256 d2c4708a86b204f608d0f92a41da5132f753fcc0780e847fbc0a711bb5b872e6

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