Skip to main content

Python 3.14+ required. Earlier Python versions cannot install robowrap.

macOS: your system python3 is too old

The python3 that ships with macOS (Xcode command line tools) is Python 3.9, so pip install robowrap fails with it. Install Python 3.14 with one of these lines, then run your scripts with .venv/bin/python:

  • Homebrew: brew install python@3.14 && python3.14 -m venv .venv && .venv/bin/python -m pip install robowrap
  • uv: uv venv --python 3.14 && uv pip install robowrap

robowrap

Student-first wrapper for the RoboMaster EP Python SDK.

The design goal is the same one shown in test.py: students should be able to write robot behavior as a sequence of clear intentions such as move, detect, grab, and close without learning the SDK transport layer first. Grouped subsystems like robot.cam, robot.arm, and robot.gun mirror the physical robot and keep the first classroom exercise short.

Python support

robowrap now supports modern Python and is packaged for Python 3.14+.

This change was made because the original DJI RoboMaster SDK appears to be unmaintained and still targets older Python releases. To keep the RoboMaster EP usable on current Python versions, robowrap now depends on the maintained robomaster-sdk-modern package instead.

Installation

python -m pip install --upgrade pip
python -m pip install robowrap

robowrap depends on robomaster-sdk-modern, so installing robowrap is usually enough. Installing both explicitly makes the SDK choice clear.

robot.cam.view() uses PySide6 for live display and does not use OpenCV. This avoids the PyAV/OpenCV duplicate FFmpeg conflict on macOS.

Snake_case policy

  • The public wrapper API is now snake_case only.
  • Legacy camelCase and mixed-case aliases have been removed; see the migration table.
  • setSpeed was removed in 0.9.2 and raises AttributeError; Python suggests set_speed, whose error points to set_default_speed(...) or continuous_drive(...).

Start here

Example

from robowrap import RoboMaster

with RoboMaster() as robot:
    robot.set_leds(0, 128, 255)
    robot.forward(0.5)
    robot.cam.detect_person()
    robot.cam.view()
    frame = robot.cam.frame()
    robot.arm.move_to(x=0, z=50)

The with block calls robot.close() for you, even if your code raises an error. Without close(), the SDK's background threads keep running and a finished script never exits. If you do not use with, call robot.close() yourself at the end.

Metadata

Release files for robowrap 0.9.2

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

Source distribution (sdist)

Source distribution for robowrap 0.9.2
File Size Uploaded Provenance Actions
robowrap-0.9.2.tar.gz 26.1 kB With provenance Details for robowrap-0.9.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for robowrap 0.9.2
File Interpreter ABI Platform Actions
robowrap-0.9.2-py3-none-any.whl Python 3 none any Details for robowrap-0.9.2-py3-none-any.whl

Total release size: 46.9 kB

Release files / robowrap-0.9.2.tar.gz

Download URL robowrap-0.9.2.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e68798bb107cf34c997f750847fe91b1179a3a18919239cdbfd7e5177bc824b8
BLAKE2b-256 checksum
How to use checksums
43fb691b3dcd2944eafda0c179573309e249dfbe96c597d6c242e36f3670fa0a
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 13, 2026.

Transparency log

Release files / robowrap-0.9.2-py3-none-any.whl

Download URL robowrap-0.9.2-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e9bff810125402824b522f8bf313e0565b61b4004fbdbc8a2f1283d26094ca0
BLAKE2b-256 checksum
How to use checksums
375b0564ff3f0a60c7676f6182d6f028eb5899f4624c1b3fd1a8e5692da32f0e
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 13, 2026.

Transparency log

Security for robowrap 0.9.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for robowrap-0.9.2.tar.gz

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 13, 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.

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