michie
Distributed high-throughput pythonic framework for multi-agent simulations
Installation
michie is available on PyPI. To install it
pip install michie
Usage
In michie each object has its own state and there is one global state
There are three distinct types of operations in michie:
- GlobalStateMappers
- Can read and write every state
- Can read and wite the global state
- Are executed synchronously from the Master process
- StateMappers
- Can read and write one state
- Can only read the global state
- Are executed asynchronously from the Worker processes
- Transitions
- Can read and write one state
- Cannot read the global state
- Are executed asynchronously from the Worker processes
Distributed Model
michie executes Transitions and StateMappers on remote Workers.
It uses the fastest JSON python serializer orjson to serialize jobs and results.
Before sending the job to the workers it runs the requirements function to check if all the needed fields are available in the current state and uses the state_map and global_state_map (only for StateMappers) to map the whole state in a smaller mapped_state to be serialized (reducing the communication overhead to the minimum)
Examples
You can find some examples here
Contributions and license
The code is distributed as Free Software under the GNU/GPLv3 license. It is not only possible, but also encouraged, to copy, adapt, and republish it.
If you have any further questions, please contact me at federico.galatolo@ing.unipi.it or on Telegram @galatolo.
Metadata
Release files for michie 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| michie-0.2.2.tar.gz | 22.9 kB | Without provenance | Details for michie-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| michie-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for michie-0.2.2-py3-none-any.whl |
Total release size: 51.0 kB
Release files / michie-0.2.2.tar.gz
| Download URL | michie-0.2.2.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08b1a4de2d662c1e350380c92dbaffa7e3ff01fea451d5a830323a4f65981a4c
|
|
BLAKE2b-256 checksum How to use checksums |
8378891a5ebe722b841f2d08e9d10b58e66ccc5ac89c2be0ecfff197c89d8e11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / michie-0.2.2-py3-none-any.whl
| Download URL | michie-0.2.2-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1acad9acbf0c76a9d8e0dfbe181725687cf13a65fc5eb7a369d0012e217bf6ac
|
|
BLAKE2b-256 checksum How to use checksums |
7946f1f2967958fdbce6f2d2579eb81e04f9e657a9e52d7f594bc5261eb5bfc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for michie 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.