Skip to main content

Autograder.io Contrib

Contains utilities for writing applications that use the autograder.io API.

We recommend Amir Kamil's autograder-tools for a larger collection of applications.

Obtaining a Token

Log in to autograder.io in Chrome and open up the developer tools from the Chrome menu (View->Developer->Developer Tools on a Mac). Click on a course link. In the developer console, click on a request (e.g. my_roles/ or projects/). Under Request Headers, there is an Authorization entry that looks like "Token ". Copy the hex string and save it to the file .agtoken in your home directory.

The Command Line Interface

This library provides a simple command line interface for sending requests:

$ agcli get /api/users/current/

This interface notably does not support delete requests for safety reasons. If you wish to delete something, please do so through the autograder.io website or (at your own risk) you may use the HTTPClient class described in the next section.

The HTTPClient

The HTTPClient class is a starting point for sending custom requests in Python applications.

import json
from ag_contrib.http_client import HTTPClient, check_response_status

client = HTTPClient.make_default()
response = client.get('/api/users/current/')
check_response_status(response)
print(json.dumps(response.json(), indent=4))

Metadata

Release files for autograder-contrib 1.0.0

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

Source distribution (sdist)

Source distribution for autograder-contrib 1.0.0
File Size Uploaded Provenance Actions
autograder-contrib-1.0.0.tar.gz 4.0 kB Without provenance Details for autograder-contrib-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autograder-contrib 1.0.0
File Interpreter ABI Platform Actions
autograder_contrib-1.0.0-py3-none-any.whl Python 3 none any Details for autograder_contrib-1.0.0-py3-none-any.whl

Total release size: 11.5 kB

Release files / autograder-contrib-1.0.0.tar.gz

Download URL autograder-contrib-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f14d7eca4de7d1e46171e0d9cc507635b7f8361fc3d1aca0dce4e978d11f7461
BLAKE2b-256 checksum
How to use checksums
3c1d0bb40ce11e8f7bbb0059e75a99316f7e329df6fce2229610b88089f5a45a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9

Release files / autograder_contrib-1.0.0-py3-none-any.whl

Download URL autograder_contrib-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db54f4ac01c4f8a324384831ba3abc9810d528d2a38cd3c5293ebc1420c72343
BLAKE2b-256 checksum
How to use checksums
567eab711bae8f428b5cd939ed4f92da1a556892e9e95f2b3ff631a56cb9b6e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9

Security for autograder-contrib 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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