Skip to main content

learning-credentials

PyPI CI Codecov Documentation Supported Python versions License Status Visualization

Purpose

A pluggable service for preparing Open edX credentials.

This is focused on the use cases of our client but designed to be a flexible foundation for any Open edX credential needs. It natively supports generating PDF credentials, but can be extended to support other formats.

For the details about the purpose of this repository, please see the the following ADR.

Documentation

Start by going through the documentation.

Getting 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/open-craft/learning-credentials/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 help@opencraft.com.

Change Log

Unreleased

0.5.3 - 2026-08-11

Fixed

  • The is_generation_enabled field of the credential eligibility endpoint is now based on the expires field of the periodic task, when it is set. The enabled flag is updated by Celery Beat (e.g., it disables expired and already executed one-off tasks), so it does not reliably reflect the intended configuration.

0.5.2 - 2026-08-11

Changed

  • The CredentialAdmin list view is now ordered by the created timestamp in descending order (most recent first).

Removed

  • CredentialAdmin and CredentialConfigurationAdmin list views no longer allow filtering by the learning_context_key.

0.5.1 - 2026-03-17

Added

  • Credential eligibility check endpoint (GET /api/learning_credentials/v1/eligibility/<learning_context_key>/) with detailed progress information.

Changed

  • Processor functions now return dict[int, dict[str, Any]] with detailed eligibility information instead of list[int] of eligible user IDs.

  • Processor functions now accept an optional user_id parameter for single-user eligibility checks.

0.5.0 - 2026-01-29

Added

  • Credential validation and invalidation system with INVALIDATED status.

  • verify_uuid field on credentials — a separate UUID used for third-party verification, distinct from the primary key.

  • invalidated_at timestamp and invalidation_reason fields on the Credential model.

  • learning_context_name cached field on credentials for use in validation display.

  • Public API endpoint (/api/learning_credentials/v1/metadata/<uuid>/) to retrieve credential metadata by verification UUID.

  • “Reissue credential” admin action that invalidates the current credential and generates a new one.

  • {verify_uuid} placeholder support in PDF text elements.

  • Admin test suite (test_admin.py) and included it in test coverage.

Changed

  • Replaced user_id (IntegerField) with a user ForeignKey to the User model.

  • Added configuration ForeignKey on Credential linking to CredentialConfiguration, replacing credential_type and learning_context_key lookups.

  • Simplified generate_pdf_credential() signature to accept a Credential object instead of separate parameters.

  • Changed the PDF output directory from hardcoded external_certificates/ to the configurable LEARNING_CREDENTIALS_OUTPUT_DIR setting.

  • Credential issue date on PDFs now uses the credential’s creation date instead of the current time.

  • get_localized_credential_date() now accepts an explicit datetime parameter.

  • Disabled add and delete permissions for credentials in the Django admin.

0.4.0 - 2026-01-28

Added

  • New text_elements format for PDF credential generation with flexible text positioning and placeholder support.

  • Support for custom text elements with {name}, {context_name}, and {issue_date} placeholders.

  • Global defaults configuration for font, color, and character spacing.

Modified

  • Migrated generator options from flat format (name_y, context_name_color, etc.) to structured text_elements format.

0.3.1 - 2025-12-15

Added

  • Support for defining the course name using the cert_name_long field (in Studio’s Advanced Settings).

  • Support for specifying individual fonts for PDF text elements.

  • Support for n in learning context names in PDF certificates.

  • Options for uppercase name and issue date in PDF certificates.

  • Option for defining character spacing for issue date in PDF certificates.

  • Option for defining the horizontal offset of the issue date from its centered position (issue_date_x).

Modified

  • Replaced template_two_lines with template_multiline.

0.3.0 - 2025-09-17

Added

  • REST API endpoint to check if credentials are configured for a learning context.

0.2.4 - 2025-09-07

Added

  • Option to customize the learner’s name size on the PDF certificate.

0.2.3 - 2025-08-18

Modified

  • Certificate email template wording.

0.2.2 - 2025-08-05

Added

  • Step-specific options support for Learning Path credentials.

Removed

  • Legacy openedx_certificates app.

0.2.1 – 2025-05-05

Fixed

  • Check enrollment status before issuing Learning Path credentials.

0.2.0 – 2025-04-03

Added

  • Learning Paths support.

0.1.0 – 2025-01-29

Added

  • Initial implementation of the certificates app.

Metadata

Release files for learning-credentials 0.5.3

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

Source distribution (sdist)

Source distribution for learning-credentials 0.5.3
File Size Uploaded Provenance Actions
learning_credentials-0.5.3.tar.gz 80.0 kB Without provenance Details for learning_credentials-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for learning-credentials 0.5.3
File Interpreter ABI Platform Actions
learning_credentials-0.5.3-py3-none-any.whl Python 3 none any Details for learning_credentials-0.5.3-py3-none-any.whl

Total release size: 144.2 kB

Release files / learning_credentials-0.5.3.tar.gz

Download URL learning_credentials-0.5.3.tar.gz
Size 80.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2608cb9e39ddfe088504aca932be6c37515c269a54b3e00a3bae30bdb7d22799
BLAKE2b-256 checksum
How to use checksums
4d5a6346eca7762e7adbfecd1daef5bf64d173a64247c1e7c11bf4c5f6c81683
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.2 {"installer":{"name":"uv","version":"0.13.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / learning_credentials-0.5.3-py3-none-any.whl

Download URL learning_credentials-0.5.3-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ba8c564a2d9b59699d4ee45361cc8cbf971b72fd850996d7348f991482b0c87
BLAKE2b-256 checksum
How to use checksums
63979875b1a0720606c5a5eecde38333536b95bdda66d2ea8236edf05aff3533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.2 {"installer":{"name":"uv","version":"0.13.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for learning-credentials 0.5.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files No provenance

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