Skip to main content

Lightweight Simulation Framework

Project description

μSim offers a lightweight and expressive user interface, built on top of a powerful and robust simulation framework. Using the async/await capabilities of Python3, μSim allows you to both quickly and reliably build even complex simulations.

>>> from usim import delay, run
>>> async def metronome(period: float, sound: str):
...     async for now in delay(period):
...         print(sound, '@', now)
>>> run(metronome(period=1, sound='tick'), metronome(period=2, sound='TOCK'), till=5)
tick @ 1
TOCK @ 2
tick @ 2
tick @ 3
TOCK @ 4
tick @ 4
tick @ 5

Check out the μSim documentation for more information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for usim, version 0.4.3
Filename, size File type Python version Upload date Hashes
Filename, size usim-0.4.3-py3-none-any.whl (88.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size usim-0.4.3.tar.gz (65.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page