### Install BSL in Editable Mode Source: https://github.com/mnemonice/aflabbit/blob/main/README.md Install the library in editable mode for local development using pip. ```bash pip install -e . ``` -------------------------------- ### Access Termux Hardware API Source: https://github.com/mnemonice/aflabbit/blob/main/README.md Example of using the TermuxAPI wrapper to access device hardware information like battery status. This code fails gracefully on non-Termux systems. ```python from bsl.termux import TermuxAPI # Fails gracefully (returns None) on non-Termux systems api = TermuxAPI() battery_info = api.get_battery_status() if battery_info: print(f"Battery: {battery_info['percentage']}%" ) ``` -------------------------------- ### Basic Workflow Execution with BSL Source: https://github.com/mnemonice/aflabbit/blob/main/README.md Demonstrates creating and executing a simple workflow using BSL's Primitive and Task interfaces. The `telemetry_wrapper` is used for observability. ```python from bsl.core_primitives import Primitive, Task from bsl.wrappers import telemetry_wrapper class ExamplePrimitive(Primitive): @telemetry_wrapper def execute(self, *args, **kwargs): print("Executing primitive...") return True def rollback(self): print("Rolling back primitive...") # Create and run a task task = Task(name="My First Workflow") task.add_primitive(ExamplePrimitive()) results = task.execute() print(f"Task status: {task.status}") ``` -------------------------------- ### Run Tests and Linting Source: https://github.com/mnemonice/aflabbit/blob/main/README.md Commands to execute the test suite using pytest and check code quality with pylint and flake8. ```bash pytest pylint src tests flake8 src tests ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.