makotest
Test and simulation toolkit for German market-communication (MaKo) platforms. It builds regulator-conformant EDIFACT, simulates the counterparties a platform talks to — answering in EDIFACT, late, or not at all — and asserts on the messages and the CloudEvents stream. It drives only public interfaces, so it can exercise any MaKo implementation, not only mako.
| Package | pip install makotest (no runtime dependencies); makotest[hypothesis] adds property-based strategies |
| Build | PyO3 extension over mako's Rust crates, built with maturin; one abi3 wheel for Python ≥ 3.11 |
| Rust core | edi-energy (EDIFACT, MIG/AHB validation), rubo4e (check digits), mako-fristen (Werktage, Fristen), mako-pruefung (Antwortcodes), mako-events (CloudEvent types) |
| pytest | plugin via pytest11: simulator, clock and seed fixtures, @pytest.mark.regulatory |
| Fixtures | nb_sim, biko_sim, imsys_sim, epex, lastgang, frozen_clock, makotest_seed, makotest_on, mako_endpoint |
| Options | --makotest-on ISO_DATE, --makotest-seed N, --mako-endpoint URL |
| CLI | makotest validate, frist, id, pids, codes, … |
Example
from makotest import antwort_obligation, malo_from_base, validate_edifact
malo_from_base("5123869601") # '51238696012' — BDEW check digit applied
o = antwort_obligation(55001) # what a Netzbetreiber owes on an Anmeldung
o.clock_time # '11:00' — a clock time, not n × 24 h
o.due_at("2026-03-02T09:00:00Z") # '2026-03-03T11:00:00+01:00'
validate_edifact(utilmd_bytes, "2026-10-01").is_valid # MIG + AHB + semantic
def test_nb_bestaetigt(nb_sim, anmeldung):
nb_sim.on(55001).bestaetigung(antwort_code="A51", ebd="E_0623")
reply = nb_sim.receive(anmeldung, received_at="2026-03-02T09:00:00Z")
assert reply.pid == 55002 # the AHB answer PID — never Anfrage + 1
Generators are seeded, clocks injected and the format version is an argument,
so two runs produce byte-identical EDIFACT. AssertionError means the system
under test is wrong; ValueError means the test is.
Run
makotest is a member of the mako Cargo workspace:
python3.11 -m venv .venv # at the workspace root; PYO3_PYTHON points here (.cargo/config.toml)
just test-makotest # maturin develop + pytest
just lint-makotest # ruff
just build-makotest # release wheel
pyo3/extension-module is not a Cargo feature (maturin enables it), so
cargo test --workspace --all-features still links.
Licence: MIT OR Apache-2.0, matching mako.
The full reference — every builder, assertion, strategy and simulator, with the Fundstelle behind each rule — is makotest in the mako documentation.
Metadata
Release files for makotest 0.34.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| makotest-0.34.2.tar.gz | 2.3 MB | With provenance | Details for makotest-0.34.2.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| makotest-0.34.2-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for makotest-0.34.2-cp311-abi3-win_amd64.whl |
| makotest-0.34.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details for makotest-0.34.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| makotest-0.34.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details for makotest-0.34.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| makotest-0.34.2-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for makotest-0.34.2-cp311-abi3-macosx_11_0_arm64.whl |
| makotest-0.34.2-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for makotest-0.34.2-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 14.1 MB
Release files / makotest-0.34.2.tar.gz
| Download URL | makotest-0.34.2.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
011ab0e6370baad6b40f63231c819ae955fa81f58fe3f5e447a5db1e17cba71d
|
|
BLAKE2b-256 checksum How to use checksums |
2f8e7af6279cabcdb921c5e54c3725ca5e1d4f24ca15641b4bf65e0b6b3eba4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / makotest-0.34.2-cp311-abi3-win_amd64.whl
| Download URL | makotest-0.34.2-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d3e6cb59d189e2b77ef610efd2319eac0bc69944c270da94b860931fb39ea890
|
|
BLAKE2b-256 checksum How to use checksums |
599b9dd5bb12a9c38dd2ef36f918e07003eed625bbbe8e0ca1e3226e250f3d6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / makotest-0.34.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | makotest-0.34.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
be1221ba65bdb19d874be396a55bc086624f33b971d7234f8a38cf3667f04a0b
|
|
BLAKE2b-256 checksum How to use checksums |
f2a655d3ba686dc34fa6e11c71a62f61c924884a42a8174d9ded2690aff79404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / makotest-0.34.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | makotest-0.34.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f1198327a8a78e9805e6285fcf7a33a9cc4b05d675208ad50fd957adf7b91ec7
|
|
BLAKE2b-256 checksum How to use checksums |
060cc61761851917d79f93691f6b0a882ebe498ce8f0a245dc787b536056b67b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / makotest-0.34.2-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | makotest-0.34.2-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2264118a1a3ab11576104182fc33957d8a73880b858af6d589e4cdfaa3631456
|
|
BLAKE2b-256 checksum How to use checksums |
553cdf73241bd95fb455218e069d9ca9bc180616ca9c7b5b8a38a543f9dfc2a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / makotest-0.34.2-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | makotest-0.34.2-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
85a01dd1cb8435e56992c5aef612ef2ed3b5063a5351a8c652e92d04edd00523
|
|
BLAKE2b-256 checksum How to use checksums |
ef721b36725f1fff6dc5fce9aeb1f85b086454b4b8c5809c13323485345e99b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for makotest 0.34.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for makotest-0.34.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.