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
Metadata
Release files for python-lectio 1.31.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-lectio-1.31.0.tar.gz | 22.1 kB | Without provenance | Details for python-lectio-1.31.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_lectio-1.31.0-py3-none-any.whl | Python 3 | none | any | Details for python_lectio-1.31.0-py3-none-any.whl |
Total release size: 52.6 kB
Release files / python-lectio-1.31.0.tar.gz
| Download URL | python-lectio-1.31.0.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd2ab98da3eda13f3e42d28ded95f3ec7a3d303b14203b0dd1dabf9adeb709bc
|
|
BLAKE2b-256 checksum How to use checksums |
153477026851ff8d304e5ad8b2d614da918b227d260731f0155a7d2bb14128c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / python_lectio-1.31.0-py3-none-any.whl
| Download URL | python_lectio-1.31.0-py3-none-any.whl |
|---|---|
| Size | 30.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d879d3f150461811d89e2cb857776a01e3d96511ea5d418a495277618a7fb08
|
|
BLAKE2b-256 checksum How to use checksums |
6d14e8c7fb26f071129fbfa766ba05f4486bea8a00af9e480e807e34f929c0a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Security for python-lectio 1.31.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.