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
discrevpy-1.0.3.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for discrevpy-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e44b81979ab85580b19abf8a1995086882517a17c68e19af8bfaac77c6c720 |
|
MD5 | b414539eb5a3658e6a8b46600d54f830 |
|
BLAKE2b-256 | 75be0c8d87cbc1a1211a6b7e511deabfb4dcc46d98e41a638de97bfd071ea38b |