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.

Source Distribution

usim-0.4.1.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

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

usim-0.4.1-py3-none-any.whl (83.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usim-0.4.1.tar.gz
  • Upload date:
  • Size: 61.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for usim-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a649649b6fd9c6efb924e7994895a88bc14dedfc12ca563e1cb1b516df7f8bf9
MD5 faa75e7463c3f3bf6c5e8fb89d7eca6b
BLAKE2b-256 5cedfb2a256196203112bbceec78356e8e1d55c9c9d6b0a03fae71209442d77b

See more details on using hashes here.

File details

Details for the file usim-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: usim-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 83.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for usim-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7885eaa8dbbc01c10fd768fecc13894021f7a41354928a246b6fe512d297fa7
MD5 dc53856ffd9f18131db749bbadb2140d
BLAKE2b-256 ab4c1eb0dcf552d661a046f497e0d0f77100afcc7182b0522346fd98bbe046a4

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