This release is a pre-release and may not be stable for production use.
shacl-py
Minimal Python UI / viewer for metadata described with the DataLad Concepts Toolkit. This standalone, read-only Streamlit app is a separate Python implementation inspired by shacl-vue, developed by the Psychoinformatics team. It uses versioned schemas from the DataLad Concepts Toolkit.
Install
Use pip and Git in an already active Python 3.14+ environment, including Conda. This installs or updates the package directly from GitHub.
python --version
python -m pip install --upgrade -r https://raw.githubusercontent.com/Shavindra/shacl-py/main/requirements.txt
shacl-py --help
On macOS the optional installer checks the prerequisites and uses the active environment. See Mac and Conda setup.
View existing metadata
From the project directory:
shacl-py serve .
Open http://127.0.0.1:8501. Choose a paper to see its linked datasets, abstract, notes, other files and raw metadata. Choose Datasets in the top bar to browse datasets across papers. Select a filename to inspect its availability and any file metadata. Records lists other metadata types when present.
Each view has a bookmarkable URL. Links, filters and searches update the open viewer, and the browser's Back and Forward buttons restore previous views. Refresh the page to read changes to the project's metadata.
The viewer reads existing metadata files and MetaLad records together.
Use shacl-py serve . --metalad for the store alone, or
shacl-py serve .studyminimeta.yaml for one file. You can browse directly
after installation.
Optional metadata setup
Run shacl-py setup to create or edit a linked project catalogue. This helper
asks for project details, datasets and folders, then validates and saves
metadata.yaml and .studyminimeta.yaml.
Example: reviewing papers and their data
shacl-py setup --template paper-review
shacl-py serve .
Choose an existing collection of paper folders or add papers by title, DOI or URL. Each paper can have review notes, notebooks, raw data and analysis outputs. Pick folders once to list their contents recursively, including extensionless files. Several papers can link to the same dataset. Outputs stay under Files unless you register one as a derived dataset and link its sources and notebook.
The example ships with the CLI. The worked project
and customisable Python helper show the metadata
and folder conventions. To import an existing collection without prompts, use
shacl-py setup . --template paper-review --papers-folder research/papers --no-input.
To link more datasets to an existing paper, run from the project root and repeat
--dataset NAME PATH for each local file or directory:
shacl-py add-datasets --paper papers/field-survey \
--dataset "Station readings" papers/field-survey/data/raw \
--dataset "Station means file" papers/field-survey/data/output/station-means.csv
The command updates the catalogue. Repeating the same name and path reuses the dataset.
Other commands
shacl-py validate ROOTchecks records again after you edit them.shacl-py init DIRcreates one flat record, preserving existing metadata.shacl-py generate ROOTgenerates flat records for the immediate project folders. Existing flat records and their file-selection rules remain readable.
Use ordinary folders or use DataLad with git-annex for versioning and content retrieval. Serving lists local availability and leaves research files untouched. The CLI runs directly from the installed package. See metadata, file selection and local setup and the schema attribution.
Metadata
Release files for shacl-py 0.4.1b1
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 | Actions |
|---|---|---|---|---|
| shacl_py-0.4.1b1.tar.gz | 74.0 kB | With provenance | Details for shacl_py-0.4.1b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shacl_py-0.4.1b1-py3-none-any.whl | Python 3 | none | any | Details for shacl_py-0.4.1b1-py3-none-any.whl |
Total release size: 150.3 kB
Release files / shacl_py-0.4.1b1.tar.gz
| Download URL | shacl_py-0.4.1b1.tar.gz |
|---|---|
| Size | 74.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffd42b03cce24ebec718fb833dbf5858d6c2a477a0406180c3c0e077c1e2464b
|
|
BLAKE2b-256 checksum How to use checksums |
0703aaa5fd9c334ea48f0fa79ebc5b3db0d82ffd547a2594492edda42f13a664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 20, 2026.
Transparency logRelease files / shacl_py-0.4.1b1-py3-none-any.whl
| Download URL | shacl_py-0.4.1b1-py3-none-any.whl |
|---|---|
| Size | 76.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1302638f7135b750dbde5feb1cd3a2c619ea22f873a3e8f596827e700fa7f6ef
|
|
BLAKE2b-256 checksum How to use checksums |
be2522b3974ed8dcc10126b66c0a485e7fba6f4484733de27f1d1f144710951f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 20, 2026.
Transparency logSecurity for shacl-py 0.4.1b1
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.
Attestation for shacl_py-0.4.1b1.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 20, 2026.
Transparency logA 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.