Skip to main content

Lightweight Simulation Framework

Project description

Documentation Available on PyPI MIT Licensed Cite with DOI

μ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 on creating simulations with μSim.

μSim Development

If you are reading this, you are looking at the μSim repository. Here you can find the current development version, submit issue tickets, or propose pull requests.

In order to try the most recent development version, check out and install the master branch. This branch is guaranteed to contain only working changes.

If you want to report issues or propose changes, please take a look at the contribution guidelines.

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

usim-0.4.4.tar.gz (99.3 kB view details)

Uploaded Source

Built Distribution

usim-0.4.4-py2.py3-none-any.whl (67.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file usim-0.4.4.tar.gz.

File metadata

  • Download URL: usim-0.4.4.tar.gz
  • Upload date:
  • Size: 99.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for usim-0.4.4.tar.gz
Algorithm Hash digest
SHA256 81d36358f042e20f5795e4cd3b280d6ed01f0088c04b6417391985013cb48518
MD5 395ace1d3e8f3295ab1560e0fa441378
BLAKE2b-256 5be38cbebdf76f44049bcfa663f568c8f4cf4debe9133f7bf737d1e7518d3f64

See more details on using hashes here.

File details

Details for the file usim-0.4.4-py2.py3-none-any.whl.

File metadata

  • Download URL: usim-0.4.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for usim-0.4.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f6ceb698eb8327dae1091f432ef3fe66d50112f1acf532937449828f65d2d1fb
MD5 066900d3acea039ec184dff2fc6fdd46
BLAKE2b-256 cf52fbde9f1049d99d1747e24ef4f18f27b3e96f8aac1fc5b8ca2bdc1a5b3b44

See more details on using hashes here.

Supported by

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