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

pdm 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.3.tar.gz (25.4 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.3-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: violet_simulator-0.2.3.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.3 CPython/3.11.3

File hashes

Hashes for violet_simulator-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fc4b9ccb9d3d96a3baad0c77137ed55c8aa33401f88371eb44a1a1fed8202e05
MD5 04fd097a522cddd7e1ee701853d825a8
BLAKE2b-256 b9ed68e33966b7f2672a82a22e39d3c6cf40c3ba6199485e303128c86cda9f86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for violet_simulator-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5489e05b250929b4ccd41e625e180b3a386767f5b74b239065c6da2c2ec83ca
MD5 88244fef4f7f3ffe772c0d195001e97c
BLAKE2b-256 b92b8507d300298405faad374d42b61c6931b37652a853c0fe601b460cd362cd

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