Skip to main content

An API wrapper created to interface Python with Argo ScuolaNext.

Project description

Argo Famiglia API

An API wrapper created to interface Python with Argo ScuolaNext. You can use this library to automate some actions like:

  • Check for new announcements;
  • Check homework for the next and past days;
  • And more...

How the idea was born

The idea was born because the official app doesn't notify you if an announcements arrives, or if you receive a new vote, and also because the app is REALLY slow. I then implemented this API in a Discord bot (not working for now) that notifies me and my class about new announcements from the school.

There are other libraries similar to this one, such as the library created by Hearot, but it doesn't work anymore. For now this is the only working library.

How to use

You can install this library with: python3 -m pip install -U git+https://github.com/salvatore-abello/argofamiglia.git

You can also install this from the Python Package Index with: python3 -m pip install argofamiglia

Here's an example of how to obtain a dict containing the homework. The keys of the dict will be equal to the due dates of the homework.

from argofamiglia import ArgoFamiglia

session = ArgoFamiglia("SCHOOL_CODE", "myusername", "mypassword")
print(session.getCompitiByDate())
# prints:
#  {'2022-09-22': {'compiti': ['compiti materia 1',
#                            'compiti materia 2',
#                            'compiti materia 3'],
#                'materie': ['MATERIA 1',
#                            'MATERIA 2',
#                            'MATERIA 3']
# }, ...

Disclaimer

This library is not finished, some methods aren't working in the file called auth.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argofamiglia-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

argofamiglia-0.1.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file argofamiglia-0.1.2.tar.gz.

File metadata

  • Download URL: argofamiglia-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for argofamiglia-0.1.2.tar.gz
Algorithm Hash digest
SHA256 065af3a04c9dd48e9e9eb965d18675237e4ff8c00e05e14385a6d342427ea601
MD5 e462134cb4ebb4e9b3c85f433b1fc3e9
BLAKE2b-256 227df5be11122e005ee12d72c06b500f5cead1941aa28fa05cf6fadf502f628f

See more details on using hashes here.

File details

Details for the file argofamiglia-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for argofamiglia-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79f0fe0c352cd023bab116c57ef076910789f89e4d3a5529e77ccc4fc4208f9c
MD5 6da0b368f50afa138ffac431928f132c
BLAKE2b-256 7315bf49d38fb602579e4a18ad0296f21b71fa7cf247c0e6a0f1a267340dbc37

See more details on using hashes here.

Supported by

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