thymio-python-behaviors
Python port of the behaviors implemented in the Thymio firmware.
Use pyaseba or pyenki to apply the behaviors to real and simulated robots.
Example with real Thymio (pyaseba)
import time
import thymio_behaviors
from pyaseba.client.thymio import Thymio
behavior = thymio_behaviors.ExplorerBehavior()
thymio = Thymio()
if thymio.connect(start_mirroring=True):
thymio.set_behavior(behavior, time_step=0.1)
time.sleep(10)
thymio.close(reset=True)
Have a look at the complete example that selects which behavior to run.
Example with simulated Thymio (pyenki)
import pyenki
import pyenki.viewer
import thymio_behaviors
from pyenki.adapters import Thymio2AsebaAdapter
behavior = thymio_behaviors.ExplorerBehavior()
robot = pyenki.Thymio2()
world = pyenki.World(radius=50)
world.add_object(robot)
thymio = Thymio2AsebaAdapter(robot)
thymio.set_behavior(behavior)
pyenki.viewer.init()
pyenki.viewer.run_in_viewer(world, duration=10)
pyenki.viewer.cleanup()
Have a look at the complete example that selects which behavior to run.
Metadata
Release files for thymio-behaviors 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thymio_behaviors-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for thymio_behaviors-0.0.3-py3-none-any.whl |
Release files / thymio_behaviors-0.0.3-py3-none-any.whl
| Download URL | thymio_behaviors-0.0.3-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4f5f3575fc2b5e1426f0821d7984468c830935e3d3fc209d16f0a4472152921
|
|
BLAKE2b-256 checksum How to use checksums |
35bb0810a064042dbc46662ce3b66b662da9cfbf6e031b817f168289d04c6917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency logSecurity for thymio-behaviors 0.0.3
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for thymio_behaviors-0.0.3-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency logA 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.