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.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

argofamiglia-0.1.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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