elmulator: Python package
A pure-standard-library ELM327 TCP server and scenario validator. No third-party dependencies. Python 3.9+.
Install
pip install elmulator
# or, from a checkout of this repo:
pip install -e python/ # run from the repo root
If the elmulator command is not on your PATH after installing (pip prints a warning when the scripts directory is not on PATH), use python -m elmulator instead. It works the same way, for example python -m elmulator self-test.
CLI
elmulator serve SCENARIO [--host H] [--port N] [--echo on|off|scenario] \
[--split a,b,c] [--latency-ms N] [--jitter-ms N] [--seed N]
elmulator validate [PATHS...] # files or dirs; defaults to the bundled examples
elmulator self-test # in-process loopback smoke test
elmulator --version
SCENARIO is a .scenario.json path or a bundled name such as p0420_basic.
serve prints LISTENING <port> on stdout once bound (--port 0 picks a free port) and logs activity to stderr. Each client gets its own scenario cursor state.
Library
from elmulator import Scenario, serve
import argparse
scenario = Scenario.from_path("scenarios/p0420_basic.scenario.json")
args = argparse.Namespace(host="127.0.0.1", port=0, echo="scenario",
split=None, latency_ms=0, jitter_ms=0, seed=0)
serve(args, scenario) # blocking; pass ready_event/stop_event for threaded use
The matching, echo, splitting, and jitter semantics are identical to the Swift engine; the conformance suite proves byte-for-byte parity.
Test
pip install pytest
pytest -q
Metadata
Release files for elmulator 0.3.3
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 |
|---|---|---|---|---|
| elmulator-0.3.3.tar.gz | 17.2 kB | With provenance | Details for elmulator-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elmulator-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for elmulator-0.3.3-py3-none-any.whl |
Total release size: 34.7 kB
Release files / elmulator-0.3.3.tar.gz
| Download URL | elmulator-0.3.3.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63164cff04711272a9f6d0c25ecc30214c5fc1e7a2acd7b5916025f78ede49c1
|
|
BLAKE2b-256 checksum How to use checksums |
c0ed6a2ebd5cb0aa8d5df1f2270e1008382b00d0bc44eb58988b1d0e2fb0a74f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 17, 2026.
Transparency logRelease files / elmulator-0.3.3-py3-none-any.whl
| Download URL | elmulator-0.3.3-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9a027e43ef17caba36e45ed8f106d632baa234782655ac9cc8e73384e72bb75
|
|
BLAKE2b-256 checksum How to use checksums |
fad726dd73f1b8aefb267d7904ed2445f208fc9b92091f6a4608f58f2e5ccdf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 17, 2026.
Transparency logSecurity for elmulator 0.3.3
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
Both files in this release have been uploaded with provenance metadata.
Attestation for elmulator-0.3.3.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 17, 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.