Skip to main content

A api for schoolware written in python

Project description

Schoolware-api

A api for schoolware written in python

capabilities

  • get agenda points
  • get scores
  • get todo items
  • send telegram message for new scores

config

domain: domain name of schoolware user: school microsaft email password: school microsaft password bg: background procces to keep token valid bot_token: telegram bot token to enable telegram bot chat_id: id to send messages to

install

  • pip3 install schoolware-api
  • playwright install && playwright install-deps

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
{"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-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

schoolware_api-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file schoolware_api-0.2.0.tar.gz.

File metadata

  • Download URL: schoolware_api-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for schoolware_api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c13bd75cfb1cae429a2e2aca82fa6ee257b092c654277b815d06c16b1a24c2b4
MD5 c1b2fe80c3f7f98a4ef2ee9d12dd00ef
BLAKE2b-256 1d66f586f4066d0904de94d748af7ccfbcfb9f75352856e243e704be527a572e

See more details on using hashes here.

File details

Details for the file schoolware_api-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: schoolware_api-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for schoolware_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1cb987344bc2ac2c4a7b0140b9712095340816fea4c81ba3d5b3d25a431cb92
MD5 100c383487178dd5188db2a5ff35478c
BLAKE2b-256 c0e35b95be86326e03a522f3b3b7a88c0dd01106484a2a4025491f6b711a28a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page