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.4.6.tar.gz (9.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-1.4.6-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for python-lectio-1.4.6.tar.gz
Algorithm Hash digest
SHA256 28a895741bf43a6b068887aed7295688845879b665b183fbcf6490a5f5fbffd5
MD5 ced5b36380032d5204a7dfb976fc650f
BLAKE2b-256 7b40fdd874e7d67da4f28bb99aedf4ba822b28ecd86743c0b87938a8d9333da8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for python_lectio-1.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c502ccf7ead0286ddcdd3a504bbfe71586d54d112b047eb4ffee6aa1e7c4bb99
MD5 afa3695f5ca23f89b74eae79212f764e
BLAKE2b-256 0711ebe1288765489de852591c67b6600c96c89cc7ea9a31f520186a5e5b2846

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