Skip to main content

Datadynamics

pypi Test Status Documentation Status code style: black Imports: isort pre-commit License

Datadynamics is a Python library and environment for simulating (multi-agent) data collection dynamics. The library is built on top of PettingZoo and is distributed under the BSD 3-Clause License.

The documentation is available at lfwa.github.io/datadynamics/.

Installation

Datadynamics can be installed via PyPI from Python 3.10 and higher:

$ pip install datadynamics

Alternatively, you can install from source by downloading the latest release or by cloning the GitHub repository, navigating into the directory, and installing via Poetry: poetry install.

Usage

Visit the documentation site at lfwa.github.io/datadynamics/ for full usage guides.

Quick Start

# See tutorials/collector/wrapper_example.py
from datadynamics.environments import collector_v0
from datadynamics.policies import greedy_policy_v0

env = collector_v0.env(
    n_points=300, n_agents=2, max_collect=[120, 180], render_mode="human"
)
policy = greedy_policy_v0.policy(env=env)
env.reset()
for agent in env.agent_iter():
    observation, reward, termination, truncation, info = env.last()
    action = policy.action(observation, agent)
    env.step(action)

Metadata

Release files for datadynamics 0.0.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 datadynamics 0.0.1
File Size Uploaded
datadynamics-0.0.1.tar.gz 29.9 kB Details

Built distribution (wheel)

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

Total release size: 69.6 kB

Release files / datadynamics-0.0.1.tar.gz

Download URL datadynamics-0.0.1.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7a7a367078090da6d80768acb8c306d1d2791be626fe020943b8a173ffd54c5b
BLAKE2b-256 checksum
How to use checksums
104e601578163da2076d08e74ad855e50d2e126619cd8cf7fc2d885b371bdd92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1034-azure

Release files / datadynamics-0.0.1-py3-none-any.whl

Download URL datadynamics-0.0.1-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
803fd793fceee6933f1c13ffd2d6582a992bbbda985ab0516197b099778b34d6
BLAKE2b-256 checksum
How to use checksums
fb6752440787183c5e25a3b25d4a4e10cd13274ea525045315125c77554ab096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1034-azure

Release history Release notifications | RSS feed

This release

0.0.1 This release

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