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.4.0.tar.gz (54.5 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.4.0-cp310-abi3-win_amd64.whl (611.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (768.2 kB view details)

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

ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (803.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (920.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (752.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (764.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

ome_metadata-0.4.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (827.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

ome_metadata-0.4.0-cp310-abi3-macosx_11_0_arm64.whl (700.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ome_metadata-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl (731.7 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ome_metadata-0.4.0.tar.gz
Algorithm Hash digest
SHA256 dc786b4a403fbbff8fa1547ea716fb50d4ad3846ba5da664e1c01b6b7febc9d5
MD5 06779b230e8a71a2edd05f93453462f2
BLAKE2b-256 ac187f0b79e4ddbe10c385ffb123d5948d182574cb6b98e02defa7e67bd6eafd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c008c2fb0b5fb122f11d93b8ae4a98646c470d4bac2b16b1d853ddd7ca3582ce
MD5 bb18236b5c1f37daf8aba884c245a105
BLAKE2b-256 fed746ad1045ac3d228fa8dfc5ef95c0d61ff5815c0de5c77a9c46d55c490249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d500b959ca4c45cb5bf60403fa80077dbe9b5f2798710bc869a72b50381b466a
MD5 6ef494395fec45c3871013d301789396
BLAKE2b-256 7d5dceff8654eeb308b4fd05b26d71d8eefd2f95d415bde2cf307100059f9ebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 b53a3927268c52a0259b5f97cf166139b9e07c176135751d1d1c80dc8dd3c27f
MD5 94a6e334ec6d50f894b0e261b0ac2fc2
BLAKE2b-256 b2c46116c9e09b406821cd90b9005f1c3cb750206387d3e0fb435cdd2b31d446

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 0dd9b9ae2fa8fb22845aab123d37486be5bcf893a9acdd80a98724717dd41706
MD5 f846c6c95f5ebd0587454b3c2f5a391c
BLAKE2b-256 63fa9164eb69b29cbff084742f2ded11dd2c38672740026a3d27357325ee6afb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 615fad26f109e39663c133400f1392895e9f27a24b93a144c883f2e339c0e879
MD5 28427d9b0a00528db23d7b88476108a6
BLAKE2b-256 d6e8b911f1cc12c1990422b845bb9fd9992da9ffe7cd0607944c3964dab79f05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e99b5793b2452e77374f0372f84c1c3966fe4066363310402e92b72951d28559
MD5 c8105ccece8899e2dc82952cbcde7559
BLAKE2b-256 1c0dcd3515d12e2043cede84390f4958ee30b15876557557bb94e63159b7ffb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 f0fd578c36822fec6a7c4d6dfe1220d5fbabdebe2ba36548ef64763abd49407d
MD5 c658c443e6c6b8ec21e4800518342f40
BLAKE2b-256 9a2afb5a0b41b5f97dc331aecdb34a8b01155a8495767b3f19dad915bfc962f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6490f28fae7ca3a3703e8b78df090d1829e28add61629f8008a180cd1751713c
MD5 1abdab2af5ac6540ce64a5b334ab8bd2
BLAKE2b-256 666f0c92b609a3de58bcc8a32f2efe94bbc6ce6170ef74532ddcc751def5ca54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 21e36b6bbdcd177a2db45a5425a9f3a4d86aba45214c14f255487c4c10e1ff5b
MD5 d8f174b8aa1073959dc295cb65a045cb
BLAKE2b-256 342b5d79a602bb39b0b7650f65fd87e9495c7f29789892297548a8d2dbf655fe

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