Retrieving Data from ANS for DPECS
Project description
getans
Retrieving Data from ANS with Python
Released under the MIT License
Oliver Lindemann, Erasmus University Rotterdam, NL
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
-
Initiate new database:
--new mydatabase
and follow instructions -
Download grades (results):
mydatabase --results
-
Download all questions (exercises):
mydatabase --exercises
(that might take a while!) -
Show assignment overview:
mydatabase -a
-
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
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 getans-0.9.dev1.tar.gz
.
File metadata
- Download URL: getans-0.9.dev1.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f95b23f8d06f7b4d749c9e7f2519eb8fb89873a589a6bb1f712f6b24a8729ad |
|
MD5 | f7b909f9245e767d3ac4939198626135 |
|
BLAKE2b-256 | d866cc1975446250199a6dddfc1af654a24fc71e4fc6aa6a8545c2dca042192e |
File details
Details for the file getans-0.9.dev1-py3-none-any.whl
.
File metadata
- Download URL: getans-0.9.dev1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bcc42c9377c504b00883f0d63aac06df12ead1af9cb85c3673aac1eceea9036 |
|
MD5 | 94652ca02daa14ce1d446145568e37ea |
|
BLAKE2b-256 | 3eecc673a270cf8d8a462dc60e585249cd34485dcde78784b9434455940e2f83 |