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

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 and the examples.

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.1.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.1-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for violet_simulator-0.3.1.tar.gz
Algorithm Hash digest
SHA256 bdfac95fa0bc0bc4a0a242b114ac276262be5cf5568ab5bf5548a5263cdfc2f5
MD5 d04ab6482de39e78914c60c9ea292789
BLAKE2b-256 3cb321265ea80b3363f54734b9db8bdd246e2f6f48f01ef01cebd95d3ced678b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for violet_simulator-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6850bfb9f7e036dec667957a454e9e1e9fd074613e3f02010a816b08391cae3
MD5 fcdcd0e850691aea13714d4fbba49465
BLAKE2b-256 3c66c749732148f20ef966cb424eb01a1da44fd07b15794cbcc2438d53f59889

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