========
EOX Core
========
|Maintainance Badge| |Test Badge| |PyPI Badge|
.. |Maintainance Badge| image:: https://img.shields.io/badge/Status-Maintained-brightgreen
:alt: Maintainance Status
.. |Test Badge| image:: https://img.shields.io/github/actions/workflow/status/edunext/eox-core/.github%2Fworkflows%2Ftests.yml?label=Test
:alt: GitHub Actions Workflow Test Status
.. |PyPI Badge| image:: https://img.shields.io/pypi/v/eox-core?label=PyPI
:alt: PyPI - Version
Eox-core is an `openedx plugin`_ for the `edx-platform`_, and part of the Edunext Open edX Extensions (aka EOX), that adds multiple API
endpoints to extend its functionality and avoid changing the base code directly. These
API endpoints include bulk creation of pre-activated users (for example, skip sending an activation email), enrollments, and pre-enrollment operations.
Installation
============
#. Add this plugin in your Tutor ``config.yml`` with the ``OPENEDX_EXTRA_PIP_REQUIREMENTS`` setting.
.. code-block:: yaml
OPENEDX_EXTRA_PIP_REQUIREMENTS:
- eox-core=={{version}} # basic installation
- eox-core{{requirements}}=={{version}} # requeriments e.g. [sentry,tpa]. Useful for integration with third-party applications.
#. Save the configuration with ``tutor config save``.
#. Build an open edx image with ``tutor images build openedx``.
#. Launch your platform with ``tutor local launch``.
**Note:** To use all the features, you need to have `the tutor-forum plugin <https://github.com/overhangio/tutor-forum>`_ and `the eox-tenant plugin <https://github.com/eduNEXT/eox-tenant>`_.
Features
=========
- Support redirections with middleware.
- Add pipelines for authentication.
- Add a group of APIs.
.. image:: docs/_images/eox-core-apis.png
:alt: Eox-core APIs
Usage
=====
See the `How to section <https://github.com/eduNEXT/eox-core/tree/master/docs/how_to>`_ for guidance on middleware, pipeline and API usage.
Compatibility Notes
--------------------
+------------------+---------------+
| Open edX Release | Version |
+==================+===============+
| Ironwood | < 4.0 |
+------------------+---------------+
| Juniper | >= 3.0 < 5.0 |
+------------------+---------------+
| Koa | >= 4.9 < 6.0 |
+------------------+---------------+
| Lilac | >= 4.9 < 6.0 |
+------------------+---------------+
| Maple | >= 6.0 < 11.0 |
+------------------+---------------+
| Nutmeg | >= 7.0 < 11.0 |
+------------------+---------------+
| Olive | >= 8.0 < 11.0 |
+------------------+---------------+
| Palm | >= 9.0 < 11.0 |
+------------------+---------------+
| Quince | >= 10.0 < 12.0|
+------------------+---------------+
| Redwood | >= 10.5.1 |
+------------------+---------------+
| Sumac | >= 11.1.0 |
+------------------+---------------+
| Teak | >= 12.0.0 |
+------------------+---------------+
The plugin is configured for the latest release (Teak). The following changes in the plugin settings should be applied in order to be used for previous releases.
**Maple**
.. code-block:: yaml
EOX_CORE_PRE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.pre_enrollment_l_v1"
EOX_CORE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.enrollment_l_v1"
**Nutmeg**
.. code-block:: yaml
EOX_CORE_PRE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.pre_enrollment_l_v1"
EOX_CORE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.enrollment_l_v1"
These settings can be changed in ``eox_core/settings/common.py`` or, in the instance settings.
🚨 If the release you are looking for is not listed, please note:
- If the Open edX release is compatible with the current eox-core version (see `Compatibility Notes <https://github.com/eduNEXT/eox-core?tab=readme-ov-file#compatibility-notes>`_), the default configuration is sufficient.
- If incompatible, you can refer to the README from the relevant version tag for configuration details (e.g., `v6.2.1 README <https://github.com/eduNEXT/eox-core/blob/v6.2.1/README.rst>`_).
Integrations with third-party services
--------------------------------------
The plugin offers some integrations listed below:
#. **Sentry**: This service allows tracking the errors generated on edx-platform. Check more details at https://sentry.io/welcome/.
To enable the integration, follow the steps below:
* Install the plugin with Sentry support (extras_require [sentry]).
* Sign up/in your sentry account and create a new Django application integration.
* Get the DSN for your integration. This is a unique identifier for your application.
* Setup the following configuration values for edx-platform:
.. code-block:: yaml
EOX_CORE_SENTRY_INTEGRATION_DSN: <your DSN value>
EOX_CORE_SENTRY_IGNORED_ERRORS: [] # optional
EOX_CORE_SENTRY_EXTRA_OPTIONS: {} # optional
- **EOX_CORE_SENTRY_INTEGRATION_DSN:** By default the setting is None, which disables the sentry integration.
- **EOX_CORE_SENTRY_IGNORED_ERRORS:** List of the exceptions you want to ignore (see below for a reference).
- **EOX_CORE_SENTRY_EXTRA_OPTIONS** Dictionary with extra options to be passed to the sentry client. For instance, it can be defined as:
.. code-block:: yaml
EOX_CORE_SENTRY_IGNORED_ERRORS: [
'xmodule.exceptions.NotFoundError',
'openedx.core.djangoapps.user_authn.exceptions.AuthFailedError',
]
EOX_CORE_SENTRY_EXTRA_OPTIONS:
experiments:
profiles_sample_rate: 0.5
another_client_parameter: 'value'
Auditing Django views
=====================
Most views in eox-core use an auditing decorator, defined in our custom library, *eox-audit-model*,
that helps save relevant information about non-idempotent operations. By default, this functionality is turned on. To
check your auditing records go to Django sysadmin and find DJANGO EDUNEXT AUDIT MODEL.
You can check the `eox-audit-model`_ documentation for more information.
Development
===========
You can find more information about testing in the `Help for devs doc <https://github.com/eduNEXT/eox-core/blob/master/docs/help_for_devs/0001-include-test-cases-files.rst>`_.
.. _openedx plugin: https://github.com/openedx/edx-platform/tree/master/openedx/core/djangoapps/plugins
.. _edx-platform: https://github.com/openedx/edx-platform/
.. _eox-tenant: https://github.com/eduNEXT/eox-tenant/
.. _eox-audit-model: https://github.com/eduNEXT/eox-audit-model/
How to Contribute
=================
Contributions are welcome! See our `CONTRIBUTING`_ file for more
information – it also contains guidelines for how to maintain high code
quality, which will make your contribution more likely to be accepted.
.. _CONTRIBUTING: https://github.com/eduNEXT/eox-core/blob/master/CONTRIBUTING.rst
License
=======
This software is licensed under the terms of the AGPLv3. See the LICENSE file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/eduNEXT/eox-core",
"name": "eox-core",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": null,
"author": "eduNEXT",
"author_email": "contact@edunext.co",
"download_url": "https://files.pythonhosted.org/packages/af/f1/fa282b79908c2d244e7a2d7cc17180af9977a055ba9b781ac0a6a3d063b2/eox_core-12.1.0.tar.gz",
"platform": "any",
"description": "========\nEOX Core\n========\n|Maintainance Badge| |Test Badge| |PyPI Badge|\n\n.. |Maintainance Badge| image:: https://img.shields.io/badge/Status-Maintained-brightgreen\n :alt: Maintainance Status\n.. |Test Badge| image:: https://img.shields.io/github/actions/workflow/status/edunext/eox-core/.github%2Fworkflows%2Ftests.yml?label=Test\n :alt: GitHub Actions Workflow Test Status\n.. |PyPI Badge| image:: https://img.shields.io/pypi/v/eox-core?label=PyPI\n :alt: PyPI - Version\n\nEox-core is an `openedx plugin`_ for the `edx-platform`_, and part of the Edunext Open edX Extensions (aka EOX), that adds multiple API\nendpoints to extend its functionality and avoid changing the base code directly. These\nAPI endpoints include bulk creation of pre-activated users (for example, skip sending an activation email), enrollments, and pre-enrollment operations.\n\nInstallation\n============\n\n#. Add this plugin in your Tutor ``config.yml`` with the ``OPENEDX_EXTRA_PIP_REQUIREMENTS`` setting.\n\n .. code-block:: yaml\n \n OPENEDX_EXTRA_PIP_REQUIREMENTS:\n - eox-core=={{version}} # basic installation\n - eox-core{{requirements}}=={{version}} # requeriments e.g. [sentry,tpa]. Useful for integration with third-party applications.\n \n#. Save the configuration with ``tutor config save``.\n#. Build an open edx image with ``tutor images build openedx``.\n#. Launch your platform with ``tutor local launch``.\n\n**Note:** To use all the features, you need to have `the tutor-forum plugin <https://github.com/overhangio/tutor-forum>`_ and `the eox-tenant plugin <https://github.com/eduNEXT/eox-tenant>`_.\n\nFeatures\n=========\n\n- Support redirections with middleware.\n- Add pipelines for authentication.\n- Add a group of APIs.\n\n .. image:: docs/_images/eox-core-apis.png\n :alt: Eox-core APIs\n\nUsage\n=====\n\nSee the `How to section <https://github.com/eduNEXT/eox-core/tree/master/docs/how_to>`_ for guidance on middleware, pipeline and API usage.\n\n\nCompatibility Notes\n--------------------\n\n+------------------+---------------+\n| Open edX Release | Version |\n+==================+===============+\n| Ironwood | < 4.0 |\n+------------------+---------------+\n| Juniper | >= 3.0 < 5.0 |\n+------------------+---------------+\n| Koa | >= 4.9 < 6.0 |\n+------------------+---------------+\n| Lilac | >= 4.9 < 6.0 |\n+------------------+---------------+\n| Maple | >= 6.0 < 11.0 |\n+------------------+---------------+\n| Nutmeg | >= 7.0 < 11.0 |\n+------------------+---------------+\n| Olive | >= 8.0 < 11.0 |\n+------------------+---------------+\n| Palm | >= 9.0 < 11.0 |\n+------------------+---------------+\n| Quince | >= 10.0 < 12.0|\n+------------------+---------------+\n| Redwood | >= 10.5.1 |\n+------------------+---------------+\n| Sumac | >= 11.1.0 |\n+------------------+---------------+\n| Teak | >= 12.0.0 |\n+------------------+---------------+\n\nThe plugin is configured for the latest release (Teak). The following changes in the plugin settings should be applied in order to be used for previous releases.\n\n**Maple**\n\n.. code-block:: yaml\n\n EOX_CORE_PRE_ENROLLMENT_BACKEND: \"eox_core.edxapp_wrapper.backends.pre_enrollment_l_v1\"\n EOX_CORE_ENROLLMENT_BACKEND: \"eox_core.edxapp_wrapper.backends.enrollment_l_v1\"\n\n**Nutmeg**\n\n.. code-block:: yaml\n\n EOX_CORE_PRE_ENROLLMENT_BACKEND: \"eox_core.edxapp_wrapper.backends.pre_enrollment_l_v1\"\n EOX_CORE_ENROLLMENT_BACKEND: \"eox_core.edxapp_wrapper.backends.enrollment_l_v1\"\n\nThese settings can be changed in ``eox_core/settings/common.py`` or, in the instance settings.\n\n\n\ud83d\udea8 If the release you are looking for is not listed, please note:\n\n- If the Open edX release is compatible with the current eox-core version (see `Compatibility Notes <https://github.com/eduNEXT/eox-core?tab=readme-ov-file#compatibility-notes>`_), the default configuration is sufficient.\n- If incompatible, you can refer to the README from the relevant version tag for configuration details (e.g., `v6.2.1 README <https://github.com/eduNEXT/eox-core/blob/v6.2.1/README.rst>`_).\n\nIntegrations with third-party services\n--------------------------------------\n\nThe plugin offers some integrations listed below:\n\n#. **Sentry**: This service allows tracking the errors generated on edx-platform. Check more details at https://sentry.io/welcome/.\n\n To enable the integration, follow the steps below:\n\n * Install the plugin with Sentry support (extras_require [sentry]).\n\n * Sign up/in your sentry account and create a new Django application integration.\n\n * Get the DSN for your integration. This is a unique identifier for your application.\n\n * Setup the following configuration values for edx-platform:\n\n .. code-block:: yaml\n\n EOX_CORE_SENTRY_INTEGRATION_DSN: <your DSN value>\n EOX_CORE_SENTRY_IGNORED_ERRORS: [] # optional\n EOX_CORE_SENTRY_EXTRA_OPTIONS: {} # optional\n\n - **EOX_CORE_SENTRY_INTEGRATION_DSN:** By default the setting is None, which disables the sentry integration.\n - **EOX_CORE_SENTRY_IGNORED_ERRORS:** List of the exceptions you want to ignore (see below for a reference).\n - **EOX_CORE_SENTRY_EXTRA_OPTIONS** Dictionary with extra options to be passed to the sentry client. For instance, it can be defined as:\n\n .. code-block:: yaml\n\n EOX_CORE_SENTRY_IGNORED_ERRORS: [\n 'xmodule.exceptions.NotFoundError',\n 'openedx.core.djangoapps.user_authn.exceptions.AuthFailedError',\n ]\n EOX_CORE_SENTRY_EXTRA_OPTIONS:\n experiments: \n profiles_sample_rate: 0.5\n another_client_parameter: 'value'\n\nAuditing Django views\n=====================\n\nMost views in eox-core use an auditing decorator, defined in our custom library, *eox-audit-model*,\nthat helps save relevant information about non-idempotent operations. By default, this functionality is turned on. To\ncheck your auditing records go to Django sysadmin and find DJANGO EDUNEXT AUDIT MODEL.\n\nYou can check the `eox-audit-model`_ documentation for more information.\n\nDevelopment\n===========\n\nYou can find more information about testing in the `Help for devs doc <https://github.com/eduNEXT/eox-core/blob/master/docs/help_for_devs/0001-include-test-cases-files.rst>`_.\n\n.. _openedx plugin: https://github.com/openedx/edx-platform/tree/master/openedx/core/djangoapps/plugins\n.. _edx-platform: https://github.com/openedx/edx-platform/\n.. _eox-tenant: https://github.com/eduNEXT/eox-tenant/\n.. _eox-audit-model: https://github.com/eduNEXT/eox-audit-model/\n\nHow to Contribute\n=================\n\nContributions are welcome! See our `CONTRIBUTING`_ file for more\ninformation \u2013 it also contains guidelines for how to maintain high code\nquality, which will make your contribution more likely to be accepted.\n\n.. _CONTRIBUTING: https://github.com/eduNEXT/eox-core/blob/master/CONTRIBUTING.rst\n\n\nLicense\n=======\n\nThis software is licensed under the terms of the AGPLv3. See the LICENSE file for details.\n",
"bugtrack_url": null,
"license": "AGPL",
"summary": "eduNEXT Openedx extensions",
"version": "12.1.0",
"project_urls": {
"Homepage": "https://github.com/eduNEXT/eox-core"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6af6d1652048afaf8012dd367c8501ffe9a27eac4385056b0470e2fac48f85db",
"md5": "4bca57e646aa2a266470a50d6782982c",
"sha256": "bd2102065a0d8e66ca77437e7ca51d5bd663d5f34429713f35de519b90502bcc"
},
"downloads": -1,
"filename": "eox_core-12.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4bca57e646aa2a266470a50d6782982c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 166692,
"upload_time": "2025-07-08T09:52:34",
"upload_time_iso_8601": "2025-07-08T09:52:34.733535Z",
"url": "https://files.pythonhosted.org/packages/6a/f6/d1652048afaf8012dd367c8501ffe9a27eac4385056b0470e2fac48f85db/eox_core-12.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "aff1fa282b79908c2d244e7a2d7cc17180af9977a055ba9b781ac0a6a3d063b2",
"md5": "27f9afc81468d3db8c19cb3490381ee8",
"sha256": "07d809ac28f17594698aa79e6e193283c0974e1ce0e4f83dbaa81f8023604d96"
},
"downloads": -1,
"filename": "eox_core-12.1.0.tar.gz",
"has_sig": false,
"md5_digest": "27f9afc81468d3db8c19cb3490381ee8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 117767,
"upload_time": "2025-07-08T09:52:36",
"upload_time_iso_8601": "2025-07-08T09:52:36.078763Z",
"url": "https://files.pythonhosted.org/packages/af/f1/fa282b79908c2d244e7a2d7cc17180af9977a055ba9b781ac0a6a3d063b2/eox_core-12.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-08 09:52:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "eduNEXT",
"github_project": "eox-core",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "eox-core"
}