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.1.0.tar.gz (9.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.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aind_metadata_extractor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc9370971892164934e14db00ce594a4fead27602f8e28454fc3762aa7cd08b5
MD5 6840c33f319e03aab3b926c04432591b
BLAKE2b-256 8d7b16127c39adb589180f7434d167c2afb382cc7d5d31d121fe62a1ffd94562

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aind_metadata_extractor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c318ab60aece66000a8a498faed2d75f5881bc3136d339f65c9c54bb76969388
MD5 f8413970dcd9b6821a3f6d5fa367dd8c
BLAKE2b-256 888deeae249c7c0156de7c993a7d727f51b4efb0f663602f50a3413427131c1e

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