Skip to main content

Shape, convert, summarize and analyse MIDOM deidentification Protocols

Project description

MIDOM Toolbox

CI PyPI PyPI - Python Version Code style: black Checked with mypy

Shape, convert, summarize and analyse MIDOM deidentification Protocols.

⚠️ Major version 0. Not feature complete. Still testing out the interface

installation

pip install midomtoolbox

usage

Working with Protocols

To take a MIDOM protocol json file and render to markup format:

from midom.components import Protocol    
from midomtoolbox.render.markdown import render_protocol

# load protocol
with open("/tmp/ctp_pipeline.json") as f:
    protocol = Protocol.model_validate_json(f.read())

# render
with open("/tmp/output.md", "w") as f:
    f.write(render_protocol(protocol))

Validation

TODO

Other examples

See /examples

FAQ

Why MIDOM and MIDOMToolbox? Why not just all MIDOM? MIDOM is about an Object Model; it is as implementation-agnostic as possible. It has some python implementations for convenience, for JSON serialization for example. But the value is mostly in the interfaces it describes. It should be light-weight to include in other python packages, keeping its own package dependencies minimal

MIDOMToolbox is a library that fully embraces python and provides tools for anything involving MIDOM objects. As a toolbox, it is free to have a large number of dependencies.

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

midomtoolbox-0.3.0.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

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

midomtoolbox-0.3.0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: midomtoolbox-0.3.0.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for midomtoolbox-0.3.0.tar.gz
Algorithm Hash digest
SHA256 00bb5e00ecc93e6bb57880129f008baaa5cbdae28a2fdd607412ed824a771224
MD5 908ca308109bc341022675629dc7914f
BLAKE2b-256 63a8ec14496f0ca5c90c3d592c1317ac844d5f4345180e76a38dfc39958f6a84

See more details on using hashes here.

File details

Details for the file midomtoolbox-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: midomtoolbox-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for midomtoolbox-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7907e070242c4c4ab3d3d607a3e1a2b5e432c3e966c1777f10b0ef8eb2cfd892
MD5 155c04a421f2528531387963197e85e2
BLAKE2b-256 00cd31dd0898768e65c82d4ed7905499c3b2a334cbed942064e091e1f60dc7d3

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