Skip to main content

Generated from aind-library-template

Project description

aind-metadata-validator

This package includes helper functions for validating metadata from aind-data-schema, individual files in a metadata.json file, and the fields within each file.

All validation returns a MetadataState enum, see utils.py

Metadata validation

Returns a dictionary where each key is metadata, a file, or a file.field and the value is the MetadataState.

from aind_metadata_validator.metadata_validator import validate_metadata

m = Metadata()

results_df = validate_metadata(m.model_dump())

Redshift sync

The package also includes a function run() in sync.py that will validate the entire DocDB and push the results to redshift.

pip install aind-metadata-validator

from aind_metadata_validator.sync import run

run()

Project details


Download files

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

Source Distribution

aind_metadata_validator-0.7.5.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

aind_metadata_validator-0.7.5-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file aind_metadata_validator-0.7.5.tar.gz.

File metadata

File hashes

Hashes for aind_metadata_validator-0.7.5.tar.gz
Algorithm Hash digest
SHA256 321e1e4d1fcbd128ef4bec31bb7596e20b26b830b4697865a3932540dcc3a4c4
MD5 44b212472fd0f28358fa2967ee179b25
BLAKE2b-256 93b146eb7c84aed0cad7aecfa48783c53d51f1f3d67f0a9f780a2892e3c126ca

See more details on using hashes here.

File details

Details for the file aind_metadata_validator-0.7.5-py3-none-any.whl.

File metadata

File hashes

Hashes for aind_metadata_validator-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1b285789a220c854758a6745ff8929cb51130c859eb6723617ec2b8c205431
MD5 f491ddce22044659455769b3ef362a93
BLAKE2b-256 45e597ef6fb26eb43fc2b9e005f33a542dd31de0a47cb1121420e2341f87c276

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page