python-lectio-unbloated


Namepython-lectio-unbloated JSON
Version 2.1.34 PyPI version JSON
download
home_pagehttps://github.com/JohnnyJTH/python-lectio
SummaryEn SDK til gymnasie siden Lectio, lavet af jona799t
upload_time2023-12-14 08:41:50
maintainer
docs_urlNone
authorJohnnyJTH
requires_python
license
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/JohnnyJTH/python-lectio",
    "name": "python-lectio-unbloated",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,lectio,sdk,gymnasie,gymnasium",
    "author": "JohnnyJTH",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/d0/7b/fe55dec9a9e51dcd7bb60e8a397354a50c6a9d546fad52b06e31cfdb159f/python-lectio-unbloated-2.1.34.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": "",
    "summary": "En SDK til gymnasie siden Lectio, lavet af jona799t",
    "version": "2.1.34",
    "project_urls": {
        "Homepage": "https://github.com/JohnnyJTH/python-lectio"
    },
    "split_keywords": [
        "python",
        "lectio",
        "sdk",
        "gymnasie",
        "gymnasium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2865adc683a6c4b5e478b180a4aeb3277b8fd4e0b1399725d86ac587fbe55ea4",
                "md5": "07948dcc3aa06993893e5176326567de",
                "sha256": "e994131614a185df1ceb4093ff78a5169c05dd239a30ad40e4f1ae0b903f3733"
            },
            "downloads": -1,
            "filename": "python_lectio_unbloated-2.1.34-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07948dcc3aa06993893e5176326567de",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 29714,
            "upload_time": "2023-12-14T08:41:49",
            "upload_time_iso_8601": "2023-12-14T08:41:49.450423Z",
            "url": "https://files.pythonhosted.org/packages/28/65/adc683a6c4b5e478b180a4aeb3277b8fd4e0b1399725d86ac587fbe55ea4/python_lectio_unbloated-2.1.34-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d07bfe55dec9a9e51dcd7bb60e8a397354a50c6a9d546fad52b06e31cfdb159f",
                "md5": "c8bda6675e183c07e8f57a73290db814",
                "sha256": "7e621b5435bbd6b6ac2a1a34d7bec491ccbc11c68edeab1c0019959d2b0c089b"
            },
            "downloads": -1,
            "filename": "python-lectio-unbloated-2.1.34.tar.gz",
            "has_sig": false,
            "md5_digest": "c8bda6675e183c07e8f57a73290db814",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 21698,
            "upload_time": "2023-12-14T08:41:50",
            "upload_time_iso_8601": "2023-12-14T08:41:50.973854Z",
            "url": "https://files.pythonhosted.org/packages/d0/7b/fe55dec9a9e51dcd7bb60e8a397354a50c6a9d546fad52b06e31cfdb159f/python-lectio-unbloated-2.1.34.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-14 08:41:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "JohnnyJTH",
    "github_project": "python-lectio",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-lectio-unbloated"
}
        
Elapsed time: 0.15942s