Skip to main content

Schemata for DANDI archive project

Project description

A Python library for maintaining and managing DANDI metadata schemata. The library helps create and validate DANDI schema-compliant metadata for Dandisets and assets.

To use: pip install dandischema

Every Dandiset and associated asset has a metadata object that can be retrieved using the DANDI API.

This library uses Pydantic to implement all the metadata classes. Schemas are generated on schema modifications and placed into this repository.

Dandischema generates JSON schema definitions and also an associated context.json file for JSON-LD compliance of the metadata models.

  • models.py - contains the models and any changes should be made there
  • metadata.py - contains functions for validating, migrating, and aggregating metadata
  • datacite.py - converts the Dandiset metadata to a Datacite metadata structure

The generated JSON schemas can be used together with VJSF to create a UI for metadata modification. The DANDI Web app uses this for Dandiset metadata modification.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dandischema, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size dandischema-0.4.1-py3-none-any.whl (56.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dandischema-0.4.1.tar.gz (47.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page