Skip to main content

NXT-Python

NXT-Python is a package for controlling a LEGO NXT robot using the Python programming language. It can communicate using either USB or Bluetooth.

NXT-Python for Python 2 is no longer supported.

NXT-Python repository is on sourcehut with a mirror on Github.

Requirements

Installation

Install NXT-Python with pip:

python3 -m pip install --upgrade nxt-python

See installation instructions in the documentation for more informations.

Next steps

You can read the documentation, or start directly with the tutorial.

Upgrading your code

If you used previous version of NXT-Python with Python 2, the documentation includes an migration guide.

Contact

There is a mailing list for questions.

NXT-Python repository maintainer is Nicolas Schodet, since 2021-11-06. You can contact him on the mailing list.

You can use the Github issues page to report problems, but please use the mailing list for questions.

Thanks

  • Doug Lau for writing NXT_Python, our starting point.
  • rhn for creating what would become v2, making lots of smaller changes, and reviewing tons of code.
  • Marcus Wanner for maintaining NXT-Python up to v2.2.2, his work has been amazing!
  • Elvin Luff for taking over the project after Marcus, making a lot of work for the port to Python 3.
  • mindsensors.com (esp. Ryan Kneip) for helping out with the code for a lot of their sensors, expanding the sensors covered by the type checking database, and providing hardware for testing.
  • HiTechnic for providing identification information for their sensors. I note that they have now included this information in their website. ;)
  • Linus Atorf, Samuel Leeman-Munk, melducky, Simon Levy, Steve Castellotti, Paulo Vieira, zonedabone, migpics, TC Wan, jerradgenson, henryacev, Paul Hollensen, and anyone else I forgot for various fixes and additions.
  • Goldsloth for making some useful changes and keeping the tickets moving after the migration to Github.
  • All our users for their interest and support!

License

NXT-Python is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Release files for nxt-python 3.5.1

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

Source distribution (sdist)

Source distribution for nxt-python 3.5.1
File Size Uploaded
nxt_python-3.5.1.tar.gz 106.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nxt-python 3.5.1
File Interpreter ABI Platform
nxt_python-3.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 183.3 kB

Release files / nxt_python-3.5.1.tar.gz

Download URL nxt_python-3.5.1.tar.gz
Size 106.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e02ae20a61ee23125c8429bf7f3547a0ada0f904c83cfaaea884947c09399279
BLAKE2b-256 checksum
How to use checksums
380242642a2c790fa9db3e1bc930bdd11476539b0c5825f66f17db6764a5e3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Linux/6.1.0-17-amd64

Release files / nxt_python-3.5.1-py3-none-any.whl

Download URL nxt_python-3.5.1-py3-none-any.whl
Size 76.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f8737e61039380b47e28b295b8bc0a01233ef2a3dad473b60e9a6e4056bf2c2
BLAKE2b-256 checksum
How to use checksums
acf5dcc406b0db81a7deb026cae0003653b8ea00280ac494d737852f390eeada
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Linux/6.1.0-17-amd64
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