Skip to main content

skill_tagging

PyPI CI Codecov Documentation Supported Python versions License status-badge

Overview

Django app for fetching and verifying tags/skills for video and vertical/unit XBlocks. It implements two openedx_filters pipelines to inject a form into the end unit XBlocks and video XBlocks.

vertical block verification form video block verification form

More information about the XBlock skill tagging design can be found in this ADR.

Getting Started

To install skill_tagging in edx-platform, run

pip install skill_tagging

# to install a development version locally in devstack
# clone this repo in `<devstack_base_dir>/src` directory and run
pip install -e /edx/src/xblock-skill-tagging

This repo depends on discovery service for fetching skills/tags for a given XBlock which depends on taxonomy-connector plugin for generating and serving these tags. Setup taxonomy-connector plugin in course-discovery by installing it via pip:

pip install taxonomy-connector

# to install a development version locally in devstack
# clone this repo in `<devstack_base_dir>/src` directory and run
pip install -e /edx/src/taxonomy_connector

Whenever a user verifies tags/skills for an XBlock, skill_tagging emits an openedx_event called XBLOCK_SKILL_VERIFIED. This event needs to be consumed by course discovery to make sure that the verification count is incremented for that skill/tag.

To produce and consume this event, setup an implementation of event bus like event_bus_kafka or event_bus_redis. How to start using the Event Bus has detailed information on setting up event bus. The host would be edx-platform while course-discovery will be the consumer for the event bus.

Configuration

Add following configuration values to the host django settings, i.e. LMS settings: lms/envs/common.py

from .common import XBLOCK_MIXINS
# Below mixin adds the ability to fetch skills/tags from discovery and update them.
XBLOCK_MIXINS += ('skill_tagging.skill_tagging_mixin.SkillTaggingMixin',)
# Set below url to point to discovery service.
TAXONOMY_API_BASE_URL='http://edx.devstack.discovery:18381'
# Configure the maximum number skills/tags to display in the form for a given xblock.
TAXONOMY_API_SKILL_PAGE_SIZE=20
# Copy this as is, this configures the required openedx_filters.
OPEN_EDX_FILTERS_CONFIG = {
    "org.openedx.learning.vertical_block.render.completed.v1": {
        "fail_silently": False,
        "pipeline": [
            "skill_tagging.pipeline.AddVerticalBlockSkillVerificationSection",
        ]
    },
    "org.openedx.learning.vertical_block_child.render.started.v1": {
        "fail_silently": False,
        "pipeline": [
            "skill_tagging.pipeline.AddVideoBlockSkillVerificationComponent",
        ]
    }
}
# helps to configure probability of displaying the verification forms. Values in range 0 to 1 are allowed, where 0
# means never and 1 means always display. Default value is 0.5 i.e. 50% chance of displaying the form.
SHOW_SKILL_VERIFICATION_PROBABILITY = 0.5
# Optionally update topic name for verification event emitted when a user verifies tags for an xblock.
EVENT_BUS_XBLOCK_VERIFICATION_TOPIC = "learning-custom-xblock-skill-verfied"

Developing

One Time Setup

# Clone the repository
git clone git@github.com:openedx/xblock-skill-tagging.git
cd xblock-skill-tagging

# Create a virtualenv in .venv using uv (https://docs.astral.sh/uv/)
uv venv

Every time you develop something in this repo

# Activate the virtualenv
source .venv/bin/activate

# Grab the latest code
git checkout main
git pull

# Install/update the dev requirements
make requirements

# Run the tests and quality checks (to verify the status before you make any changes)
make validate

# Make a new branch for your changes
git checkout -b <your_github_username>/<short_description>

# Using your favorite editor, edit the code to make your change.
vim ...

# Run your new tests
pytest ./path/to/new/tests

# Run all the tests and quality checks
make validate

# Commit all your changes
git commit ...
git push

# Open a PR and ask for review.

Deploying

This package is automatically released and published to PyPI on every merge to main, using python-semantic-release. The next version is determined from the conventional commit types merged since the last release (fix: or perf: bumps the patch version, feat: bumps the minor version, and a breaking change bumps the major version). Commits of other types (e.g. docs:, chore:, build:) do not trigger a release.

Getting Help

Documentation

Published documentation is not available.

More 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 anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide.

https://github.com/openedx/xblock-skill-tagging/issues

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

License

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

Please see LICENSE.txt for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

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

Metadata

Release files for skill-tagging 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skill-tagging 1.1.0
File Size Uploaded Provenance Actions
skill_tagging-1.1.0.tar.gz 171.3 kB With provenance Details for skill_tagging-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skill-tagging 1.1.0
File Interpreter ABI Platform Actions
skill_tagging-1.1.0-py3-none-any.whl Python 3 none any Details for skill_tagging-1.1.0-py3-none-any.whl

Total release size: 205.7 kB

Release files / skill_tagging-1.1.0.tar.gz

Download URL skill_tagging-1.1.0.tar.gz
Size 171.3 kB
Tags Source
SHA-256 checksum
How to use checksums
61497dee494188c46da6db361d3ad4498ec26ad34583c0b85ed8d10e04ec9283
BLAKE2b-256 checksum
How to use checksums
2edff83e2f7c1cda11dfa486a9527e26885a9fff45b2bd8c8e2c83606cfb7b70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / skill_tagging-1.1.0-py3-none-any.whl

Download URL skill_tagging-1.1.0-py3-none-any.whl
Size 34.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a043f64398165dcac1d1e6674a74805633527f41d069d9eb59a9585ea04d00e2
BLAKE2b-256 checksum
How to use checksums
f57d01667dd87cbbe072129fb29bfe94b1672f792f429293a40556396cb8636c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for skill-tagging 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for skill_tagging-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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