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.3.tar.gz
(5.4 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.3.tar.gz.
File metadata
- Download URL: schoolware_api-1.0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
981f27fd9263fff59ce26024589639c5e7a1862cc67953b039e9540ecc9a49dc
|
|
| MD5 |
c0af417ac8a4cf0c447a6e4f58540719
|
|
| BLAKE2b-256 |
92e45305a3f2013f4457341edb4ca30dfbf9d5ff011428aceb12bed4993471f4
|
File details
Details for the file schoolware_api-1.0.3-py3-none-any.whl.
File metadata
- Download URL: schoolware_api-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
b31add34c0949930da1ac07e23f23d52ce7c2154c02fda4843b4ce2e40b5fbd0
|
|
| MD5 |
3d2aa0d2d5001e5c4e4332f20697e7ce
|
|
| BLAKE2b-256 |
0dc83170e80647442d3ace5b4638e502cd84a18cac65ce2adae8bfebee9bb86b
|