Skip to main content

A smol simulator framework built on top of PyGame

Project description

Violet

A smol simulator framework built on top of PyGame.

  • Automatic agent wandering behaviour
  • Fully deterministic simulations with PRNG seeds
  • Install Violet with a simple pip install 😎
  • Matrix-powered multi-threaded configuration testing
  • Polars-powered simulation analytics
  • Replay-able simulations with a ✨ time machine ✨
  • Type-safe configuration system (with TOML support)

Want to get started right away? Check out the Violet Starter Kit!

Installation

Install the latest version of Violet with:

pip3 install -U violet-simulator

Or with uv:

uv add violet-simulator

Example

from vi import Agent, Config, Simulation

(
    # Step 1: Create a new simulation.
    Simulation(Config())
    # Step 2: Add 100 agents to the simulation.
    .batch_spawn_agents(100, Agent, images=["examples/images/white.png"])
    # Step 3: Profit! 🎉
    .run()
)

For more information you can check the documentation, examples and the User Guide.

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

violet_simulator-0.3.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

violet_simulator-0.3.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file violet_simulator-0.3.0.tar.gz.

File metadata

  • Download URL: violet_simulator-0.3.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for violet_simulator-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ccd10ea31f3ae914ea685d50c1d016557ac954cbd3cada379bdd1f789ac14ab
MD5 6a44aeeb4f1a10c13a1906e0ac52d3c4
BLAKE2b-256 e3239b1ee1c5b2b520c1ba1717c139b8d783cc2dc791a861a5db8df73efcf095

See more details on using hashes here.

File details

Details for the file violet_simulator-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for violet_simulator-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a49703e6c478891ce274391f3725228b1cdee75292a88633e95b37842c33748e
MD5 a93161d8fb2acf4577e40b9deb36fe55
BLAKE2b-256 6af787ca32afb25397321d63c0d24d61cdd176b8444ea5a10dcbe4b0f9539095

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