Skip to main content

getANS

GitHub license PyPI

Retrieving Data from ANS with Python

Released under the MIT License

Oliver Lindemann, Erasmus University Rotterdam, NL

--

Installing via pip

python -m pip install getans

Dependencies

Python 3.10 and the following libraries:

  • pandas (>=2.2)
  • appdirs (>=1.4)
  • requests (>=2.32)

getANS Command line interface

call: python -m getANS

usage: getANS [-h] [--usage] [--token] [--new [DATABASE_NAME]] [--exercises] [--results] [--submissions] [--courses] [--grades] [--assignments]
                  [--file [EXCEL_FILE]]
                  [DATABASE]

Retrieving Data from ANS.

positional arguments:
  DATABASE              database file

options:
  -h, --help            show this help message and exit
  --usage               show typical workflow
  --token               setting access token

Retrieve / Download:
  --new [DATABASE_NAME], -n [DATABASE_NAME]
                        initiate new database
  --results             retrieve results
  --exercises           retrieve exercises & questions
  --submissions         retrieve submissions

Show / Export:
  --courses, -c         list all courses
  --grades, -g          list all grades
  --assignments, -a     overview all assignments
  --file [EXCEL_FILE], -f [EXCEL_FILE]
                        export what is shown to excel

(c) Oliver Lindemann

Typical workflow

Ensure that you have set an access token (call '--token'). A new token can be generated via the ANS website: https://ans.app/users/tokens

  1. Initiate new database: --new mydatabase and follow instructions

  2. Download grades (results): mydatabase --results

  3. Download all questions (exercises): mydatabase --exercises (that might take a while!)

  4. Show assignment overview: mydatabase -a

  5. Show grades: mydatabase -r

    To save assignments, courses or grades add --file myexcelfile.xlsx to a show command


getANS Python library

API documentation is work in progress

see demo script getans_demo.py

Metadata

Release files for getANS 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getANS 0.9.2
File Size Uploaded Provenance
getans-0.9.2.tar.gz 19.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for getANS 0.9.2
File Interpreter ABI Platform
getans-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 40.9 kB

Release files / getans-0.9.2.tar.gz

Download URL getans-0.9.2.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6767bf610b0706d33c70a33389600eebbbc34aebbe19cd1363bf8fc88f9b8e9
BLAKE2b-256 checksum
How to use checksums
4ddae3f1897dbb0b3912d89929642750e7fe3a9a12cf905769e8a84fe9e5ac77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / getans-0.9.2-py3-none-any.whl

Download URL getans-0.9.2-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4575acba62ed8d7a952263290c812dbd42a89583221c335f8743ec2686162639
BLAKE2b-256 checksum
How to use checksums
ab8382cd8ff5be881629a5303763c6f2c3c5a40e484fb8bf13149ba822e22888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for getANS 0.9.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page