Pitt API
Made by Ritwik Gupta at the University of Pittsburgh in an effort to get more open data from Pitt.
Usage examples
from PittAPI import course, dining, lab, laundry, library, news, people, shuttle, textbook
### Courses
# Will return a list of dictionaries containing courses in subject
cs_subject = course.get_term_courses(term='2194', subject='CS')
cs_course = cs_subject['1501']
cs_section_list = cs_course.sections
big_dict = cs_section_list[0].to_dict()
### Textbook
# Will return a list of dictionaries containing textbooks for a class
# term number comes from pitt.verbacompare.com
small_dict = textbook.get_textbook(term="3150", department="CS", course="445", instructor="RAMIREZ")
### Library
# Will return a dictionary containing results from query
big_dict = library.get_documents(query="computer")
### News
# Will return a list of dictionaries containing news from main news feed
medium_dict = news.get_news()
### Laundry
# Will return a dictionary with amount of washers and dryers
# in use vs. total washers and dryers at building
small_dict = laundry.get_status_simple(building_name="TOWERS")
### Computer Lab
# Will return a dictionary with status of the lab, and amount
# of machines with a certain OS
small_dict = lab.get_status(lab_name="ALUMNI")
### Shuttle
# Will return a list of dictionaries containing routes of shuttles
big_dict = shuttle.get_routes()
### People
# Will return a list of people based on the query
list_of_peeps = people.get_person(query="Smith")
### Dining
# Will return a dictionary of dictionaries containing each dining location,
# with its name, its open/closed status, and open times (if it exists)
medium_dict = dining.get_locations()
medium_dict = dining.get_locations_by_status(status="open")
medium_dict = dining.get_locations_by_status(status="closed")
# Will return a single dictionary of a dining location,
# with its name, its open/closed status, and open times (if it exists)
one = dining.get_location_by_name("taco_bell-schenley_cafe")
two = dining.get_location_by_name("cup_&_chaucer-hillman")
Tests
License
This project is licensed under the terms of the GPLv2 license.
Metadata
Release files for PittAPI 0.2.6
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 |
|---|---|---|---|---|
| PittAPI-0.2.6.tar.gz | 16.8 kB | Without provenance | Details for PittAPI-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PittAPI-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for PittAPI-0.2.6-py3-none-any.whl |
Total release size: 45.8 kB
Release files / PittAPI-0.2.6.tar.gz
| Download URL | PittAPI-0.2.6.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e34bd3f62a7c32c2dde7db6ffa8f998c4914f95cecf3a51b3929292427e66f98
|
|
BLAKE2b-256 checksum How to use checksums |
3caa83d4b2f151879eb6eb8d2201c0b0d467a17dc1a9aabcf508bb3dda6d5f80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / PittAPI-0.2.6-py3-none-any.whl
| Download URL | PittAPI-0.2.6-py3-none-any.whl |
|---|---|
| Size | 29.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b10544de67902c700ed7eac694b5141139ce7f64a44244141c3cb38dccee4874
|
|
BLAKE2b-256 checksum How to use checksums |
bf67228e46ede470497c71e6993a8816e59dd3bcfe87b62d2ec77d621362cf61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for PittAPI 0.2.6
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.