Skip to main content

muDM (micro Data Model) — a GeoJSON-inspired data model for microscopy spatial data.

Project description

muDM

Documentation Docs build

muDM (micro Data Model) is a GeoJSON-inspired data model for encoding microscopy spatial data — annotations, regions of interest, coordinate systems, and 3D mesh surfaces.

This is the core data model package. It provides Pydantic models for validation and serialization with minimal dependencies. For tiling pipelines, format converters, and Rust-accelerated processing, see mudm-tools.

📖 Documentation: https://novagenresearch.github.io/mudm/

Install

pip install mudm

Usage

from mudm import MuDM, MuDMFeature, GeoJSON

# Validate muDM data
data = {
    "type": "FeatureCollection",
    "features": [{
        "type": "Feature",
        "geometry": {"type": "Point", "coordinates": [10, 20]},
        "properties": {"label": "nucleus"},
    }],
}
obj = MuDM.model_validate(data)

# Any GeoJSON is valid muDM
geojson = GeoJSON.model_validate(data)

# Coordinate transforms
from mudm import AffineTransform

# Tile metadata
from mudm import TileJSON, TileModel

What's included

  • Model validation: MuDM, MuDMFeature, MuDMFeatureCollection, GeoJSON
  • 3D geometry types: TIN, PolyhedralSurface, TiledGeometry
  • Tile metadata: TileJSON, TileModel, TileLayer, PyramidJSON
  • Coordinate transforms: AffineTransform, VoxelCoordinateSystem
  • Provenance tracking: Workflow, Artifact, MuDMLink

License

MIT

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

mudm-0.6.1.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mudm-0.6.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file mudm-0.6.1.tar.gz.

File metadata

  • Download URL: mudm-0.6.1.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mudm-0.6.1.tar.gz
Algorithm Hash digest
SHA256 85c0a8f68572bdd34803f27b39b2660e719284c283c8ce1dad5f92319362d4b5
MD5 cf67d42f9aec45ae3d0deff18562accf
BLAKE2b-256 35970859d8b004ee6a3530c64ede19b9fcc4665274aa0978e4a07ebd0351b7b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mudm-0.6.1.tar.gz:

Publisher: publish.yml on NovagenResearch/mudm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mudm-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: mudm-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mudm-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de132fe0e0ad92416cc45d73888a4107b66976904a3020a215bc3595340f0154
MD5 fb84f3e69413bb45f5894187948d166e
BLAKE2b-256 9ba5b818fe96bbb4f75a508ba518fde3dc230cf616955fca878bc90d34296d50

See more details on using hashes here.

Provenance

The following attestation bundles were made for mudm-0.6.1-py3-none-any.whl:

Publisher: publish.yml on NovagenResearch/mudm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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