Skip to main content

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_TOKEN must 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.1

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

Source distribution (sdist)

Source distribution for edx-api-client 1.15.1
File Size Uploaded Provenance Actions
edx_api_client-1.15.1.tar.gz 31.8 kB With provenance Details for edx_api_client-1.15.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edx-api-client 1.15.1
File Interpreter ABI Platform Actions
edx_api_client-1.15.1-py3-none-any.whl Python 3 none any Details for edx_api_client-1.15.1-py3-none-any.whl

Total release size: 71.5 kB

Release files / edx_api_client-1.15.1.tar.gz

Download URL edx_api_client-1.15.1.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
06d4a7b28921b479478dd3c73eef0621a32153b79cec3e36f45c76548367d152
BLAKE2b-256 checksum
How to use checksums
ed58ac7cc5bcb252dcb735104d31b4f1b9db45980ee70f75355cf0e5b0f309a7
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 30, 2026.

Transparency log

Release files / edx_api_client-1.15.1-py3-none-any.whl

Download URL edx_api_client-1.15.1-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e84d2984e2636b5a5595afde1e57e866ff8f65edac23ea0146f5383d5fc548a3
BLAKE2b-256 checksum
How to use checksums
4ff0785091baef5e2da5970772337cdaa78dfda375e87a6133d21e1c1cb3597c
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 30, 2026.

Transparency log

Security for edx-api-client 1.15.1

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.

Select from 2 files

Attestation for edx_api_client-1.15.1.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 30, 2026.

Transparency log

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.15.1 This release

2 release files Full 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