Installation¶
Install pyhulax like a normal Python package.
Base Package¶
That gives you the core SDK:
DroneAPIpyhulax.corepyhulax.controlpyhulax.logging- packaged runtime layers in
pyhulax.config,pyhulax.fylo, andpyhulax.system
Optional Extras¶
Install only the optional layers you need:
pip install "pyhulax[video]"
pip install "pyhulax[vision]"
pip install "pyhulax[web]"
pip install "pyhulax[db]"
pip install "pyhulax[all]"
What they add:
video: RTP/RTSP streaming, display, recording helpersvision: ONNX- and model-backed detection helpersweb: browser streaming helpersdb: PostgreSQL-backed flight loggingall: installs every optional extra
Local Development Install¶
From the repo:
Editable install with pip-compatible tooling:
Python Version¶
pyhulax targets modern Python environments. This project exists partly
because the original pyhula release was effectively stuck on Python 3.6 and
Windows-only assumptions.
If you want a local Python 3.13 environment with uv and pyenv:
Verify the Install¶
Basic import check:
from pyhulax import DroneAPI, DroneConfig, NetworkConfig
from pyhulax.core import Direction
config = DroneConfig(
network=NetworkConfig(drone_ip="192.168.100.1")
)
drone = DroneAPI(config=config, enable_command_logging=False)
print(drone.default_ip)
print(Direction.FORWARD)
If you installed video extras, you can also verify the streaming layer imports:
If you installed database extras: