Python library and a CLI tool to access the https://web.spaggiari.eu
Project description
classeviva-client
classeviva-client is a Python library and a CLI tool to access the https://web.spaggiari.eu, probably the most used portal for schools, students and families.
Getting Started
Set your credentials as environment variables:
export CLASSEVIVA_USERNAME="you@domain.com"
export CLASSEVIVA_PASSWORD="secret!"
As a Python library
$ python
>>>
>>> from classeviva.client import Client
>>> from classeviva.credentials import EnvCredentialsProvider
>>>
>>>
>>> with Client(EnvCredentialsProvider()) as client:
... print(client.grades()[:1])
...
[Grade(value=7.25, display_value='7+', subject='ITALIANO', date='2021-10-11', color='green', comment='')]
As a CLI tool
List your grades:
$ classeviva list-grades
2022-03-30
- MUSICA, 7
2022-03-28
- MATEMATICA, 7½
2022-02-22
- MUSICA, 9½
- RELIGIONE, 8½
List your agenda entries for homework assignments:
$ classeviva list-agenda
2022-04-07
- TEACHER A, Geometria: pagina 42 n.90-91-96-100.
- TEACHER B, leggere e tradurre oralmente i dialogo di p. 130 e copiare una volta sul quaderno.
Refs
Special thanks to @michelangelomo for providing good API docs at michelangelomo/Classeviva-Official-Endpoints.
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
Built Distribution
Close
Hashes for classeviva_client-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f77ea8992356e39a4e2409d4b9970f4eb04462d221c82007344581831ab183 |
|
MD5 | 95995638ffec6b2842b5d1933684a670 |
|
BLAKE2b-256 | 2518f00c9a746cf6c110e6fd4f882d95c2ac787b60cd6328d2196779030bed22 |