Skip to main content

Open edX Core: Foundational Packages for a Teaching & Learning Platform

Project description

PyPI CI Codecov Documentation Supported Python versions License

Overview

Foundational Packages for a Teaching & Learning Platform (formerly known as “Learning Core” or “openedx-learning”)

The openedx-core project holds Django apps which represent core teaching & learning platform concepts.

Each app exposes a public API of Python functions and Django models; some apps also provide REST APIs. These APIs are suitable for use in openedx-platform and in community-developed Open edX plugins.

APIs marked “UNSTABLE” are subject to change at any time. All other APIs are considered stable, and any breaking changes will be announced through the community DEPR (deprecation and removal) process.

Motivation

The short term goal of this project is to create a small, extensible core that is easier to reason about and write extensions for than openedx-platform. The longer term goal is to create a more nimble core learning platform, enabling rapid experimentation and drastic changes to the learner experience that are difficult to implement with Open edX today.

Replacing openedx-platform is explicitly not a goal of this project, as only a small fraction of the concepts in openedx-platform make sense to carry over here. When these core concepts are extracted and the data migrated, openedx-platform will import apps from this repo and make use of their public in-process APIs.

Architecture

Open edX Core Package Dependencies

Open edX Core code should never import from openedx-platform.

We want to be very strict about dependency management internally as well. Please read the .importlinter config file file and the Python API Conventions ADR for more details.

Model Conventions

We have a few different identifier types in the schema, and we try to avoid _id for this because Django uses that convention to reference IDs in other models/tables. So instead we have:

  • id is the auto-generated, internal row ID and primary key. This never changes. Data models should make foreign keys to this field, as per Django convention.

  • uuid is a randomly generated UUID4. This is the stable way to refer to a row/resource from an external service. This never changes. This is separate from id mostly because there are performance penalties when using UUIDs as primary keys with MySQL.

  • key is intended to be a case-sensitive, alphanumeric key, which holds some meaning to library clients. This is usually stable, but can be changed, depending on the business logic of the client. The apps in this repo should make no assumptions about it being stable. It can be used as a suffix. Since key is a reserved name on certain database systems, the database field is _key.

  • num is like key, but for use when it’s strictly numeric. It can also be used as a suffix.

See Also

The structure of this repo follows OEP-0049 where possible, and also borrows inspiration from:

Code Overview

  • ./src/: All published code. Packages are importable relative to this directory (e.g., import openedx_content). See readme.rst in each sub-folder.

  • ./tests/: Unit tests (not published).

  • ./test_utils/: Internal helpers for unit tests (not published).

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

Reporting Security Issues

Please do not report security issues in public. Please email security@openedx.org.

Help

If you’re having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace.

For more information about these options, see the Getting Help page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openedx_core-1.1.0.tar.gz (232.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openedx_core-1.1.0-py2.py3-none-any.whl (316.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file openedx_core-1.1.0.tar.gz.

File metadata

  • Download URL: openedx_core-1.1.0.tar.gz
  • Upload date:
  • Size: 232.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openedx_core-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f5838322b6ab5e051d14e7f698af7913775e21f01936c360cec8eec62cb1bd8f
MD5 5f63ba03be16a13fc63afe7f4be34e1e
BLAKE2b-256 5606c6a1a8207715d7b35ff80c06542df1e7b3f94e7f72a5ade8e7071dce7458

See more details on using hashes here.

File details

Details for the file openedx_core-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: openedx_core-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 316.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openedx_core-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c84bb976264db79cff9daf3168653700a0d93766c6a04011279085fd501e388e
MD5 b2e20f095ceae12643d87ca2d5a35cc2
BLAKE2b-256 7408c51f068472c1f926c3a373872a53217d90efdeb8b9f3f06f3b6f347fd2b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page