Stanford Explore Courses Python API
This package is a Python API for Stanford's Explore Courses site, which enables users to search through Stanford's catalog of over 13,000 courses.
Installation
Type the following command in terminal to install:
pip install explorecourses
Usage
Import the package's classes into your Python program:
from explorecourses import *
Import the filters module if you would like to use search filters:
from explorecourses import filters
Create a new CourseConnection:
connect = CourseConnection()
Query the Explore Courses database by department code:
courses = connect.get_courses_by_department("MATH", year="2017-2018")
Apply filters to your query:
courses = connect.get_courses_by_query("all courses", filters.AUTUMN, filters.WAY_AII)
Sample Program
from explorecourses import *
from explorecourses import filters
connect = CourseConnection()
# Print out all courses for 2017-2018.
year = "2017-2018"
for school in connect.get_schools(year):
for dept in school.departments:
courses = connect.get_courses_by_department(dept.code, year=year)
for course in courses:
print(course)
Thanks
Thanks to Jim Sproch who wrote Stanford's Explore Courses Java API.
Metadata
Release files for explorecourses 1.0.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 |
|---|---|---|---|---|
| explorecourses-1.0.6.tar.gz | 13.8 kB | Without provenance | Details for explorecourses-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| explorecourses-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for explorecourses-1.0.6-py3-none-any.whl |
Total release size: 32.3 kB
Release files / explorecourses-1.0.6.tar.gz
| Download URL | explorecourses-1.0.6.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f36b3751789d8822098e461242f5e622c3fd21f4dac19829174fa4ce085ee338
|
|
BLAKE2b-256 checksum How to use checksums |
e32cb2b113ca65c67dedac0b986e6fce257cc30e991ff2361630e06e889b7d51
|
| 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Release files / explorecourses-1.0.6-py3-none-any.whl
| Download URL | explorecourses-1.0.6-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3cb016dff1c44bd1f513779fb35871935e5c61cc0186aa1903f25b07da39724
|
|
BLAKE2b-256 checksum How to use checksums |
3f2df3cc52e853c0f3f2f252ad0237417063d2743572d962def0a5e52f5ad686
|
| 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for explorecourses 1.0.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.