Skip to main content

Generated from aind-library-template

Project description

aind-metadata-extractor

Install

You should only install the dependencies for the specific extractor you plan to run. You can see the list of available extractors in the pyproject.toml file or in the folders in src/aind_metadata/extractor

During installation pass the extractor as an optional dependency:

pip install 'aind-metadata-extractor[<your-extractor>]'

Run

Each extractor uses a JobSettings object to collect necessary information about data and metadata files to create an Extractor which is run by calling .extract(). For example, for smartspim:

from pathlib import Path

from aind_metadata_extractor.smartspim.job_settings import JobSettings
from aind_metadata_extractor.smartspim.extractor import SmartspimExtractor

DATA_DIR = Path("<path-to-your-data>)

job_settings=JobSettings(
    subject_id="786846",
    metadata_service_path="http://aind-metadata-service/slims/smartspim_imaging",
    input_source=DATA_DIR+"SmartSPIM_786846_2025-04-22_16-44-50",
    slims_datetime="2025-0422T18:30:08.915000Z"
)
extractor = SmartspimExtractor(job_settings=job_settings)
response = extractor.extract()

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_extractor-0.2.0.tar.gz (46.1 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_extractor-0.2.0-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file aind_metadata_extractor-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for aind_metadata_extractor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e5fb2dd61c58f009ded0cb2dabc112265865a9daa59f934ffe3970ced87e4a95
MD5 a4866b43629bc291163bf5f86d223d63
BLAKE2b-256 5548fb0e51c45b8d5d3dd5e386b3c41d115ef53caf9349f58b52515b7bc0bcd3

See more details on using hashes here.

File details

Details for the file aind_metadata_extractor-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aind_metadata_extractor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa181280ea7d8d6d11043db3f135bcf69f1fa0db6bc84f0a3f7a96903074772d
MD5 1322b6e7721643e6fcdc810edf970135
BLAKE2b-256 1a12583c677ad7421254b212c5140e9815ab01d9c87437304d8bf6535bbfb707

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