About
uiuc-api is a simple python package which wraps UIUC's official REST API for querying data about courses. In addition, it deals with some of the annoyances of using the official API by providing some convient structures. Data from the official API is available in XML form, however, it is in an inconvienent-to-parse format. For instance, take the XML data for CS 173:
<label>Discrete Structures</label>
<description>Discrete mathematical structures frequently encountered in the study of Computer Science. Sets, propositions, Boolean algebra, induction, recursion, relations, functions, and graphs. Credit is not given for both CS 173 and MATH 213. Prerequisite: One of CS 125, ECE 220; one of MATH 220, MATH 221.</description>
<creditHours>3 hours.</creditHours>
<courseSectionInformation>Credit is not given for both CS 173 and MATH 213. Prerequisite: One of CS 125, ECE 220; one of MATH 220, MATH 221.</courseSectionInformation>
<classScheduleInformation>Students must register for a lecture and discussion section.</classScheduleInformation>
It is tedious, for example, to accurately parse out the prerequisites in a easy-to-manipulate form. uiuc-api does this for the user:
>>> import uiuc_api as ua
>>> ua.get_course("CS 173").serialize()
Output:
CS 173:
subject: CS
number: '173'
hours: 3
label: Discrete Structures
description: 'Discrete mathematical structures frequently encountered in the study
of Computer Science. Sets, propositions, Boolean algebra, induction, recursion,
relations, functions, and graphs. Credit is not given for both CS 173 and MATH
213. Prerequisite: One of CS 125, ECE 220; one of MATH 220, MATH 221.'
schedule_info: 'Credit is not given for both CS 173 and MATH 213. Prerequisite:
One of CS 125, ECE 220; one of MATH 220, MATH 221.'
prereqs:
- !!python/object/apply:builtins.frozenset
- - ECE 220
- CS 125
- !!python/object/apply:builtins.frozenset
- - MATH 220
- MATH 221
coreqs: []
constraints: []
Installation
Install the uiuc_api module via pip (uiuc-api also works):
pip install uiuc_api
Documentation
Metadata
Release files for uiuc-api 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uiuc-api-0.1.4.tar.gz | 8.3 kB | Without provenance | Details for uiuc-api-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uiuc_api-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for uiuc_api-0.1.4-py3-none-any.whl |
Total release size: 18.0 kB
Release files / uiuc-api-0.1.4.tar.gz
| Download URL | uiuc-api-0.1.4.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01c7abd06aadca27976b9fe06b49eb9769a3ef30c37aaa9d65159a7b62d5e892
|
|
BLAKE2b-256 checksum How to use checksums |
d474e38c58dc831b5740a7f48c2ac0824712e208182fb8cd37889aadce501abb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.10
|
Release files / uiuc_api-0.1.4-py3-none-any.whl
| Download URL | uiuc_api-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
544c48ba23e37545b1c2dd13e27d2018556d75896bcefab1e17608dd9075e67e
|
|
BLAKE2b-256 checksum How to use checksums |
0b175659152d0309a4ce048c3bd4f23de69cfaebdee4b96e7dc9270fc1e263e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.10
|
Security for uiuc-api 0.1.4
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.