Skip to main content

Floxs

Swarm and Flock Multi-agent RL environments, implemented with JAX using Esquilax

Full documentation can be found here

Multi-agent RL environments with a focus on larger scale flocks and swarms on continuos spaces. Implemented using Esquilax a JAX multi-agent simulation and RL library, and the Jumanji RL environment API.

from floxs.flock.env import Flock
import jax


env = Flock()

key = jax.random.PRNGKey(101)
state, ts = env.reset(key)
states = [state]

for _ in range(100):
    key, k = jax.random.split(key)
    actions = jax.random.uniform(k, (env.generator.num_boids, 2), minval=0.5, maxval=1.0)
    state, ts = env.step(state, actions)
    states.append(state)

# Save an animation of the environment
env.animate(states, interval=100, save_path="animation.gif")

See the Jumanji docs for more usage information.

Usage

Floxs can be installed using pip

pip install floxs

From the repository the package and requirements can be installed using poetry by running

poetry install

Developers

Pre-Commit Hooks

Pre commit hooks can be installed by running

pre-commit install

Pre-commit checks can then be run using

task lint

Tests

Tests can be run with

task test

Build Documentation

Docs can be built using Sphinx by running

task docs

Built docs will be generated in the docs/build folder.

Metadata

Release files for floxs 0.1.1

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

Source distribution (sdist)

Source distribution for floxs 0.1.1
File Size Uploaded Provenance Actions
floxs-0.1.1.tar.gz 16.0 kB Without provenance Details for floxs-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 37.7 kB

Release files / floxs-0.1.1.tar.gz

Download URL floxs-0.1.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49391aba4d9ac8916c0ac1b976f82e4d7af700b8af8ccb4d737ff948ee48e942
BLAKE2b-256 checksum
How to use checksums
6b0ddda5c816adf5b6c32e33497bbdb62c1f2fd48af622ecefb0c913dade6603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.11

Release files / floxs-0.1.1-py3-none-any.whl

Download URL floxs-0.1.1-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f69e7863c7146c6e3332ad19b693cc23c61603f74f4938a5e5512cb2abcbbadf
BLAKE2b-256 checksum
How to use checksums
aa6f63eac88731276d22ad2aad02f4ed5cf9fc666627c33461e4bcfde4a17cc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.11

Security for floxs 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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