Hades Asynchronous Discrete-Event Simulation
Project description
HADES (HADES Asynchronous Discrete-Event Simulation) is a small, user friendly framework for creating simulations in python!
Features
- 🎲🤖 Supports both Agent Based and Process Based models - how you model the entities in your simulation is up to you!
- ⚡ Async execution within a time-step - designed for working IO-bound workloads over the network (e.g. LLM APIs, db lookups, etc)
- 📈 Visualisation -
websockets
support to for building a custom frontend for your sim,matplotlib
in a Jupyter notepad or simply outputting amermaid
diagram - 🏷️ Pydantic style immutable events - give type hints and enforcement, making it clear what an event will contain
- 📦 Encapsulated simulated processes - processes or agents are encapsulated, keeping state manageable and making it possible to swap processes in and out
- 😊 User friendly - pattern matching on pydantic based events makes for an intuitive way to build simulations, while the separation of state helps avoid potential footguns!
Installation
pip install hades-framework
Usage
Using the Hades Framework is as simple as creating your custom Process
es and Event
s, registering them in the simulation, and letting Hades take care of the rest.
Here are some of the fun things you might do with it:
- Boids and Websockets - The classic Boids simulation with canvas and d3.js visualisation via websockets.
- Multi Agent LLM Storytelling - Retelling the Odyssey with LLMs - demonstrates the highly IO bound stuff hades is good at. Some output:
"He remembered the sea nymph who had helped him before and realized that having allies like her was crucial to his success. He also continued to use his technological knowledge to stay ahead of Poseidon's wrath, utilizing his drone and sonar to navigate the waters safely."
- Battery charging station - to help compare what building a simulation looks with
simpy
vshades
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
Built Distribution
File details
Details for the file hades_framework-2.0.0.tar.gz
.
File metadata
- Download URL: hades_framework-2.0.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43b820e65c716685a1becc00527c6d0bc5d32099f9cf1cbcddea5affb2bebab |
|
MD5 | 750fa9cceb0c71e4540243b67029ab4c |
|
BLAKE2b-256 | fe1057b88cb4666419a9f6205ff07d34f4a3f84b660292466a408ce1444a5b79 |
File details
Details for the file hades_framework-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: hades_framework-2.0.0-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ce69af7414a9b64474c7fffccf47006989a9a03f80ecf09c084c5a2ad1d86d9 |
|
MD5 | 60009ef3a63455d8be22de1eb4ac0341 |
|
BLAKE2b-256 | b96556f7b7f1440c880deb4e11f953743a58f21b87b0c2b227cb8589dbec3238 |