python-lectio


Namepython-lectio JSON
Version 1.31.0 PyPI version JSON
download
home_pagehttps://github.com/jona799t/python-lectio
SummaryEn SDK til gymnasie siden Lectio
upload_time2024-06-18 09:34:38
maintainerNone
docs_urlNone
authorjona799t
requires_pythonNone
licenseNone
keywords python lectio sdk gymnasie gymnasium
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/jona799t/python-lectio/tree/old) branch og vil måske ikke returnere/fungere som den gjorde før.  
Hvis du vil bruge den [gamle python-lectio](https://github.com/jona799t/python-lectio/tree/old) kan du finde den [her](https://github.com/jona799t/python-lectio/tree/old).  
  
En dokumentation til den [nye python-lectio](https://github.com/jona799t/python-lectio/tree/main) er på vej.
## Login
Login på Lectio igennem python
```python
import lectio

client = lectio.sdk(brugernavn="mit brugernavn", adgangskode="min adgangskode", skoleId="mit skole id")
```
## Elev ID
```python
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
```python
skema = client.skema()
skemaSpecifikUge = client.skema(uge=35, år=2022)
lektierForSpecifikElev = client.lektier(elevId="...")
```
Returneret format:
```json
{
    "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
```python
lektier = client.lektier()
lektierForSpecifikElev = client.lektier(elevId="...")
```
Returneret format:
```json
[
    {
        "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.
```python
elever = client.elever(forbogstav="A")
```
Returneret format:
```json
[
    {
        "navn": "...",
        "elevid": "..."
    },
    ...
]
```


# To Do
   * Tilføj flere funktioner
   * Login med auto login key

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jona799t/python-lectio",
    "name": "python-lectio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, lectio, sdk, gymnasie, gymnasium",
    "author": "jona799t",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/15/34/77026851ff8d304e5ad8b2d614da918b227d260731f0155a7d2bb14128c9/python-lectio-1.31.0.tar.gz",
    "platform": null,
    "description": "# Python-Lectio\nEn SDK til gymnasie siden Lectio  \nDataen bliver returneret som JSON\n\n# Installation\n```\npip install python-lectio\n```\n\n# Dokumentation\nDenne dokumentation er til den [gamle python-lectio](https://github.com/jona799t/python-lectio/tree/old) branch og vil m\u00e5ske ikke returnere/fungere som den gjorde f\u00f8r.  \nHvis du vil bruge den [gamle python-lectio](https://github.com/jona799t/python-lectio/tree/old) kan du finde den [her](https://github.com/jona799t/python-lectio/tree/old).  \n  \nEn dokumentation til den [nye python-lectio](https://github.com/jona799t/python-lectio/tree/main) er p\u00e5 vej.\n## Login\nLogin p\u00e5 Lectio igennem python\n```python\nimport lectio\n\nclient = lectio.sdk(brugernavn=\"mit brugernavn\", adgangskode=\"min adgangskode\", skoleId=\"mit skole id\")\n```\n## Elev ID\n```python\nimport lectio\n\nelevId = client.elevId\n```\n\n## Skema\nSe dit skema for en hvilken som helst uge. Hvis du ikke skriver uge/\u00e5r p\u00e5 tager den for ugen n\u00e6ste skoledag\n```python\nskema = client.skema()\nskemaSpecifikUge = client.skema(uge=35, \u00e5r=2022)\nlektierForSpecifikElev = client.lektier(elevId=\"...\")\n```\nReturneret format:\n```json\n{\n    \"modulTider\": {\"1. modul\": \"8:15 - 9:15\", \"2. modul\": \"9:20 - 10:20\"...},\n    \"ugeDage\": [\"Mandag (31/10)\", \"Tirsdag (1/11)\", \"Onsdag (2/11)\"...],\n    \"moduler\": [\n        {\n            \"navn\": \"...\",\n            \"tidspunkt\": \"...\",\n            \"hold\": \"...\",\n            \"l\u00e6rer\": \"...\",\n            \"lokale\": \"...\",\n            \"absid\": \"...\",\n            \"andet\": \"...\"\n        },\n        ...\n    ],\n}\n\n```\n\n## Lektier\nF\u00e5 dine lektier for de kommende 14 dage\n```python\nlektier = client.lektier()\nlektierForSpecifikElev = client.lektier(elevId=\"...\")\n```\nReturneret format:\n```json\n[\n    {\n        \"dato\": \"...\",\n        \"aktivitet\": {\n            \"navn\": \"...\",\n            \"tidspunkt\": \"...\",\n            \"hold\": \"...\",\n            \"l\u00e6rer\": \"...\",\n            \"lokale\": \"...\",\n            \"absid\": \"...\"\n        },\n        \"note\": \"...\",\n        \"lektier\": {\n            \"beskrivelse\": \"...\",\n            \"link\": \"...\"\n        }\n    },\n    ...\n]\n```\n\n## ~~Elever~~ Brug informationer() i stedet\nF\u00e5 alle elever p\u00e5 skolen med et bestemt forbogstav.\n```python\nelever = client.elever(forbogstav=\"A\")\n```\nReturneret format:\n```json\n[\n    {\n        \"navn\": \"...\",\n        \"elevid\": \"...\"\n    },\n    ...\n]\n```\n\n\n# To Do\n   * Tilf\u00f8j flere funktioner\n   * Login med auto login key\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "En SDK til gymnasie siden Lectio",
    "version": "1.31.0",
    "project_urls": {
        "Homepage": "https://github.com/jona799t/python-lectio"
    },
    "split_keywords": [
        "python",
        " lectio",
        " sdk",
        " gymnasie",
        " gymnasium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d14e8c7fb26f071129fbfa766ba05f4486bea8a00af9e480e807e34f929c0a5",
                "md5": "276a7db56dc9e7f256c285e98f2b23c6",
                "sha256": "6d879d3f150461811d89e2cb857776a01e3d96511ea5d418a495277618a7fb08"
            },
            "downloads": -1,
            "filename": "python_lectio-1.31.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "276a7db56dc9e7f256c285e98f2b23c6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 30480,
            "upload_time": "2024-06-18T09:34:32",
            "upload_time_iso_8601": "2024-06-18T09:34:32.772402Z",
            "url": "https://files.pythonhosted.org/packages/6d/14/e8c7fb26f071129fbfa766ba05f4486bea8a00af9e480e807e34f929c0a5/python_lectio-1.31.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "153477026851ff8d304e5ad8b2d614da918b227d260731f0155a7d2bb14128c9",
                "md5": "d42535441488a1aeab60560a89dd6997",
                "sha256": "dd2ab98da3eda13f3e42d28ded95f3ec7a3d303b14203b0dd1dabf9adeb709bc"
            },
            "downloads": -1,
            "filename": "python-lectio-1.31.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d42535441488a1aeab60560a89dd6997",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22131,
            "upload_time": "2024-06-18T09:34:38",
            "upload_time_iso_8601": "2024-06-18T09:34:38.016132Z",
            "url": "https://files.pythonhosted.org/packages/15/34/77026851ff8d304e5ad8b2d614da918b227d260731f0155a7d2bb14128c9/python-lectio-1.31.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-18 09:34:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jona799t",
    "github_project": "python-lectio",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "python-lectio"
}
        
Elapsed time: 3.34827s