Skip to main content

edx-enterprise-data

The edX Enterprise Data repo is the home to tools and products related to providing access to Enterprise related data.

This repository is currently split into 2 folders: enterprise_reporting and enterprise_data

enterprise_data app

This django app exposes a REST api endpoint to access enterprise learner activity. The enterprise-data app is published to pypi as a library and installed into the edx-analytics-data-api project and uses OAuth JWT authentication from edx-drf-extensions.

Prerequisites for develpment

Setup for local development (Deprecated, prefer running in devstack)

This app is meant to be installed as an app in edx-analytics-data-api.

  1. Create a directory in your filesystem that has the edx-analytics-data-api repo in it. Create a folder src, and clone this repo into the src directory.
  2. Complete the setup in the README of edx-analytics-data-api
  3. Navigate to edx-analytics-data-api and activate your virtualenv.
  4. In the edx-analytics-data-api folder, run make requirements
  5. Run pip install -e ./src/edx-enterprise-data
  6. Run ./manage.py runserver

Running migrations locally

The default database configured by devstack is analytics-api. If you wish to run migrations on other databases, run ./manage.py migrate --database analytics_v1 or ./manage.py migrate --database analytics in the edx-analytics-data-api container.

Frontend

Much of the data from this app is consumed by frontend-app-admin-portal. Follow the instructions in that README to set it up.

Management commands for creating development data are below.

Management Commands for Devs

For the convenience of creating some test data in a local setup, there are some management commands that exist. To create a test enterprise, go into the [lms shell]LMS and run ./manage.py lms seed_enterprise_devstack_data You can then use the test enterprise's UUID for the following commands.

These commands can be run from this repo or from edx-analytics-data-api. The simplest way to start is to create dummy learner progress data for your test enterprise:

To create 10 users, each with 5 enrollments, using faked data. Running multiple times will create more users and enrollments.

./manage.py create_dummy_data_lpr_v1 <YOUR ENTERPRISE_UUID>

Now visit http://localhost:1991/pied-piper/admin/learners to see this dummy data in the learner progress report.

Additional commands

To create an EnterpriseUser with a EnterpriseCustomer UUID of your choice, you can run the following:

$ ./manage.py create_enterprise_user <YOUR_UUID_HERE>

The management command uses a faker factory to fill the attributes of the object created in your DB, and will print out a command on the command line you can run if you want to add EnterpriseEnrollments for the user.

To create an EnterpriseEnrollment for an EnterpriseUser with a certain enterprise_user_id (that also shares the same EnterpriseCustomer UUID as an EnterpriseUser in your DB), you can run the following:

$ ./manage.py create_enterprise_enrollment <YOUR_UUID_HERE> <YOUR_ENTERPRISE_USER_ID_HERE>

enterprise_reporting scripts

This folder contains a set of scripts used to push enterprise data reports. It supports multiple delivery methods (email, sftp) and is triggered through jenkins scheduled jobs.

enterprise_data_roles app

This app contains user roles and role assignments to manage user permissions on resources.

Metadata

Release files for edx-enterprise-data 10.23.0

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-enterprise-data 10.23.0
File Size Uploaded Provenance Actions
edx_enterprise_data-10.23.0.tar.gz 309.3 kB With provenance Details for edx_enterprise_data-10.23.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edx-enterprise-data 10.23.0
File Interpreter ABI Platform Actions
edx_enterprise_data-10.23.0-py3-none-any.whl Python 3 none any Details for edx_enterprise_data-10.23.0-py3-none-any.whl

Total release size: 544.6 kB

Release files / edx_enterprise_data-10.23.0.tar.gz

Download URL edx_enterprise_data-10.23.0.tar.gz
Size 309.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ee4d31335b95fc3a83daa2427b3f788d77a28ee9df8b7fe79f739b8e62ccba04
BLAKE2b-256 checksum
How to use checksums
a1d9eb7f15667a4c6b132ddf33537d0b755890326db7d2a41ac2d8a00ae9c8ca
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 Nov 5, 2026.

Transparency log

Release files / edx_enterprise_data-10.23.0-py3-none-any.whl

Download URL edx_enterprise_data-10.23.0-py3-none-any.whl
Size 235.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6c32c2dafa99088448f7413f7280234f1762e39ad8e64f6f8aa66e69f76dee7
BLAKE2b-256 checksum
How to use checksums
d6a4fa35d1218b5ee1be0ed97a9f62e586657ce4b4c56505e732eb737673d114
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 Nov 5, 2026.

Transparency log

Security for edx-enterprise-data 10.23.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.

Select from 2 files

Attestation for edx_enterprise_data-10.23.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 Nov 5, 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

10.23.0 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