Skip to main content

tutor-contrib-sample

A Tutor plugin that installs and wires up the three other sub-packages in this repo (backend-plugin-sample, frontend-plugin-sample, and brand-sample) into a Tutor-based Open edX deployment. Enabling this plugin is the simplest way to see all three working together.

How to use it

See the root README for the full setup. The minimum:

pip install -e ./tutor-contrib-sample
tutor plugins enable sample
tutor dev launch

tutor-mfe is required for the frontend slot configuration to apply; the plugin degrades gracefully (backend + brand only) if it isn't installed.

How it works

The plugin is a single file: tutorsample/plugin.py. Each section below is independent of the others.

Backend. Installs the published openedx-plugin-sample package from PyPI into the LMS and CMS images via the openedx-dockerfile-post-python-requirements patch. Also registers backend-plugin-sample as a MOUNTED_DIRECTORIES entry, so that running tutor mounts add "$PWD/backend-plugin-sample" bind-mounts your local checkout and pip-installs that instead.

Migrations. Adds manage.py lms migrate openedx_plugin_sample (and the CMS equivalent) to the tutor … do init task list.

Frontend. (Only when tutor-mfe is installed.) Installs the published @openedx/plugin-sample npm package into every MFE image, injects an import { CourseList } from '@openedx/plugin-sample' into the generated env.config.jsx, and wires CourseList into the org.openedx.frontend.learner_dashboard.course_list.v1 slot (hiding the default contents).

Brand. Sets MFE_CONFIG["PARAGON_THEME_URLS"] to load Paragon's default light theme overlaid with the compiled brand-sample/dist/light.min.css served from jsDelivr.

TODO: the brand override currently assumes brand-sample has been pushed to jsDelivr from main. For a source-hacking workflow, this should be swapped for the tutor-contrib-paragon flow described in brand-sample/README.md.

Download files

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

Source Distribution

tutor_contrib_sample-3.8.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

tutor_contrib_sample-3.8.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file tutor_contrib_sample-3.8.0.tar.gz.

File metadata

  • Download URL: tutor_contrib_sample-3.8.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tutor_contrib_sample-3.8.0.tar.gz
Algorithm Hash digest
SHA256 ede06d4526b7f6943817ac234e04fd80f2259f1569fe2fb2066b3b7bf68b7349
MD5 7a3455b671131e135e85b3901731e2ef
BLAKE2b-256 370b182c431ebb557e064671dfb24a26b8d72a1d80ee6d097611136d802c5e1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tutor_contrib_sample-3.8.0.tar.gz:

Publisher: release.yml on openedx/sample-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tutor_contrib_sample-3.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tutor_contrib_sample-3.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e0ff78861b13480f042a3ba6b3a241e6b490bbbfd215208856b20f257197803
MD5 00db5b2b9d5f1b80fc6f7103825870e2
BLAKE2b-256 079bc625b08d3e328680cbfe61919a717e4f2fda2adff511efde138c063fc897

See more details on using hashes here.

Provenance

The following attestation bundles were made for tutor_contrib_sample-3.8.0-py3-none-any.whl:

Publisher: release.yml on openedx/sample-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.8.0 This release

2 files

3.7.4

2 files

3.7.3

2 files

3.7.2

2 files

3.7.0

2 files

3.6.1

2 files

3.6.0

2 files

3.5.0

2 files

3.4.0

2 files

3.3.0

2 files

3.2.0

2 files

3.1.0

2 files

3.0.1

2 files

3.0.0

2 files

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