Cimba Python 0.7
Cimba Python compiles object-oriented discrete-event models to run on the Cimba C engine. A model declares its variability as inputs. The same compiled model can use distributions, recorded traces, bootstrap resamples, or fitted sources.
Python 3.13 or newer is required. Linux x86_64, Windows AMD64, and macOS arm64 wheels include the native engine.
pip install cimba
A queue model
import cimba as cb
from cimba import inputs
class MM1(cb.Model):
interarrival: cb.Input[float] = inputs.dist.exponential(mean=1 / 0.75)
service_time: cb.Input[float] = inputs.dist.exponential(mean=1)
queue: cb.Container
mean_queue: cb.Output[float]
@cb.process
def arrivals(self):
while True:
cb.hold(self.interarrival.next())
self.queue.put(1)
@cb.process
def server(self):
while True:
self.queue.get(1)
cb.hold(self.service_time.next())
@cb.on_end
def measure(self):
self.mean_queue = self.queue.mean_level()
model = MM1()
results = cb.Experiment(
model, replications=100,
window=cb.Window(warmup=100, duration=1000), seed=123,
).run()
print(cb.analysis.summary(results[model].mean_queue))
To replay observed arrival gaps, assign model.interarrival = inputs.trace(gaps). To resample them, assign inputs.bootstrap.stationary(gaps, mean_block=7). The process code and compiled class stay the same. Input sources are independent streams, and results record their provenance and consumption.
See the documentation, standalone tutorials, and 0.6 to 0.7 migration guide.
Development
git submodule update --init --recursive
uv sync --locked
uv run pytest
The Cimba C library is an unchanged submodule. Cimba Python is Apache-2.0 licensed; see LICENSE and NOTICE.
Metadata
Release files for cimba 0.7.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 |
|---|---|---|---|---|
| cimba-0.7.3.tar.gz | 18.1 MB | With provenance | Details for cimba-0.7.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cimba-0.7.3-cp313-abi3-win_amd64.whl | CPython 3.13 | abi3 | Windows x86-64 | Details for cimba-0.7.3-cp313-abi3-win_amd64.whl |
| cimba-0.7.3-cp313-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl | CPython 3.13 | abi3 | Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 | Details for cimba-0.7.3-cp313-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
| cimba-0.7.3-cp313-abi3-macosx_11_0_arm64.whl | CPython 3.13 | abi3 | macOS 11.0+ ARM64 | Details for cimba-0.7.3-cp313-abi3-macosx_11_0_arm64.whl |
Total release size: 18.7 MB
Release files / cimba-0.7.3.tar.gz
| Download URL | cimba-0.7.3.tar.gz |
|---|---|
| Size | 18.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48ead028beb4273196dccb8317de2c8152b24aa3a082b17844761034dafacafd
|
|
BLAKE2b-256 checksum How to use checksums |
7b5545d8b3cb833e3167f3fac79fcf225ef5d6cc7e4853a4b89a80cf0cf92add
|
| 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 Sep 27, 2026.
Transparency logRelease files / cimba-0.7.3-cp313-abi3-win_amd64.whl
| Download URL | cimba-0.7.3-cp313-abi3-win_amd64.whl |
|---|---|
| Size | 171.2 kB |
| Tags | CPython 3.13 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
698182a41b3a7ae1d1e6841967584aa546cb8552968cf2282b13d07e9f93ecea
|
|
BLAKE2b-256 checksum How to use checksums |
72fe50f1d4a90919c42553574317293ce80e9f89d7fe4ec7e9ab0762a860b8d7
|
| 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 Sep 27, 2026.
Transparency logRelease files / cimba-0.7.3-cp313-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | cimba-0.7.3-cp313-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 217.4 kB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7e81001a7694e1a67af099b9f402e6bfc134b6bf9b252dd6a357cb17ce97a0ee
|
|
BLAKE2b-256 checksum How to use checksums |
391626ceba4bbebad5fe2fa24f1a20da9b2e03e430948acf2c30b0be1ac2f769
|
| 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 Sep 27, 2026.
Transparency logRelease files / cimba-0.7.3-cp313-abi3-macosx_11_0_arm64.whl
| Download URL | cimba-0.7.3-cp313-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 177.3 kB |
| Tags | CPython 3.13 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c564da034a92b8aa03b917b361af173e4aa40076fb196bb1623115b0e7508d05
|
|
BLAKE2b-256 checksum How to use checksums |
5a93850089d6466a117400825b84be47714d13761ffb19601efc40bd1e91efd2
|
| 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 Sep 27, 2026.
Transparency logSecurity for cimba 0.7.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
All 4 files in this release have been uploaded with provenance metadata.
Attestation for cimba-0.7.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 Sep 27, 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.