Skip to main content

Ome metadata as a rust/python structure.

Project description

ome-metadata

Open Microscopy XML metadata (https://www.openmicroscopy.org/Schemas/) as a collection of Rust structs and enums, with translation to Python.

Rust

use std::fs::read_to_string;
use ome_metadata::Ome;

let xml = read_to_string($file)?;
let ome: Ome = xml.parse()?;
let image = &ome.image.unwrap()[0];
println!("acquisition date: {:#?}", image.acquisition_date);

Python

from ome_metadata import Ome

with open($file) as f:
    xml = f.read()
ome = Ome.from_xml(xml)
image = ome.image[0]
print(f"acquisition date: {image.acquisition_date}")

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

ome_metadata-0.3.2.tar.gz (54.6 kB view details)

Uploaded Source

Built Distributions

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

ome_metadata-0.3.2-cp310-abi3-win_amd64.whl (615.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (766.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (805.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (918.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (752.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (760.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

ome_metadata-0.3.2-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (824.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

ome_metadata-0.3.2-cp310-abi3-macosx_11_0_arm64.whl (697.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ome_metadata-0.3.2-cp310-abi3-macosx_10_12_x86_64.whl (729.6 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file ome_metadata-0.3.2.tar.gz.

File metadata

  • Download URL: ome_metadata-0.3.2.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for ome_metadata-0.3.2.tar.gz
Algorithm Hash digest
SHA256 9ba9c52bdfe49aebde38825e18bc28aebd25c9241ed722431540e83d67585e09
MD5 0c20c1e9fa8434b3f5113ded4b88536b
BLAKE2b-256 1410922f1a4c76df15e74fd587ae476b1123bad3b437dc6ae6682a2f769f987d

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e4ebba27e45d3825ec4950d9c32d8066cfda49255045cc3361cbd1a9e409448e
MD5 35092f8ca3b3ed77a44cbc7208c72cde
BLAKE2b-256 7dfe146ec5bf0048e5ab09694f6cf70f9bb24f8a80c9efcbb8d5df92d1184232

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a995e2e007e6da8b020702db34a11d4924e53a60459b751c8aafcfed2866672f
MD5 1d9410dc2aa32eb33108295241ab48be
BLAKE2b-256 08acdc207da330955cec46ae2495d4002a65cae10638bfbc92b4aba2faa0d7c7

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 ec916bad2d58268fc106cfcb090e504b6dc8f51481c38f502bd3c9d7de2ea799
MD5 9fa73da36becd778936e783a79ee9171
BLAKE2b-256 3312aba198f1162f70005b26952ed5a57c077371d5d2fba7b9f847ff716548f8

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 3c50f16fd25a084269a122ee1a0810234f232bff5177d12b351b75edffed3a28
MD5 a99435ca55c29f20041386cd8ed0281c
BLAKE2b-256 67f7783b2b4e95fc9be248f5f89061c21eea56fafd77600ce99497943fe3a615

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 2f27930eaf2f10e6018e4d6e2d2e14263d8c3c1061ac0286c394856471dfdb02
MD5 51e41c3dc8200b8c1d72850810f699f7
BLAKE2b-256 edd56ffba551a6538581474ef3fdec38906429d288ee0f112b0e2e723ab28116

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2cee3167e20cc598cdd573ecd1a121edaed85b62b836be18d79ad396c3d94d4a
MD5 5bf78f02d0e97ef40d8ec7ace0a68c3e
BLAKE2b-256 6029b2b94c71bac7f1085200f8ddbc25fabe7f08028f4774bbe6e987fb527466

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 f16902b7db537888d09e31e2a843c4bcf28cd6d064e140ab86eafdebcc115d74
MD5 f60f5a1c8131cfdff73ebc13d367816d
BLAKE2b-256 0e75d1c83e410be837513d8256459f8171363397b2defe63b5e4e732ea5b0026

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd90fb77254482913eb47f1a616dfc592b0bacf18244e83537ae7f86c46f1fa5
MD5 e543220faee32a1dea818ac66108b5fe
BLAKE2b-256 779ffc800546f021045ba245dd884d4345e0b53d31e2d8a713c11e023e6beb05

See more details on using hashes here.

File details

Details for the file ome_metadata-0.3.2-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ome_metadata-0.3.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 77b25ae476d851e487f05bafebf39112caf3237534f3580412d5aa1852bbdc12
MD5 abfd9144a715bfd46c066560cd8e8429
BLAKE2b-256 c268f4c2161db046f41133769031cc3f61f609a639ad273d39ab415185c59250

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