Skip to main content

Generated from aind-library-template

Project description

AIND Metadata Manager

AIND Metadata Manager is a Python package for managing, upgrading, and validating metadata files used in the Allen Institute for Neural Dynamics (AIND) data pipelines. It provides tools to upgrade metadata schemas, process and validate metadata, and support reproducible data workflows.

Features

  • Upgrade metadata files to the latest schema versions
  • Validate and process metadata for AIND data pipelines
  • Utilities for handling data descriptions, procedures, and processing metadata
  • Command-line and programmatic interfaces

Installation

  1. Clone the repository:
    git clone https://github.com/AllenNeuralDynamics/aind-metadata-manager.git
    cd aind-metadata-manager
    
  2. Create and activate a virtual environment (recommended):
    python -m venv venv
    venv\Scripts\activate  # On Windows
    # or
    source venv/bin/activate  # On macOS/Linux
    
  3. Install dependencies:
    pip install -e .
    pip install aind-data-schema aind-metadata-upgrader
    

Usage

As a Python package

from aind_metadata_manager.metadata_manager import MetadataManager, MetadataSettings
settings = MetadataSettings(input_dir='path/to/input', output_dir='path/to/output')
manager = MetadataManager(settings)
manager.create_processing_metadata()

Command Line Interface

A CLI may be available (see src/aind_metadata_manager/metadata_manager.py for details):

python -m aind_metadata_manager.metadata_manager --help

Development & Testing

  • Tests are located in the tests/ directory.
  • To run tests:
    venv\Scripts\python -m unittest discover -s tests -p "test_*.py" -v
    

Project Structure

  • src/aind_metadata_manager/ — Main package code
  • tests/ — Unit tests and test resources
  • docs/ — Documentation

Requirements

  • Python 3.10+
  • aind-data-schema
  • aind-metadata-upgrader
  • pydantic, pydantic-settings

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

Citation

If you use this package, please cite as described in CITATION.cff.

Contributing

See CONTRIBUTING.md for guidelines.

Contact

For questions or support, please open an issue on GitHub or contact the Allen Institute for Neural Dynamics.

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_manager-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aind_metadata_manager-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file aind_metadata_manager-0.1.0.tar.gz.

File metadata

  • Download URL: aind_metadata_manager-0.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aind_metadata_manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bca7f7cdfd6ad9c1150a17fd6f8d5cac40026a49e8878ef5fcab79dbd4783efc
MD5 ae5a9c1137df7cc6118a4e7cb8dcbfef
BLAKE2b-256 9fca5e9ece9cc8d0cf436b40b72b62386ccf4ca7b4b3830e3662597578be3be0

See more details on using hashes here.

File details

Details for the file aind_metadata_manager-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aind_metadata_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b45f9689d9cf19a390900b2188b578f4770185c604e72e1be3566828c0375c07
MD5 cfee3c335ca101d29d2d0603b0e0a90c
BLAKE2b-256 fd14332fec1c45c3a90d152db57b80c62a555b859e63a42d840cf1fa52606504

See more details on using hashes here.

Supported by

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