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.2.tar.gz (54.7 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.2-cp310-abi3-win_amd64.whl (620.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (794.5 kB view details)

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

ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (980.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (851.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (777.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (788.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

ome_metadata-0.2.2-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (848.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

ome_metadata-0.2.2-cp310-abi3-macosx_11_0_arm64.whl (723.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ome_metadata-0.2.2-cp310-abi3-macosx_10_12_x86_64.whl (743.2 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ome_metadata-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5862ee600aad6f68b8b1c73e7baeb1b04c24466b3407f9d9805c4958457e57be
MD5 50bfeacd3257381f236a17daf872b04d
BLAKE2b-256 4576ea76ad1e0cd2a3a8ac3da71819a2af972304ad24c4a57e8b13e5c9a4e419

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 de20665ec2bc1e0c80e9c7fb0df30319b0479ececcba718889cd9e58cac8bf46
MD5 a3b650bbb6674f78337780a708858f4c
BLAKE2b-256 2bf8af6a94e76211ab9bd2280a6bf116d333da9fb4e091c70b517cc24f1c9182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 193976a065fc95ed8bb08e910a862d29a0d83dbd446a73ee8f3c71fc30d41c0e
MD5 d083b8f4aac367141e528d71f48d944f
BLAKE2b-256 bf23eeebd0dded656f6d82fada6f882cff16ae56f90c37b96cf6d7381380ebb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 0d28a87f358165466a5df763f6934f54cab3d3336692b25f5cf77c972666bce6
MD5 efe25573d0a88a42c3f38e632636f614
BLAKE2b-256 7bc1721c397950c4a89cf1e1ca3602f416779e7dc19a01c0a0b3d4e46a0a1d98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 373021de7780fe1059b6628dece3934d6fea5cd447914e2be05943bc0d1d25bc
MD5 f74e2e9f50ccaaac7e754dd1cc2b9a28
BLAKE2b-256 4dcc6b2eb646b3ce10615012395c5dc6a93847284f1c104e5ab9d1635a69b2c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 1b0c3e79140e2269efcacf690bdca99b63c37fae65891d2037f6b944bdbb9541
MD5 bcd922cd56260d4d0ddb737453c1cd56
BLAKE2b-256 568aed28ade3185cfdbb2d1265b0cf8c574df5dec2389dcd1ab8e5b3423ec934

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1e385b32a3805cba601ae49964e59bb82d797d5ba3e5ad96100b7d857282096a
MD5 392483af2dcc85a1f1f1745370c68e4a
BLAKE2b-256 6a9e51f186ee5ca3574fab3e02787d5ef1f3930b3ca63f268c620a802bd87656

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 2951c287b4264829990d8fb05621b0d88a1d082fdb014f443538c16a1d8947bf
MD5 050fb354b8dfe75611aefa5882157473
BLAKE2b-256 e37c4406e39ba4ccfb9a696a50bdcb85e22a01526d57fd5ad85a0495557c3bd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8b7a08d311010d08e709a53be3d312941cc81d099f2525cd92e562f2a15d704
MD5 3c0d98d4703a3665f1f3094edd91392e
BLAKE2b-256 e818da2d23c2c4bda55dfc681840e249e45fee9d9c596cec390333e4873fc8e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ome_metadata-0.2.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d1ebe64daca6d7fd61f28b35d7d4735ccf420c0207215f65e5c490f30d450ad9
MD5 9a5f0b321bdf8c0718d2f1e99a54f400
BLAKE2b-256 f0b94d5e5c937f7ea4f0c32e160640e48affdeb9e218faaaac40cdd203818d68

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