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.1.tar.gz (19.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.2.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: violet-simulator-0.2.1.tar.gz
  • Upload date:
  • Size: 19.1 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.1.tar.gz
Algorithm Hash digest
SHA256 02a96866ed06fd19b1f787261490fc4d1f42956b6fd13ff2e44e9a67c2e104f7
MD5 aff255e8f11cbda9db0328e961a1d575
BLAKE2b-256 1f7d47c04400dcab080a891dd40d411eac16551ccc1c930d275900cbde6d8d1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: violet_simulator-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 317130f58b4a840107a7bb8f0063ef34025507228afc9be1ea8c16261cbeb424
MD5 c436aa81a9d888a9cb142b7bf270a314
BLAKE2b-256 3d3f301267cf7261beeccc949590c64f4c802f55dcdfc16348c57e481d2838db

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