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.1.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.1-cp310-abi3-win_amd64.whl (610.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (769.3 kB view details)

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

ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (795.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (915.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (752.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (762.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

ome_metadata-0.3.1-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (824.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

ome_metadata-0.3.1-cp310-abi3-macosx_11_0_arm64.whl (697.7 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ome_metadata-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl (740.0 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ome_metadata-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0ccc6a9c3da0b6ffcae89c28303529c57d54d3c45bca8cc60961f85f8ed219de
MD5 9e0dc616d92bf8d54ac023108d7d3cf7
BLAKE2b-256 6e9b860fd87fbbee935de2dfc3da8d9fb382637d8a8491b4e643b77feb94bd38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 037c092eba16c53b6ef0869c599ebda2116347c26eb2079081e005c98cba5681
MD5 65b3d0ce2cf48e8fbf0236374ca215fe
BLAKE2b-256 770ed840e44775fd186fb55275f1afd28da6b2e1e55e4657a5c72fc3e3950291

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff8ecf044d030c91ff1aaf5ffb0f5c51d66c3e64300e9870e5e40af9aa7056c4
MD5 69f13559d5c5faef320ce1bdb315c61c
BLAKE2b-256 7d1cbf7ebd41cc1a8ac05464b43da99073070fb6a0d3129bf9c0321f0600d537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 4ddcb6144c6174d8c62aafd946fb6e82bfda8f49d07f8c6d20d092ad4a194610
MD5 bb28994f641ca98f0069dbaac786e527
BLAKE2b-256 9dce60671680ab179dfff2ce23e8451fd0ef1db13cdfed18fb5f06c48fca16be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 0316ad0f5f7725c92ffcfd14ec0a1816df1ce2394e4e9db9b1da97749aaff9ea
MD5 7027fe30d4eafe0d9b806d77e587d704
BLAKE2b-256 135f30fc5defa5954244ff9053375a17257549b42e7fa6c38053a6d20fa2196b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 0db515362d8dc218b55113801156c3fd2fe9af81d37a913cf972d1badf181977
MD5 3607e73b60642874849a1d993fa44540
BLAKE2b-256 d20c464b3e207b401ed4b801483cbec18a039184b87a2ceebc1f74ed1b94b4b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e4bc93cfc893dbaa5dc9a1312be4a98854871ca65b8b477c04350962b7479156
MD5 7c06e74137e611b0f9ec2b3003d08a0e
BLAKE2b-256 67c7550ea7ac62c271d65785c8c1cb83ad02ac74b1a1f0ac467ccd66d85867d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 aaeb1557d2d2ab34d7071a52f2e23f76c8340715aa72ddd99d7e4983fd555d1d
MD5 1c2ad9a6075e4a9124a053b883e3ce37
BLAKE2b-256 66dd36bc56aa613cbc84d3009b0ebfb887dc566fbbb5c6bd19a9ed9d12cf69bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46166e9cc7d1bda5646fb11a5e7a35d3f933a113a87463e91d0778cda6df17bd
MD5 589c15e2c0900d7f2fee836faa17192a
BLAKE2b-256 ab3ab103633e72254f1260752c33e872643ccb7193dc4e55055d3c49bc9e9b3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f632515249fba7a37bd11f8dc2f2ddb717f0158ba4250261d5ca2a6f157ff30a
MD5 7728ab7257020270869e8f57f3d28b56
BLAKE2b-256 b6a39fdd85cf0eee06846c13ebbced6d49c1f7029a3701cd456927c6f597ed08

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