Skip to main content

Hades Asynchronous Discrete-Event Simulation

Project description

Hades Logo

version version

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 a mermaid 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 Processes and Events, 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. boids example
  • 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 vs hades

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

hades_framework-1.0.4.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

hades_framework-1.0.4-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file hades_framework-1.0.4.tar.gz.

File metadata

  • Download URL: hades_framework-1.0.4.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hades_framework-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c622434c1d9da02174805fd638d1b6a114557b34aa6df4a3b5bca83bc9ae9ac2
MD5 d49b2da0a651a69a82d646995c531f25
BLAKE2b-256 bf5a8d04a42118a10f19ba3e0bffdff84ccf84e6131c91f29387ce6c34aec2a0

See more details on using hashes here.

File details

Details for the file hades_framework-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for hades_framework-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 704e99c00069b4f1b51a391925db07debc9785779e51993ae89faeaacebdae34
MD5 d961fecaa6440b4c5ed01141d67ba869
BLAKE2b-256 000e8e1d8cfd87173eb563d127f3f283e10007ed6b644c23922096345c444579

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