A api for schoolware written in python
Project description
Schoolware-api
An api for schoolware written in python
Capabilities
- get agenda points
- get scores
- get todo items
- send telegram message for new scores
only microsoft login supported for now
Config
| Key | Description |
|---|---|
| domain | domain name of schoolware |
| user | school microsoft email |
| password | school microsoft password |
| bg | background procces to keep token valid |
| bot_token | telegram bot token to enable telegram bot |
| chat_id | id to send messages to |
| verbose | show a lot more info |
Install
pip3 install schoolware_api termcolor --upgradeplaywright install && playwright install-deps
optional
pip3 install python-telegram-bot
Simple example
from schoolware_api import schoolware_api
config = {"domain":"", "user":"", "password":""} #example domain: kov.schoolware.be user: name.lastname@leerling.kov.be password: password
schoolware = schoolware_api.schoolware(config)
print(schoolware.todo()) # Returns all todo items
print(schoolware.punten()) # Returns all scores this schoolyear
print(schoolware.agenda()) # Returns agenda points today
print(schoolware.agenda(datum="2023-03-06 00:00:00")) # Returns agenda points for 2023-03-06
Complete example
from schoolware_api import schoolware_api
config = {"domain":"","password":"","user":"","verbose": false, "bg": true, "bot_token": "", "chat_id": ""}
schoolware = schoolware_api.schoolware(config)
# same as other
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
schoolware_api-1.0.2.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file schoolware_api-1.0.2.tar.gz.
File metadata
- Download URL: schoolware_api-1.0.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d6062707f948409ba198ea2a346f10b05426b226fe90f5e3e224e34dc1c7ffb
|
|
| MD5 |
f6164e35547b59faa5c08a78fcee041d
|
|
| BLAKE2b-256 |
b9b57cfa994e57c7fb7affa2ac743b08517cd6961b2b66141cb25e7c2fcd4d4d
|
File details
Details for the file schoolware_api-1.0.2-py3-none-any.whl.
File metadata
- Download URL: schoolware_api-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58a7fa97178934d30f9337dfc5bf70a813c8166a9e5766a8499e3e05c8f38eb9
|
|
| MD5 |
a688e0f4341eeb448f7eb11f98fc4fc0
|
|
| BLAKE2b-256 |
ca565bbeb272e522a5b0024f4bafaa5ff0a4035bdedf315657249b467d9c732d
|