Minimalist discrete event simulator
Project description
discrevpy: minimalist discrete event simulator
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:
- View some short examples
- View more in-depth longer examples
- Explore the API
- Learn more about discrete event simulation
- Read some tips to help you speed up your simulations
- Understand better the memory usage overhead of discrevpy
Development:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discrevpy-1.0.3.tar.gz.
File metadata
- Download URL: discrevpy-1.0.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c8cd1a7623ebb0c98a28be237c5ca7fee7f4f228d5fea3e661f69c5ac23890
|
|
| MD5 |
018ef2a5028fdfa1bea825af096dd86d
|
|
| BLAKE2b-256 |
32414d3e22bd330008747a79d7e77b76d3df1e263268ac243c45d49333ad59db
|
File details
Details for the file discrevpy-1.0.3-py3-none-any.whl.
File metadata
- Download URL: discrevpy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63e44b81979ab85580b19abf8a1995086882517a17c68e19af8bfaac77c6c720
|
|
| MD5 |
b414539eb5a3658e6a8b46600d54f830
|
|
| BLAKE2b-256 |
75be0c8d87cbc1a1211a6b7e511deabfb4dcc46d98e41a638de97bfd071ea38b
|