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
File details
Details for the file classeviva-client-0.0.7.tar.gz
.
File metadata
- Download URL: classeviva-client-0.0.7.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3a7259824ac66e5b9895d5fca2aba5a63a21c37c34b72e02827d072a7ac2ed1 |
|
MD5 | 39a5feee56d8c18af7b84f85937c300a |
|
BLAKE2b-256 | a625770172321e88a44b6d0b030c9ceb037b7df48060dae535a55a527d30764c |
File details
Details for the file classeviva_client-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: classeviva_client-0.0.7-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f77ea8992356e39a4e2409d4b9970f4eb04462d221c82007344581831ab183 |
|
MD5 | 95995638ffec6b2842b5d1933684a670 |
|
BLAKE2b-256 | 2518f00c9a746cf6c110e6fd4f882d95c2ac787b60cd6328d2196779030bed22 |