Skip to main content

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

Project description

muDM

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.

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.5.0.tar.gz (19.4 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.5.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mudm-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e4682610dbb31160e9fc6a7895253989f16f2684e9da67fad8572a342090f0be
MD5 629c919b045e6d30bd772e43bbd53433
BLAKE2b-256 b72ad2da0125882ca1a5229c8e38ecff4d4637ee8862bdc41f7396a283d72579

See more details on using hashes here.

Provenance

The following attestation bundles were made for mudm-0.5.0.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.5.0-py3-none-any.whl.

File metadata

  • Download URL: mudm-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 434d857b9f235fbfa60bbfdc79d7d089416334e137eae8f520b711cf765080ea
MD5 1f8c3d0941c4edbf0ad208ccb7ad8861
BLAKE2b-256 d394d2cff0cb9207c0073ce5c540527a7a19948a0d2806b0f6c5be47fa8e304d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mudm-0.5.0-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