Skip to main content

discrevpy: minimalist discrete event simulator

build codecov license: MIT GitHub release version PyPI version

discrevpy is a minimalist discrete event simulator in Python. It makes use of function/method callbacks in its event execution. The discrevpy simulator does not implement any message passing and is thus exclusively single-threaded.

Installation

Python version: 3.7+

python3 -m pip install discrevpy

Getting started

Example usage:

from discrevpy import simulator

def something(value):
  print("t=" + str(simulator.now()) + ": something() with value " + str(value))

simulator.ready()
simulator.schedule(44, something, "ABC")
simulator.schedule(967, something, "XYZ")
simulator.end(10000)
simulator.run()
simulator.reset()

Documentation:

https://snkas.github.io/discrevpy/

Next steps:

Development:

Release files for discrevpy 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discrevpy 1.0.3
File Size Uploaded
discrevpy-1.0.3.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for discrevpy 1.0.3
File Interpreter ABI Platform
discrevpy-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / discrevpy-1.0.3.tar.gz

Download URL discrevpy-1.0.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
48c8cd1a7623ebb0c98a28be237c5ca7fee7f4f228d5fea3e661f69c5ac23890
BLAKE2b-256 checksum
How to use checksums
32414d3e22bd330008747a79d7e77b76d3df1e263268ac243c45d49333ad59db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

Release files / discrevpy-1.0.3-py3-none-any.whl

Download URL discrevpy-1.0.3-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63e44b81979ab85580b19abf8a1995086882517a17c68e19af8bfaac77c6c720
BLAKE2b-256 checksum
How to use checksums
75be0c8d87cbc1a1211a6b7e511deabfb4dcc46d98e41a638de97bfd071ea38b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page