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.2.1.tar.gz (54.9 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.2.1-cp310-abi3-win_amd64.whl (625.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (802.2 kB view details)

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

ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (991.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (860.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (787.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (798.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

ome_metadata-0.2.1-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (853.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

ome_metadata-0.2.1-cp310-abi3-macosx_11_0_arm64.whl (732.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ome_metadata-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl (755.0 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ome_metadata-0.2.1.tar.gz
Algorithm Hash digest
SHA256 81cf3e812093a1cb88f56889332fe512f1369a265dc22f98320a3359539b901a
MD5 9ed272a01fcf34337387dba3dc26b58c
BLAKE2b-256 93ee94d987e5f1bcb89ffcc728dc163e91857e211adaf9fa76365a522f0e2fbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 af26100eb08ef3cce077d85a1001ba9aa6e09cfc6d8b04414c4bdb271be69507
MD5 1774b7a462ab57b470055d4db89a4e94
BLAKE2b-256 5f996dc9504125e66acf56b598d026ce57f69432d6bbee6f6c7b0a310077e059

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a14362ff65887701a20b83e65631cd874cec719a640d0df394788adae943a01b
MD5 59ac770957a058a2063a3b78753a2440
BLAKE2b-256 438b9b00290a70b12c10ac64c7452831d8912db50821ba21bb8af11c78c22111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 ddf42dfe8ae24155d4782fceb3ccc5fadbc938b10c81c577e8e800e2ad63ba6e
MD5 b8527e6c87fc9d7a7e27ea9fc39e1076
BLAKE2b-256 ef6253eb5afcce19a7fc3d9fe7e04bc59347e3f8f7033274cb36e72940ef5dba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 c280abb617a212888be878f168ef0ec3921911aed13db7829514cbabbb233f5f
MD5 fcc259f2b608cf6d2f1e135e1782abaf
BLAKE2b-256 045da302360d47bf3a2277290928aed08c0fe79a94556f3c9dcd884299e5593e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bcc147b52c693a68a1f3bd92fbdc6580ef57b63686887e25ce3e659e3d1fbb8d
MD5 dca85e86717a9a1311844156e608262a
BLAKE2b-256 2b8e7fae44c721b3dbb3ba03f37d0b1ad701b959eca371cbda430c74f6e4c2c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b2b3424e16b4cae00940d035602474752d93e369e438eb34f0341e861f7a2e68
MD5 7e0763113ac7e6459bda3390e4a949b3
BLAKE2b-256 a4fbaf3bbc07482fa7bb54a9bfb66b9b23b806f8a9ed14b69be1a9351e4f461c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 84f3e591f115b7f5d23b3942557937413210437cd6caa7db1104bdb2837c41d1
MD5 407d1b84fe65b9342398a20d71d4cccf
BLAKE2b-256 963d28019612444ee256a075610a3c17be712647fc6f4a3fdd85c69605fb3405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d9f590608fe78682d617d6df4b9e86fbee1c08659ea9fb9ca49cddf0539d03b
MD5 437a4c1f1fa487265be8b4d40eba4ea5
BLAKE2b-256 761f97b5b7faa7f7fbbf9f8aee8e72c613755b96ef7884f60e45b88e8f092804

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7c6d2534a3802ccca2d5d22adae7dbaf70209a69ff7969230eeae84002c30b11
MD5 32c18c00c8a0b23fa5b6d260800e6366
BLAKE2b-256 edbd2c9c84b77ef6a4b35b919fdad869ac114881c8ebeadea49bdb748e4e5eec

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