Skip to main content

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. Search your metadata by title, author, keyword or identifier and select a record. Metadata shows its fields and original source. Datasets opens related datasets. Files opens selected folders, notebooks and data files. Select a file to see its local availability and any metadata recorded for it.

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.

Other commands

  • shacl-py validate ROOT checks records again after you edit them.
  • shacl-py init DIR creates one flat record, preserving existing metadata.
  • shacl-py generate ROOT generates 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.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 shacl-py 0.4.0
File Size Uploaded Provenance Actions
shacl_py-0.4.0.tar.gz 63.7 kB With provenance Details for shacl_py-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shacl-py 0.4.0
File Interpreter ABI Platform Actions
shacl_py-0.4.0-py3-none-any.whl Python 3 none any Details for shacl_py-0.4.0-py3-none-any.whl

Total release size: 131.5 kB

Release files / shacl_py-0.4.0.tar.gz

Download URL shacl_py-0.4.0.tar.gz
Size 63.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9cb2ac702acaf1c17d1d2c9190ae3c313404b5fd3d4bdab07518a2ef080433a9
BLAKE2b-256 checksum
How to use checksums
e1f40f1a19ffb513f2120084b440bd4d6a77981951b3d2410805025e2863e236
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 18, 2026.

Transparency log

Release files / shacl_py-0.4.0-py3-none-any.whl

Download URL shacl_py-0.4.0-py3-none-any.whl
Size 67.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21442eb85305e0ed48f661bd66396c3472803a0a01ea392b361c9a9312acba8c
BLAKE2b-256 checksum
How to use checksums
1dedfa22e731c763c101aed84d1bed90862a0fb1159f6d90349707c26d88b483
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 18, 2026.

Transparency log

Security for shacl-py 0.4.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for shacl_py-0.4.0.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 18, 2026.

Transparency log

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