MAVSDK for Python
Python binding for MAVSDK, a library to communicate with MAVLink systems such as drones, cameras or ground stations.
It calls the MAVSDK C++ library directly (through its C wrapper), so there is no gRPC dependency and no mavsdk_server process to run.
The package exposes two interfaces:
mavsdk: a synchronous API using threads and callbacks.mavsdk.asyncio: an asyncio API.
Both are generated from the same protos and ship in the same distribution.
pip install mavsdk
Coming from MAVSDK-Python (
mavsdk3.x and earlier)?Up to 3.x,
mavsdkwas the gRPC-based MAVSDK-Python, which has a different API. It continues asmavsdk-grpc, imported asmavsdk_grpc. To keep using that API, installmavsdk-grpc, or pinmavsdk<4. To move to this package, see the migration guide.
Examples
Find examples for the synchronous API in examples/, and for the asyncio one in examples/asyncio/.
Development
Generate code
In order to generate the plugins from the proto submodule, run:
./tools/generate_from_protos.bash
This generates both interfaces: the synchronous plugins into mavsdk/plugins from templates/sync, and the asyncio ones into mavsdk/asyncio/plugins from templates/asyncio.
Running it from source
This project relies on the C MAVSDK library, which it wraps. The library must be built separately from the C wrapper and copied into mavsdk/lib/libcmavsdk.so.
Metadata
Release files for mavsdk 4.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| mavsdk-4.0.3-cp38-abi3-win_arm64.whl | CPython 3.8 | abi3 | Windows ARM64 | Details |
| mavsdk-4.0.3-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| mavsdk-4.0.3-cp38-abi3-win32.whl | CPython 3.8 | abi3 | Windows x86-32 | Details |
| mavsdk-4.0.3-cp38-abi3-manylinux_2_28_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| mavsdk-4.0.3-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| mavsdk-4.0.3-cp38-abi3-macosx_15_0_x86_64.whl | CPython 3.8 | abi3 | macOS 15.0+ x86-64 | Details |
| mavsdk-4.0.3-cp38-abi3-macosx_15_0_arm64.whl | CPython 3.8 | abi3 | macOS 15.0+ ARM64 | Details |
Total release size: 43.2 MB
Release files / mavsdk-4.0.3-cp38-abi3-win_arm64.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-win_arm64.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.8 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ec3942ec55ed806a696e73fe1ad484c6dad70b4b5757a5ca79552d32e0f3ad94
|
|
BLAKE2b-256 checksum How to use checksums |
182818945235c209aa3c682b379edbbd868654816044bad547e25860b4f8defd
|
| 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 Oct 1, 2026.
Transparency logRelease files / mavsdk-4.0.3-cp38-abi3-win_amd64.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6eff5c4c709a0957018c2061c85bf49541b1b7564794e2112438ef148c4f466f
|
|
BLAKE2b-256 checksum How to use checksums |
8c0bbdc61efcbf42777e1f22d4c1500810f15709a380b3e4e886b7364895a043
|
| 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 Oct 1, 2026.
Transparency logRelease files / mavsdk-4.0.3-cp38-abi3-win32.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-win32.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.8 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
d7eedda40f32684621cb3fc6cf3e3c7a4cade8f14e8dd1f9e52fe203b8b3fd05
|
|
BLAKE2b-256 checksum How to use checksums |
d625fe3e5ffa5773319356ed8a1d5e3b139e7d01db67edb929a8696b97c5f495
|
| 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 Oct 1, 2026.
Transparency logRelease files / mavsdk-4.0.3-cp38-abi3-manylinux_2_28_x86_64.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
bb684639594e96ad798fcb5a0e357a308cb97537d31ce48b38ef31e50c6d8dc4
|
|
BLAKE2b-256 checksum How to use checksums |
839d671dcb56bfce4289f51ba4711f26ea17bc961cdfea5c69f115af9f66cb0c
|
| 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 Oct 1, 2026.
Transparency logRelease files / mavsdk-4.0.3-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
312cdd6bea140483b9d2c98d2b1972e661e5497b9f4033ec27cccfefd5a7425b
|
|
BLAKE2b-256 checksum How to use checksums |
ce2e719abf484c99ae547acd2d3304c597d212e9e4eceddc6e9233d5ae0ba2a0
|
| 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 Oct 1, 2026.
Transparency logRelease files / mavsdk-4.0.3-cp38-abi3-macosx_15_0_x86_64.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-macosx_15_0_x86_64.whl |
|---|---|
| Size | 5.3 MB |
| Tags | CPython 3.8 abi3 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
70b98a6cebd714fa743551e471f03ce4dd0b5ba0f80c1bea3522ebfcb987c01d
|
|
BLAKE2b-256 checksum How to use checksums |
2c30f610aa48b98888d317e36a0102d410bf76f33af319edf1b9fe3a38c22a87
|
| 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 Oct 1, 2026.
Transparency logRelease files / mavsdk-4.0.3-cp38-abi3-macosx_15_0_arm64.whl
| Download URL | mavsdk-4.0.3-cp38-abi3-macosx_15_0_arm64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | CPython 3.8 abi3 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
14939db68ccdd5e90b31f4089d97ecaefc1d40ed91e16c0ead5a8e2b0d58c7f7
|
|
BLAKE2b-256 checksum How to use checksums |
8b799adc50efa50cd098acc97942112308730ebdce05d130a838ef2ed97ec759
|
| 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 Oct 1, 2026.
Transparency log