SBP Bindings for Python
Python client for Swift Binary Protocol (SBP).
libsbp is compatible with Python 3.8 to 3.14. For new projects, the latest Python release is recommended.
Setup
You must have python and pip installed.
Install dependencies only:
$ pip install -r requirements.txt
Install from source:
$ pip install ./python
Install package from PyPI (use sudo ... to install globally):
$ pip install sbp
Setup using a virtual environment
Setup and activate the virtualenv:
$ virtualenv .env && source .env/bin/activate
Install py.test in the virtualenv:
$ pip install pytest-virtualenv
Install the pt.test coverage tools:
$ pip install pytest-cov
Finally, proceed to the standard setup instructions.
Usage Examples
Simple example
Receives SBP messages over a serial port, decodes MSG_BASELINE messages and prints them out. See simple.py .
Run this example with:
$ python -m sbp.client.examples.simple -p /path/to/serial/port
Sending SBP messages over UDP
Receives SBP messages over a serial port and sends all incoming messages to a UDP socket. See udp.py .
Run this example with:
$ python -m sbp.client.examples.udp -s /path/to/serial/port
Testing
To run the tests and check for coverage:
$ py.test -v --cov sbp tests/
To run the tests without suppressing stdout output:
$ py.test -v -s –cov sbp tests/
License
Copyright © 2015-2021 Swift Navigation
Distributed under MIT.
Metadata
Release files for sbp 6.5.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 | |
|---|---|---|---|
| sbp-6.5.2.tar.gz | 122.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sbp-6.5.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 287.1 kB
Release files / sbp-6.5.2.tar.gz
| Download URL | sbp-6.5.2.tar.gz |
|---|---|
| Size | 122.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfbf765043c02ec88732dc6d0b2f014788d5ff1b8b3a243b547aab65515bfcc3
|
|
BLAKE2b-256 checksum How to use checksums |
e6295edc3981aebca4231bd3e7ad61c6099510d1d9dd618553558de60f875fbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / sbp-6.5.2-py2.py3-none-any.whl
| Download URL | sbp-6.5.2-py2.py3-none-any.whl |
|---|---|
| Size | 164.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0a7a2160ceddd732c6721e23beaefccc9330fe4a461342a32c798164b58c331b
|
|
BLAKE2b-256 checksum How to use checksums |
881606207cfde1ab88118f330c56267e89ccdd2268f864af2234c8a2616e4326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|