Python-ST3215
Python-ST3215 is a lightweight and intuitive Python library for communicating with ST3215 Smart Servos over a serial bus. It provides a high-level interface for reading and writing servo parameters, controlling motion, and working with the servo memory map.
Features
- Simple API for controlling ST3215 servos
- High-level wrapper for movement and parameter access
- Helpful exceptions for robust applications
- Fully typed and documented through docstrings
- Tested against Waveshare ST3215 hardware
Installation
Install via pip:
pip install python-st3215
Quick Start
from python_st3215 import ST3215, ServoNotRespondingError
controller = ST3215("/dev/ttyUSB0")
try:
servo = controller.wrap_servo(1)
print("Current location:", servo.sram.read_current_location())
except ServoNotRespondingError:
print("Servo not responding")
finally:
controller.close()
Examples
A collection of example scripts is available in the examples/ directory.
These cover tasks such as motion control, serial communication tests, reading/writing parameters, and more.
Documentation
The library is fully documented through docstrings. Hover over classes and functions in your editor to see type hints, parameter descriptions, and usage notes.
Hardware Compatibility
| Brand | SKU | Product |
|---|---|---|
| Waveshare | 22414 | ST3215 Series Serial Bus Servo |
| Waveshare | 25514 | Bus Servo Adapter (A) |
Memory Table
The complete memory map is documented in MEMORY_TABLE.md.
License
This project is licensed under the GPL-3.0-or-later license.
See the LICENSE file for full details.
Supporting the Project
If this library has been useful to you, consider supporting its development: https://ko-fi.com/alessiodam
Metadata
Release files for python-st3215 1.3.0
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 | |
|---|---|---|---|---|
| python_st3215-1.3.0.tar.gz | 411.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_st3215-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 441.5 kB
Release files / python_st3215-1.3.0.tar.gz
| Download URL | python_st3215-1.3.0.tar.gz |
|---|---|
| Size | 411.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
108b9a54b71d327c19bd9bffc6d21136c149f9c947f8a5f7a34d4f7105c8409b
|
|
BLAKE2b-256 checksum How to use checksums |
790ac398b5ab3fb8a46420d4b010b4c7632912f70c93975a7972117a25f1e5d1
|
| 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 Oct 7, 2026.
Transparency logRelease files / python_st3215-1.3.0-py3-none-any.whl
| Download URL | python_st3215-1.3.0-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
953e7d6b299856070db11b48a9bef2b47af851cba68e7f06e9066c499ec3c6e9
|
|
BLAKE2b-256 checksum How to use checksums |
0b5ffb4b2cc7d36c640b360ee22c0428e4d0f702f86285b21b98b991a1a82b73
|
| 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 Oct 7, 2026.
Transparency logSecurity for python-st3215 1.3.0
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 python_st3215-1.3.0.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 Oct 7, 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.