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.0.tar.gz (18.5 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.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: violet-simulator-0.2.0.tar.gz
  • Upload date:
  • Size: 18.5 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.0.tar.gz
Algorithm Hash digest
SHA256 0dd6458d9be93dadd4ecbcac004e5452dc490249a2d5e986b98997a60d2fb93e
MD5 1225f4a2ed2637547177477db8329430
BLAKE2b-256 51db330d06577818a2c01d660dc021af7e36101ba33e2fc57bb239588c12586b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: violet_simulator-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 882152d0a429c05dd8e9130381c777fc2a20f58a735e760a39b168ed1127945a
MD5 9795fa12f59b81265f880fed6af154d7
BLAKE2b-256 d9047d9dc4e8432c2996bd83c735b40d1e2f4690fd74d405a831c3a0d5b21ac4

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