Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

PyPI CI Codecov Documentation Supported Python versions License

Overview

The web fragments library provides a Python and Django implementation for managing fragments of web pages. In particular, this library refactors the fragment code from XBlock into a standalone implementation.

A Django view subclass called FragmentView is provided which supports three different ways of rendering a fragment into a page:

  • the fragment can be rendered as a standalone page at its own URL

  • the fragment can be rendered into another page directly from Django

  • the fragment can be returned as JSON so that it can be rendered client-side

The rationale behind this design can be found in OEP-12.

The intention is that a client-side implementation will be provided in a subsequent version. This should provide JavaScript code to request fragements over AJAX and then dynamically update the current page. This logic will be a refactoring of the current implementation in edx-platform for rendering XBlocks. It is also intended that this functionality will enhance the capabilities around dependency loading.

License

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

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome. Please read the Open edX Contributing Guide for details.

Reporting Security Issues

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

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to the Open edX guide to Getting Help.

We don’t maintain a detailed changelog. For details of changes, see the GitHub commit history.

Metadata

Release files for web-fragments 4.0.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 web-fragments 4.0.0
File Size Uploaded
web_fragments-4.0.0.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for web-fragments 4.0.0
File Interpreter ABI Platform
web_fragments-4.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 31.2 kB

Release files / web_fragments-4.0.0.tar.gz

Download URL web_fragments-4.0.0.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e82488beb4e8666b9e37a10a81258142f404f4e1964b31d3010154896832f90b
BLAKE2b-256 checksum
How to use checksums
a51c938b2e2a7908937361dcaaeb7afe17ca0f1ca9e68c335c72820b772c5b24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / web_fragments-4.0.0-py2.py3-none-any.whl

Download URL web_fragments-4.0.0-py2.py3-none-any.whl
Size 15.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0d5f59c63b2ac5ee95f76f5904c2f20d0e83d6a1425680fcc676485b13f85d32
BLAKE2b-256 checksum
How to use checksums
9df828aa823f4a618481908bc3bb815e5961cc6e79682e7ceb568bcc4d6f10f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
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