Simple Management Protocol (SMP)
smp implements serialization and deserialization of the Simple Management Protocol.
The SMP specification can be found here.
If you'd like a library that implements the serial (UART or USB), Bluetooth (BLE), and UDP transport layers for SMP, take a look at smpclient.
If you need an SMP CLI application to interact with device firmware, then try smpmgr.
Install
smp is distributed by PyPI and can be installed with poetry, pip, and other dependency managers.
User Documentation
Documentation is in the source code so that it is available to your editor. An online version is generated and available here.
Development Quickstart
Assumes that you've already setup your development environment.
- activate envr, the environment manager for bash, zsh, and PS:
. ./envr.ps1 - run
poetry installwhen pulling in new changes - run
lintafter making changes - run
testafter making changes - add library dependencies with
poetry:poetry add <my_new_dependency> - add test or other development dependencies using poetry groups:
poetry add -G dev <my_dev_dependency> - run tests for all supported python versions:
tox
Development Environment Setup
Install Dependencies
- poetry==1.8.5: https://python-poetry.org/docs/#installation
Create the venv
poetry install
The venv should be installed to .venv.
Activate envr
envr supports bash, zsh, and PS in Linux, MacOS, and Windows. If you are using an unsupported shell, you can activate the
.venvenvironment manually, usepoetry runandpoetry shell, and refer toenvr-defaultfor useful aliases.
. ./envr.ps1
Verify Your Setup
To verify the installation, make sure that all of the tests are passing using these envr aliases:
lint
test
Enable the githooks
The pre-commit hook will run the linters but not the unit tests.
git config core.hooksPath .githooks
Release files for smp 4.1.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 | |
|---|---|---|---|
| smp-4.1.0.tar.gz | 26.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smp-4.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.9 kB
Release files / smp-4.1.0.tar.gz
| Download URL | smp-4.1.0.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
def270346a9f67e99e526a3c789a814e6e2203afa4d913cb11bb5a9bda6423a9
|
|
BLAKE2b-256 checksum How to use checksums |
0b3a2a5017d4ed321389f242f26392d1cadfa36d9c6f235206b26491df83aafb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 3, 2026.
Transparency logRelease files / smp-4.1.0-py3-none-any.whl
| Download URL | smp-4.1.0-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca06376b130f028e02dc147a82f1f32bd1ce8e9397b23a0d6d391f7de76e883c
|
|
BLAKE2b-256 checksum How to use checksums |
eac58a6625c8afd8b96865546310da0ac6b83a5700a9892c0e9b923b0ff1af61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 3, 2026.
Transparency log