Skip to main content

blossom PyPI version Build Status Documentation Status

Blossom is a Python package for simulating the dynamics of organism populations. Blossom supports both one and two dimensional worlds.

Installation

You can use pip to install the latest version of the package automatically:

pip install blossom

Alternately, execute:

git clone git@github.com:blossom-evolution/blossom.git
python setup.py install

Basic Usage

To start a simulation project, create a new directory to house all custom scripts, including a configuration file config.yml. In this config file, you specify species parameters, including starting population, max age, and action methods. Some action methods are built-in (for movement, eating, drinking, and reproduction), but you may use custom methods defined in external Python scripts, which are imported at runtime by Blossom via linked_modules.

World parameters are also specified in the config file, including dimensions and the distribution of water and food. You may also set limits on the number of timesteps and organisms, in order to control the simulation in case of runaway populations.

With your project directory set up, you may run the simulation using the included command-line interface (CLI):

blossom run

Note that for reproducibility, you can set the random seed either in the config file or at the CLI. For additional options, run blossom run -h.

Dashboard

Blossom provides a dashboard that runs in your local browser, tracking the progress of your population runs.

Initiate the dashboard, run

blossom dashboard TRACK_DIR [-p PORT]

where TRACK_DIR is the simulation project directory. You can then view the dashboard at localhost:PORT.

dashboard screenshot

GIF of basic simulation

example simulation

Metadata

Release files for blossom 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blossom 2.0.0
File Size Uploaded
blossom-2.0.0.tar.gz 24.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for blossom 2.0.0
File Interpreter ABI Platform
blossom-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.6 kB

Release files / blossom-2.0.0.tar.gz

Download URL blossom-2.0.0.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc447de539e158427b4b93d4b9fc458ab2a0825418786aab0419e64eca54c2a
BLAKE2b-256 checksum
How to use checksums
e3554e70a64bb8565a3ab13c4c6c682582e6238b023d24825ca9bf32487a2531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / blossom-2.0.0-py3-none-any.whl

Download URL blossom-2.0.0-py3-none-any.whl
Size 48.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bda76560bee99bbfde6ea4c7b29d445d23055b63690aec0189e68e1e2e8c7c4
BLAKE2b-256 checksum
How to use checksums
192d0702f73759be256b1d8dd78c86936e5a1de8147d378ced9070e993f1eef4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page