Skip to main content

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 (mavsdk 3.x and earlier)?

Up to 3.x, mavsdk was the gRPC-based MAVSDK-Python, which has a different API. It continues as mavsdk-grpc, imported as mavsdk_grpc. To keep using that API, install mavsdk-grpc, or pin mavsdk<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.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for mavsdk 4.2.1
File Actions
mavsdk-4.2.1-cp38-abi3-win_arm64.whl CPython 3.8 abi3 Windows ARM64 Details for mavsdk-4.2.1-cp38-abi3-win_arm64.whl
mavsdk-4.2.1-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for mavsdk-4.2.1-cp38-abi3-win_amd64.whl
mavsdk-4.2.1-cp38-abi3-win32.whl CPython 3.8 abi3 Windows x86-32 Details for mavsdk-4.2.1-cp38-abi3-win32.whl
mavsdk-4.2.1-cp38-abi3-manylinux_2_28_x86_64.whl CPython 3.8 abi3 Linux glibc 2.28+ x86-64 Details for mavsdk-4.2.1-cp38-abi3-manylinux_2_28_x86_64.whl
mavsdk-4.2.1-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details for mavsdk-4.2.1-cp38-abi3-manylinux_2_28_aarch64.whl
mavsdk-4.2.1-cp38-abi3-macosx_15_0_x86_64.whl CPython 3.8 abi3 macOS 15.0+ x86-64 Details for mavsdk-4.2.1-cp38-abi3-macosx_15_0_x86_64.whl
mavsdk-4.2.1-cp38-abi3-macosx_15_0_arm64.whl CPython 3.8 abi3 macOS 15.0+ ARM64 Details for mavsdk-4.2.1-cp38-abi3-macosx_15_0_arm64.whl

Total release size: 44.0 MB

Release files / mavsdk-4.2.1-cp38-abi3-win_arm64.whl

Download URL mavsdk-4.2.1-cp38-abi3-win_arm64.whl
Size 6.9 MB
Tags CPython 3.8 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4e79a1c02164250ccd9a9658afd24250092bde3f022c59226a5ada1c2439be61
BLAKE2b-256 checksum
How to use checksums
62d24c6ea0c7bfa1d48709b726f9727338f760e2959ccfe75f14f0f9227ab035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / mavsdk-4.2.1-cp38-abi3-win_amd64.whl

Download URL mavsdk-4.2.1-cp38-abi3-win_amd64.whl
Size 6.8 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
06a5d1443c7879d89abc9e6e473e44c44ec2c21bcdb13efe3a0cb711221d9fdc
BLAKE2b-256 checksum
How to use checksums
8dff2bc9dbf825a6041bb75a5da1a3dbc1635adc9071f9c1276d4e8ae4db7e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / mavsdk-4.2.1-cp38-abi3-win32.whl

Download URL mavsdk-4.2.1-cp38-abi3-win32.whl
Size 5.9 MB
Tags CPython 3.8 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
68ad21bf28ae9593744dbb7893cb1f009086e2702216a03ebbd1f961a4187af1
BLAKE2b-256 checksum
How to use checksums
8a82f6831579b3ed775294905be58c1e1f4756babe2db811bc48b5dc775bae2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / mavsdk-4.2.1-cp38-abi3-manylinux_2_28_x86_64.whl

Download URL mavsdk-4.2.1-cp38-abi3-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
c29491b340808258e8ac8d470274588e22732e375eb67094715d5535e98ca418
BLAKE2b-256 checksum
How to use checksums
1232c4b4c6c505948f4a23ef81845118913098d7c19a608bd57556bd9d2a12dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / mavsdk-4.2.1-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL mavsdk-4.2.1-cp38-abi3-manylinux_2_28_aarch64.whl
Size 6.6 MB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1fca6daba33319e8e91d0cdc694282d80d5faac612a61e2b9d838e1e8fca5f57
BLAKE2b-256 checksum
How to use checksums
e73e75e2a44c413e6711e8302fb58a5d09ef234870ee342a303565cdb6a2c756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / mavsdk-4.2.1-cp38-abi3-macosx_15_0_x86_64.whl

Download URL mavsdk-4.2.1-cp38-abi3-macosx_15_0_x86_64.whl
Size 5.5 MB
Tags CPython 3.8 abi3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
733b7686ffa4e333ea37ad52e31c0a1ee255b9370777a037a15b0e4860f034e0
BLAKE2b-256 checksum
How to use checksums
79e435de08899c7b1fc10cb373e32a0412ef696a207cecbb6ceda20b2e62ffc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / mavsdk-4.2.1-cp38-abi3-macosx_15_0_arm64.whl

Download URL mavsdk-4.2.1-cp38-abi3-macosx_15_0_arm64.whl
Size 5.7 MB
Tags CPython 3.8 abi3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
96d0eb22ddcc1845aaed7f780000d0dedec6f11ead5732cd24ac8e6f10f34e03
BLAKE2b-256 checksum
How to use checksums
a3fdc06837ed5a9660e70e1f14567cc54c61e9892f7d534d7ea25fd7631cc392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for mavsdk 4.2.1

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

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for mavsdk-4.2.1-cp38-abi3-win_arm64.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 Nov 17, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

4.2.1 This release

7 release files Full provenance

0.5.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page