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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aind_metadata_validator-0.7.5.tar.gz
.
File metadata
- Download URL: aind_metadata_validator-0.7.5.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321e1e4d1fcbd128ef4bec31bb7596e20b26b830b4697865a3932540dcc3a4c4 |
|
MD5 | 44b212472fd0f28358fa2967ee179b25 |
|
BLAKE2b-256 | 93b146eb7c84aed0cad7aecfa48783c53d51f1f3d67f0a9f780a2892e3c126ca |
File details
Details for the file aind_metadata_validator-0.7.5-py3-none-any.whl
.
File metadata
- Download URL: aind_metadata_validator-0.7.5-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1b285789a220c854758a6745ff8929cb51130c859eb6723617ec2b8c205431 |
|
MD5 | f491ddce22044659455769b3ef362a93 |
|
BLAKE2b-256 | 45e597ef6fb26eb43fc2b9e005f33a542dd31de0a47cb1121420e2341f87c276 |