edx-api-client
Python interface for edX REST APIs
Installation
To get the latest stable release from PyPi
pip install edx-api-client
To get the latest commit from GitHub
pip install "edx-api-client @ git+https://github.com/mitodl/ol-django.git#subdirectory=src/edx_api_client"
This package lives in the ol-django monorepo under src/edx_api_client. Its history before the move is in the mitodl/edx-api-client repository.
Tests
The tests are in tests/edx_api_client at the root of ol-django and run with the rest of its suite (see the ol-django README). To run only these, from the repository root:
uv run pytest tests/edx_api_client
The integration tests in tests/edx_api_client/test_integration.py are skipped unless ACCESS_TOKEN and BASE_URL are set; ACCESS_TOKEN is described below.
If you're going to run integration tests, you'll need to specify the
ACCESS_TOKEN environment variable to a valid access token.
You can create an access token (and the associated oauth app, and grant) through the edX admin.
If you're going to run the integration tests against localhost, you'll
additionally need to turn off TLS validation with the environment
variable OAUTHLIB_INSECURE_TRANSPORT=1. This will skip the HTTPS
validation which is required by the OAuth spec.
Your edx demo course (course id course-v1:edX+DemoX+Demo_Course)
must be enabled for CCX.
The Course Enrollment integration tests have the following requirements:
- The user assigned to that
ACCESS_TOKENmust be an admin in the edX demo course. Adding a user as an admin can be done in Studio (url:<studio_url>/course_team/course-v1:edX+DemoX+Demo_Course
Release Notes
See CHANGELOG.md. Releases up to 1.14.0 are in RELEASE.rst.
Metadata
Release files for edx-api-client 1.15.0
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 |
|---|---|---|---|---|
| edx_api_client-1.15.0.tar.gz | 31.5 kB | With provenance | Details for edx_api_client-1.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edx_api_client-1.15.0-py3-none-any.whl | Python 3 | none | any | Details for edx_api_client-1.15.0-py3-none-any.whl |
Total release size: 71.2 kB
Release files / edx_api_client-1.15.0.tar.gz
| Download URL | edx_api_client-1.15.0.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb0c3812e3a56e87aed5535e75304c58a40d50f34894843e1f134df4ed7337e5
|
|
BLAKE2b-256 checksum How to use checksums |
7b5f08975adfa2b83cfe75f2a129291618c8f8716b17672450492f19051c3fdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / edx_api_client-1.15.0-py3-none-any.whl
| Download URL | edx_api_client-1.15.0-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e657aab76c2dbdb7c94600e538461e36ffe8b5f3388208ae3aac9d93165bc02a
|
|
BLAKE2b-256 checksum How to use checksums |
2ac4220ed940588bbeb987153b5b480a5de80e86f151bbe71ee5a72eb7d3879c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for edx-api-client 1.15.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for edx_api_client-1.15.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA 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.