dronekit2
dronekit2 is a maintained fork of DroneKit-Python,
which has had no release since 2019 and does not import on modern Python. This fork keeps the
dronekit import path and the attribute/observer API developers already know, modernizes the
packaging and internals, and fixes real defects found along the way. See
CHANGELOG.md and docs/about/migrating_v3.rst
for exactly what changed from the 2.9.x line.
DroneKit-Python helps you create apps for UAVs. It provides programmatic access to a connected vehicle's telemetry, state and parameter information over MAVLink, and supports both mission management and direct control over vehicle movement.
Installing
Requires Python 3.9+.
pip install dronekit2
Import name is unchanged:
import dronekit
Not yet on PyPI? Install straight from this repo:
pip install git+https://github.com/Onikore/dronekit2.git
Getting started
from dronekit import connect
# Connect to a vehicle (real or simulated) speaking MAVLink on this UDP endpoint.
vehicle = connect("127.0.0.1:14550", wait_ready=True)
# Use the returned Vehicle object to query device state - e.g. to get the mode:
print(f"Mode: {vehicle.mode.name}")
vehicle.close()
See docs/guide/quick_start.rst for a full walkthrough (including
how to run this against ArduPilot SITL), docs/guide/ for the rest of the guide,
and examples/ for runnable end-to-end scripts.
Documentation
Docs live under docs/ as reStructuredText and are not yet hosted anywhere - browse the
source on GitHub, or build them locally:
pip install -e ".[docs]"
sphinx-build -b html docs docs/_build/html
Testing against a real vehicle
The test suite skips anything that needs a live vehicle unless DRONEKIT_TEST_CONNECTION is set
— it accepts either an ArduPilot SITL connection string or a real flight controller over serial.
See dronekit/test/README.md.
Contributing
See CONTRIBUTING.md for development setup, and the
Code of Conduct before participating.
Questions and bug reports: open an issue. Security
vulnerabilities: see SECURITY.md rather than filing a public issue.
Licence
dronekit2 is made available under the Apache 2.0 License.
Copyright 2015 3D Robotics, Inc. Portions Copyright 2026 the dronekit2 contributors.
Release files for dronekit2 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dronekit2-3.0.0.tar.gz | 78.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dronekit2-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 171.1 kB
Release files / dronekit2-3.0.0.tar.gz
| Download URL | dronekit2-3.0.0.tar.gz |
|---|---|
| Size | 78.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86c001f4a825af36d37d30355b66388a2389976f9b4227ed2a77096a086f5450
|
|
BLAKE2b-256 checksum How to use checksums |
310b80cf5e8b123c3638eb617fe82a8545d443029d50c13136f454d94377c9cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 30, 2026.
Transparency logRelease files / dronekit2-3.0.0-py3-none-any.whl
| Download URL | dronekit2-3.0.0-py3-none-any.whl |
|---|---|
| Size | 92.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42618d603cd64ecc4cd64b30b987945fae1ac2b5211faf60b452b5f7999059cb
|
|
BLAKE2b-256 checksum How to use checksums |
a115df296262112ee738b7a2e58c5c47b2c1f80f09e998fd8e8fc4d36b288bbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 30, 2026.
Transparency log