μSim – Simply Simulate
μ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.
Metadata
Release files for usim 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| usim-0.4.4.tar.gz | 99.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usim-0.4.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 166.7 kB
Release files / usim-0.4.4.tar.gz
| Download URL | usim-0.4.4.tar.gz |
|---|---|
| Size | 99.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81d36358f042e20f5795e4cd3b280d6ed01f0088c04b6417391985013cb48518
|
|
BLAKE2b-256 checksum How to use checksums |
5be38cbebdf76f44049bcfa663f568c8f4cf4debe9133f7bf737d1e7518d3f64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / usim-0.4.4-py2.py3-none-any.whl
| Download URL | usim-0.4.4-py2.py3-none-any.whl |
|---|---|
| Size | 67.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f6ceb698eb8327dae1091f432ef3fe66d50112f1acf532937449828f65d2d1fb
|
|
BLAKE2b-256 checksum How to use checksums |
cf52fbde9f1049d99d1747e24ef4f18f27b3e96f8aac1fc5b8ca2bdc1a5b3b44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|