Skip to content

Software

RobotPy

By Python 3 for the FIRST Robotics Competition (FRC), from github.com/robotpy/mostrobotpy (opens in a new tab)

  • Middleware
  • Library
  • BSD-3-Clause

Core Python packages that wrap the C++ artifacts of allwpilib, officially supported for FIRST Robotics Competition robots. Provides the RobotPy libraries as a set of interdependent packages.

Facts

GitHub stars
28read on 29 Nov 2026
Last update
6 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner
Hardware it needs, as the project states it
A working C++ build system and Python development headers are needed to build from source; cross-compiling targets the RoboRIO and raspbian.

Checked on GitHub on 29 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE.md (opens in a new tab) (BSD-3-Clause) at commit 02f56e1 (opens in a new tab), on 6 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Wraps allwpilib's C++ components so they can be used from Python.
  • Is composed of many interdependent Python packages located in the subprojects directory.
  • API documentation is hosted on Read the Docs.
  • Recommends using prebuilt packages published on PyPI and the WPILib artifactory rather than building from source.
  • Can be built with the rdev.sh tool, which supports editable development installs and wheel building.
  • Supports cross-compilation only for the RoboRIO and raspbian via WPILib docker build containers.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 6 Nov 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 02f56e1

Robotheca read the repository at two versions: the summary at eb142a8 and the facts and the README at 02f56e1 (read on 29 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by Python 3 for the FIRST Robotics Competition (FRC), at commit 02f56e1, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

mostrobotpy

This repository contains core python libraries that wrap the C++ artifacts of allwpilib (opens in a new tab). These libraries are officially supported for use in the FIRST Robotics Competition.

API Documentation

API documentation is at https://robotpy.readthedocs.io/projects/robotpy/en/latest/ (opens in a new tab)

Building RobotPy

[!WARNING] It is not recommended for users to build their own copy of RobotPy. Instead you should use our prebuilt packages that we publish on PyPI and on the WPILib artifactory site. See TODO for details

mostrobotpy consists of many interdependent python packages, which can be found in the subprojects directory. Each subproject can be built like any other python project, but it is recommended that you use our rdev.sh tool instead.

The managed subprojects track pyproject.in.toml templates. The develop and wheel-building commands generate each project's ignored pyproject.toml when that project is reached. To generate all project files for use with other Python tooling, run:

./rdev.sh update-pyproject

You must have a working C++ build system and python development headers installed for your system.

Next install dependencies using pip:

pip install -r rdev_requirements.txt
pip install numpy

Then run these commands to build all the wheels for the current operating system.

./rdev.sh ci build-pure-wheels
./rdev.sh ci build-other-wheels
./rdev.sh ci build-meson-wheels

All the resulting wheels are in dist, which can be installed using pip.

To build wheels for the robot platform, you need to use a crossenv docker image. See .github/workflows/dist.yml for details.

Development environment

To install all robotpy packages in editable mode (opens in a new tab) first run this to install dependencies:

./rdev.sh install-prereqs

Then each time you want to build everything:

./rdev.sh develop

For pure python development, you can just edit the files in this repository in-place, and changes will take effect immediately.

If you are changing C++/wrapper code, you will need to rebuild the package that you are modifying. You can either run the develop command above (which rebuilds everything) or rebuild an individual package:

./rdev.sh develop NAME

For cross-checkout ccache reuse with GCC/Clang, opt in with ./rdev.sh develop --portable-build-paths NAME or RDEV_PORTABLE_BUILD_PATHS=1. This sets CCACHE_BASEDIR and appends a CXXFLAGS prefix map for build subprocesses; CCACHE_DIR is unchanged. Use matching toolchains, dependencies, and directory layouts. Existing Meson builds may need their build/ directory recreated. Debug and __FILE__ paths become relative. Disabled by default on all platforms; --no-portable-build-paths overrides the environment variable.

It can be a slow process, see the semiwrap documentation (opens in a new tab) for tips to make it more efficient.

Cross Compilation

We only support cross-compiling for RoboRIO and raspbian via the WPILib docker build containers. See .github/workflows/dist.yml's cross-build job for the name of the containers and the steps that must be run inside the container.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.