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.3.0.tar.gz (49.9 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.3.0-py3-none-any.whl (57.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aind_metadata_extractor-0.3.0.tar.gz
  • Upload date:
  • Size: 49.9 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.3.0.tar.gz
Algorithm Hash digest
SHA256 581fbaf15ffbcc9696952e4a422d7efdaedeb55c772f8a3c596472680fdd5c85
MD5 fe4b39fb347fcaa888d569ddc190fc64
BLAKE2b-256 1049f639d40f919fda30bd0abd62bf8826af3944e4b941701917fe4ef760f8d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aind_metadata_extractor-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2c35ab2fbd305d8fe931befca54541ee9c9a3776df9af2ff1adce8d47dab394
MD5 6e98b3319a9076284118c7583f0ee2db
BLAKE2b-256 76fe8d6cc65326fb07483dfc98e4681d878d3cee92fcbbc6480adfcc36013e66

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