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 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xblock_accordion-1.2.0.tar.gz | 807.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xblock_accordion-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / xblock_accordion-1.2.0.tar.gz
| Download URL | xblock_accordion-1.2.0.tar.gz |
|---|---|
| Size | 807.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4685ecbef09e67d5e06445cbe4313c91e7f1b04daeab128a810e361a3f9500d8
|
|
BLAKE2b-256 checksum How to use checksums |
20331ebb7e16e5c64adf143d0aa46c3ac81b65b41d2f7d856788e9de31423694
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / xblock_accordion-1.2.0-py3-none-any.whl
| Download URL | xblock_accordion-1.2.0-py3-none-any.whl |
|---|---|
| Size | 810.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9606768bdbba8e40df285e7982ef79ebd6790b13abb82b13e88a2a67dc7561db
|
|
BLAKE2b-256 checksum How to use checksums |
045ae0f236f9bf6784ee05c1a54e22ee0a08c0dc873f1ca85cec26a52bd2f600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for xblock-accordion 1.2.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.