skillfed

openedx-events

Open edX events from the Hooks Extensions Framework

openedx-events v11.2.0 74.2K downloads/30d#14,862 on PyPI13
Permissive license Apache 2.0 Active released

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-events

uv

uv add openedx-events

poetry

poetry add openedx-events

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.12

Tags

open edx events frameworkhooks extension frameworkedx event bus integrationopen edx event definitionsedx service eventsoep-50 implementationedx event serialization
open-edxevent-drivenhooks-framework

More Application Frameworks packages