Skip to main content

An API for getting information from University of Campinas' Submission System

Project description

SuSy API Python 3.5+ PyPI release Code style: black

An API to get data from University of Campinas' Submission System (SuSy).


To install the API, simply run: pip install susyapi


The main endpoints are the get_sections, get_assignments and get_users functions.


Fetch list of sections from SuSy's page

    url (str): The URL of SuSy's main page. If none is provided, the default one is used.

    sections (dict): A dictionary where the key is the section code and the value is the section URL.


Fetch list of assignments from a SuSy's section's page

    url (str): The URL of  a SuSy's section's page.

    assignments (dict): A dictionary where the key is the assignment code and the value is a dictionary
    containing the assignment name, due date and a list of its groups.


Fetch list of users who completed the assignment from a SuSy's assignment's group page

    url (str or list): The URL (or list of URLs) of a SuSy's assignment's group page.

    completed_users (list): A list of the id of the users that completed the assignment.


>>> import susyapi
>>> susyapi.get_sections()
{'mc202def': '',
 'mc999': '',
 'mo901a': ''}
>>> susyapi.get_assignments("")
{'00': {'url': '',
  'name': 'Contagem de linhas e caracteres  ',
  'due_date': datetime.datetime(2020, 12, 31, 23, 59, 59),
  'groups': ['',
 '01': {'url': '',
  'name': 'Contagem de linhas: seleção de processador  ',
  'due_date': datetime.datetime(2020, 12, 28, 23, 59, 59),
  'groups': ['',
>>> susyapi.get_users("")

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

susyapi-0.1.1.tar.gz (5.0 kB view hashes)

Uploaded source

Built Distribution

susyapi-0.1.1-py3-none-any.whl (5.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page