Skip to main content

Accordion XBlock

Testing with Docker

This XBlock comes with a Docker test environment ready to build, based on the xblock-sdk workbench. To build and run it:

$ make dev.run

The XBlock SDK Workbench, including this XBlock, will be available on the list of XBlocks at http://localhost:8000

Testing frontend

The frontend code in the XBlock can be tested without the backend running for quicker iteration on the UI. To do this, just run npm run dev in the frontend folder. This will start a dev server with just the frontend component. You can open the URL in the terminal and browse to the student or studio components.

Installation

You can install the XBlock with the following command:

pip install xblock-accordion@git+https://github.com/open-craft/xblock-accordion.git

If using tutor, you can add xblock-accordion@git+https://github.com/open-craft/xblock-accordion.git to OPENEDX_EXTRA_PIP_REQUIREMENTS to have the xblock installed on deployment.

Usage

To use the XBlock in a course, you need to ensure that you have “accordion” in the Advanced Modules List in the Advanced settings page of the course.

Once added there you will be able to add an Accordion block from the Advanced Modules section of blocks.

Metadata

Release files for xblock-accordion 2.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 xblock-accordion 2.0.0
File Size Uploaded Provenance Actions
xblock_accordion-2.0.0.tar.gz 799.6 kB Without provenance Details for xblock_accordion-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xblock-accordion 2.0.0
File Interpreter ABI Platform Actions
xblock_accordion-2.0.0-py3-none-any.whl Python 3 none any Details for xblock_accordion-2.0.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / xblock_accordion-2.0.0.tar.gz

Download URL xblock_accordion-2.0.0.tar.gz
Size 799.6 kB
Tags Source
SHA-256 checksum
How to use checksums
430d058035c6aa025748144fb481eb0daf94fa1cd43a740a8f9fd1502bd681de
BLAKE2b-256 checksum
How to use checksums
a6712c41cac9b1dad228dcf1b4881e2bf6e0c7499a8b8559e7100e9e48b336c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xblock_accordion-2.0.0-py3-none-any.whl

Download URL xblock_accordion-2.0.0-py3-none-any.whl
Size 811.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7565bc0b8d9bbd99cae28968b90f584c1cd1ca27bb65829827799b245358b0d4
BLAKE2b-256 checksum
How to use checksums
4b840b317e4119610aab3518589c7a43d6f00d95b344c3c6b06b66c74d484013
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for xblock-accordion 2.0.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.

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.

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