Usage
Here's a basic example of how to use the servomotor package:
TODO
For more detailed usage instructions, please refer to the documentation.
Choosing the serial port
The command line tools work out which serial port to use in this order, highest priority first:
-p PORTon the command line (-Pinstead pops up a menu of detected ports)- the
SERVOMOTOR_PORTenvironment variable - the port saved from the last successful run
- an interactive menu, if none of the above apply
So a port can be set once for a whole shell session:
export SERVOMOTOR_PORT=/dev/ttyUSB0 # Linux
export SERVOMOTOR_PORT=/dev/cu.usbserial-110 # macOS
set SERVOMOTOR_PORT=COM3 # Windows (cmd)
$env:SERVOMOTOR_PORT = "COM3" # Windows (PowerShell)
-p still overrides it for a single command, and -P always shows the menu.
After a port is opened successfully it is remembered, in a per-user location:
| Platform | Saved port file |
|---|---|
| Linux | $XDG_CONFIG_HOME/servomotor/serial_device.txt, else ~/.config/servomotor/serial_device.txt |
| macOS | ~/Library/Application Support/servomotor/serial_device.txt |
| Windows | %LOCALAPPDATA%\servomotor\serial_device.txt |
Delete that file to forget the remembered port.
Serial port permissions on Linux
Serial devices usually belong to the dialout group (uucp on some
distributions). If you get a permission error, add yourself to it:
sudo usermod -a -G dialout $USER
then log out and back in for the change to take effect.
Features
- Control Gearotons servomotors via serial communication
- Easy-to-use interface for sending commands and receiving responses
- Automatic handling of serial port selection and management
Requirements
- Python 3.6+
- pyserial 3.5+
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
Tom Rodinger - tom.rodinger@alumni.utoronto.ca
Project Link: https://gearotons.com
Metadata
Release files for servomotor 0.12.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| servomotor-0.12.2.tar.gz | 157.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| servomotor-0.12.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 340.8 kB
Release files / servomotor-0.12.2.tar.gz
| Download URL | servomotor-0.12.2.tar.gz |
|---|---|
| Size | 157.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
853967291ab79169c69530190edd54344ce3e0294ed587e1875b2d56841a22c3
|
|
BLAKE2b-256 checksum How to use checksums |
20371c261d53f019a8861d7a81d9c495bd597d96551ea7a30a986973cd2ccbe5
|
| 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 Jul 30, 2026.
Transparency logRelease files / servomotor-0.12.2-py3-none-any.whl
| Download URL | servomotor-0.12.2-py3-none-any.whl |
|---|---|
| Size | 183.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a071f6f7276a63a9dd60bd30d7eb905c440da0ad1a043124cd478873ae27db02
|
|
BLAKE2b-256 checksum How to use checksums |
10a82f2c9917e09779710267eda6c8407605c312877eb29936a41445ea02f085
|
| 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 Jul 30, 2026.
Transparency logSecurity for servomotor 0.12.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for servomotor-0.12.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 Jul 30, 2026.
Transparency logA 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.