openedx-events
Open edX events from the Hooks Extensions Framework
What it is and what it does
Open edX Events is a Python library that implements the Hooks Extension Framework (OEP-50) for Open edX, providing standardized event definitions and tooling to enable event-driven communication between Open edX services. It defines events across multiple domains (learning, authoring, enterprise, content authoring) and handles event serialization using Avro, allowing services to emit and consume events through a shared event bus.
The library is not independently deployed but installed as a dependency within Open edX services (LMS, CMS, and custom extensions). It depends on Django, attrs, edx-opaque-keys, edx-ccx-keys, edx_django_utils, fastavro, and setuptools. Recent versions (11.2.0) add new event types like ROLE_ASSIGNMENT_CREATED and ROLE_ASSIGNMENT_DELETED, and improve support for complex nested types in event data structures.
Use it for:
- Emit course enrollment, completion, or discussion events from Open edX LMS to downstream systems or event consumers.
- Define and consume custom events in Open edX extensions using the standardized Hooks Extension Framework.
- Serialize and deserialize event payloads using Avro for reliable event bus communication between services.
- Track role assignments, course reruns, library publications, and other authoring domain events.
- Integrate third-party systems with Open edX by listening to standardized event signals.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides event definitions and tooling for the Open edX Hooks Extension Framework (OEP-50), enabling event-driven architecture within Open edX services.
Yes, if you are developing within or extending Open edX. This is the canonical event framework for Open edX services and is required for event-driven integrations. Install friction is low and maintenance is active. No security vulnerabilities are known. Not suitable for non-Open edX projects.
Install
openedx-events on PyPI
pip
pip install openedx-eventsuv
uv add openedx-eventspoetry
poetry add openedx-eventsInstalling openedx-events
Before you install
Low install friction with a pure-Python wheel. Actively maintained with recent releases; last commit 2026-08-10. Requires 7 runtime dependencies including Django, attrs, and edx-specific packages (edx-opaque-keys, edx-ccx-keys, edx_django_utils), which may already be present in Open edX deployments.
License in practice
Licensed under Apache 2.0 (permissive), allowing use in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install openedx-events
from openedx_events.learning.signals import COURSE_ENROLLMENT_CREATED
from openedx_events.data import CourseEnrollmentData
# Emit or listen to events via the Hooks Extension Framework
Requires Python 3.12 or later; designed for use within Open edX service deployments or extensions that have Django and edx-specific dependencies available.
Verify before relying
- Whether the package can be used standalone outside an Open edX deployment, or if it requires a full Open edX environment.
- Specific event types and signal names available beyond those mentioned in the changelog excerpt.
- Performance characteristics when handling high-volume event streams.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — attrs, django, edx-ccx-keys, edx-opaque-keys, edx_django_utils, fastavro, setuptools |
| Maintenance | actively maintained — 114 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,197/month — #14,862 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openedx_events-11.2.0-py3-none-any.whl
Keywords: Python, edx
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
edx-rest-api-clientProvides OAuth2 and JWT utilities for…
permissive · top 15,000 on PyPI
edx-enterpriseA Django application that provides enterprise…
agpl · top 15,000 on PyPI
XBlockXBlock is a Python component architecture for…
permissive · top 15,000 on PyPI
edx-django-utilsProvides a collection of shared utilities for…
permissive · top 15,000 on PyPI
edx-ccx-keysProvides opaque key implementations for Custom…
agpl · top 15,000 on PyPI
edx-drf-extensionsProvides JWT authentication, CSRF token…
permissive · top 15,000 on PyPI
edx-django-release-utilProvides Django utilities and middleware for…
agpl · top 15,000 on PyPI
blinkerBlinker provides a lightweight event…
permissive · top 1,000 on PyPI
edx-i18n-toolsCommand-line tool for extracting, compiling,…
permissive · top 15,000 on PyPI