MIDOM Toolbox
Shape, convert, summarize and analyse MIDOM deidentification Protocols.
⚠️ Major version 0. Not feature complete. Still testing out the interface
- Works with MIDOM Protocols (https://pypi.org/project/midom/)
- Converts to CTP scripts
- Generates summaries
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.
Metadata
Release files for midomtoolbox 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| midomtoolbox-0.3.0.tar.gz | 49.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midomtoolbox-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.9 kB
Release files / midomtoolbox-0.3.0.tar.gz
| Download URL | midomtoolbox-0.3.0.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00bb5e00ecc93e6bb57880129f008baaa5cbdae28a2fdd607412ed824a771224
|
|
BLAKE2b-256 checksum How to use checksums |
63a8ec14496f0ca5c90c3d592c1317ac844d5f4345180e76a38dfc39958f6a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / midomtoolbox-0.3.0-py3-none-any.whl
| Download URL | midomtoolbox-0.3.0-py3-none-any.whl |
|---|---|
| Size | 50.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7907e070242c4c4ab3d3d607a3e1a2b5e432c3e966c1777f10b0ef8eb2cfd892
|
|
BLAKE2b-256 checksum How to use checksums |
00cd31dd0898768e65c82d4ed7905499c3b2a334cbed942064e091e1f60dc7d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|