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

Uploaded CPython 3.10+Windows x86-64

ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (769.7 kB view details)

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

ome_metadata-0.3.0-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.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (914.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (753.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (761.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

ome_metadata-0.3.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (821.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

ome_metadata-0.3.0-cp310-abi3-macosx_11_0_arm64.whl (694.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ome_metadata-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl (739.7 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: ome_metadata-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ceb41873d6ed28fddae30933598a83ddfea67cb46a2ff26030061d7d679030bc
MD5 452cf01dad425192af4635bb56a5212a
BLAKE2b-256 8010f1c650b9f7f002635776e9a071fe4c7a57fb54e330ab7b4a8a9f888d7928

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 abe5353062b7f58265aaa706383c5160523f2a50bd96b1a68f6bebde5f90a1a6
MD5 a5b61613de18c032d8e8bb531f991052
BLAKE2b-256 6480732324c452add9cf45a27c278b3bced157e978f0cbde1a0bdc03c5180a31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e745155cdc09515416c3de92db3213ffb575b79584b16f1feddc376e77085266
MD5 3c6308d0a51e03890d6d46e3132236d6
BLAKE2b-256 55eff64c0146ef70264e0499dbbffc1770f745110376c0c2ddb40a54e9ecaa00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 2f694d5bf23ddcb5be3b5e24fd510af0939180be7b5009a6be53088e4a50fbb0
MD5 c6fb6bdbefc2e4f986c488bc90b0876c
BLAKE2b-256 7ebdf1670492bdbca2c4310334e8bf3a4cba74f03cb2e604de5af1557d215d00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 d1f65a69d9015a1d2634b588d56e9b093538544fbffce2ab58788a271cfa357d
MD5 ccdb4cee6e43a6adca6517b5ff99dc5a
BLAKE2b-256 06a0c8c0019fd3396fcaa103b4f9b2bfb5cf07f6e2d7bbd67126afeb9843295e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 4dc8899618f6e83fd77cfcce92b96c14d0839d15cfa6f5eb4b24a3fe0d8ce24d
MD5 5be180373021323b668d542becf59b03
BLAKE2b-256 d48d6959e319488c514060fe08a2d176a53e92da9c9e2946ffb6f7065fbc1b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a4cccc701b34765424adc495e891e323908779edc37094aab174393588d2bdde
MD5 6c8b5f2d312334fe843bbe368d085916
BLAKE2b-256 1a8fac13419e40f34cd824d504ebeef6560c1f06500f198f70059cd04eada1d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 2ccd3096ac1af136b702fd6872ea9bcb1ba9e070084631159c7d2a4cf69cd67e
MD5 a796396b907f49c944bfe0cbe0d1aa46
BLAKE2b-256 45a64b88d5ef15e3be3b110064210c908f251778a8038616085eb72124538f09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d36d3a96650e7885384052207d3eee4bc8defa37524710972a769978e94d610
MD5 4ef9b89db230ef0ae771fc937ff74c10
BLAKE2b-256 f9432aa7d38c410e412257446c40834d087ce2f85e737c1d1348fd3886e017d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4ad2229f7ea509b087b1c754fe92c156eb841266258b8f788d00a0ea68195c89
MD5 9fe9f974806a36244a64b5d56dbdf534
BLAKE2b-256 8c9da689d2873b25655a47b353ca0f21ee677756034fbd10bfde9a748bdaf99f

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