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 Poetry:

poetry add violet-simulator

Example

from vi import Agent, Simulation

(
    # Step 1: Create a new simulation.
    Simulation()
    # 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.2.2.tar.gz (23.6 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.2.2-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file violet-simulator-0.2.2.tar.gz.

File metadata

  • Download URL: violet-simulator-0.2.2.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for violet-simulator-0.2.2.tar.gz
Algorithm Hash digest
SHA256 283c0342eae9c26599eee2a5506dda7de5e2857c5f93bd4fe95a4aa4ccb51055
MD5 d66d9194ec2fc3254f1662fe27db2312
BLAKE2b-256 adda7ec1f696e9a7b5d5ae0de25ae8121fbd7fb4a7675a1a7de39bc148da6980

See more details on using hashes here.

File details

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

File metadata

  • Download URL: violet_simulator-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for violet_simulator-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ac6183017d73a1c154cd05297f85d881c6274057796178c4c9b28f57818be87
MD5 fe73946159cd463adabe3e1189391316
BLAKE2b-256 b09bfe11e033affba2a9fe574d1d8505ff5783d27d7baa3cf795c20251e818d7

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