Skip to main content

BeeTea

BeeTea is a small Python library for reactive behavior trees. It provides composable conditions, asynchronous actions, sequences, fallbacks, subtree replacement, status observation, and optional ROS 2 transport adapters.

Installation

Install the core behavior-tree library from PyPI:

python -m pip install beetea

The core package has no runtime dependencies. The beetea.ros module is optional and expects rclpy, std_srvs, beetea_msgs, and svea_core to be installed in the ROS 2 environment.

Quick start

from beetea import Action, BehaviorTree, Condition, Sequence

ready = True

tree = BehaviorTree(
    Sequence(
        (
            Condition(lambda: ready, label="ready"),
            Action(lambda: print("Working"), label="work"),
        )
    )
)

response = tree.tick()

Action callables run asynchronously, so an action normally returns RUNNING on its first tick and publishes its terminal status when the callable finishes. Call tree.halt() when the tree should become inactive.

Trees can also be parsed from the indented text format:

from beetea import Action, Condition, parse_bt

root = parse_bt(
    """\
sequence #mission
  $ready
  $work
""",
    {
        "ready": lambda: Condition(lambda: True),
        "work": lambda: Action(lambda: None),
    },
)

Development

Run the dependency-free core test suite with:

python -m unittest beetea.tests.test_bt

The ROS adapter tests additionally require the svea_core package to be importable. To build and validate release artifacts:

python -m build
python -m twine check dist/*

License

A license has not yet been selected. Choose a license and add its text before publishing the package.

Metadata

Release files for beetea 0.1.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 beetea 0.1.0
File Size Uploaded Provenance Actions
beetea-0.1.0.tar.gz 17.6 kB Without provenance Details for beetea-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 34.2 kB

Release files / beetea-0.1.0.tar.gz

Download URL beetea-0.1.0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0bfd200eb22d4d7dfbf77cd469494c2777eed79bcbd2eedd0e60b53a23247af8
BLAKE2b-256 checksum
How to use checksums
66bca2d950ee91a5017071eef58f8b1f9468e165a9e76431a4448ded7ad746ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / beetea-0.1.0-py3-none-any.whl

Download URL beetea-0.1.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aeed50214ca6b46a828f7208278d732a7139cd8da678e7b925f6122a9fdc200a
BLAKE2b-256 checksum
How to use checksums
ad87f3a63284afd9571e970300dd38893c433294246e8917607838cc6a0df483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for beetea 0.1.0

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.0 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