Skip to main content

Minimalist discrete event simulator

Project description

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:

Project details


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discrevpy-1.0.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for discrevpy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 48c8cd1a7623ebb0c98a28be237c5ca7fee7f4f228d5fea3e661f69c5ac23890
MD5 018ef2a5028fdfa1bea825af096dd86d
BLAKE2b-256 32414d3e22bd330008747a79d7e77b76d3df1e263268ac243c45d49333ad59db

See more details on using hashes here.

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

Hashes for discrevpy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63e44b81979ab85580b19abf8a1995086882517a17c68e19af8bfaac77c6c720
MD5 b414539eb5a3658e6a8b46600d54f830
BLAKE2b-256 75be0c8d87cbc1a1211a6b7e511deabfb4dcc46d98e41a638de97bfd071ea38b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page