Python bindings for Swift Binary Protocol
Project description
Python client for Swift Binary Protocol (SBP).
Setup
You must have python and pip installed.
Install dependencies only:
$ sudo pip install -r requirements.txt
Install from repo:
$ sudo python setup.py install
Install package from pypi:
$ sudo 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 Swift Navigation
Distributed under LGPLv3.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for sbp-2.6.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dcd1ae3e1adc6867bedcc1811caad3fe7852b435d7232b36176fb79aa8131e2 |
|
MD5 | ad36ea056e65b284a1bbddafdc7b539f |
|
BLAKE2b-256 | 5a6f2042d2bea53d982a4191a33c5ca5c4b927826db51b08b7981e2274bd2e87 |
Hashes for sbp-2.6.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 630411891c07cc3e21b515911ade83366447c0e67b7381bd39f5667c8f78f387 |
|
MD5 | 2fd9396f9f1b84676ef3e48bb0cb1c54 |
|
BLAKE2b-256 | 0e7b7f21d5ccead443b8968e89a4e69793061452ef1c3e73d2cc424eef738c57 |
Hashes for sbp-2.6.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c4da113673709b4683ac7ef394e807e739b9358a5c2dd88ab188930959ac44 |
|
MD5 | 8a28db4582d2a6f823343d39f6c16a93 |
|
BLAKE2b-256 | 59758dd2c72f8f4f57a7234887f622e8ce6b591b4ac1ac365ea13bb6ef4785c4 |
Hashes for sbp-2.6.2-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0103d5c0fc3894988709697e842cc64b3049ed20e4336e048810b7264bbad9c3 |
|
MD5 | e698cb1713ac3533af3a54aea820398a |
|
BLAKE2b-256 | e90c32a598defecebdba4cc041436d95e6a72dbdc76a854ab8d2a7f4ef258d52 |
Hashes for sbp-2.6.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675184bb57537f31b7fbd207fdc25ed36e1733ac7c8be91a4e24646861c8c7be |
|
MD5 | d717e75ac12b8f9049ca284becffd235 |
|
BLAKE2b-256 | 914a9733c83c427dae77e06d5e2c66b6a3256a6cae6cff59af32a29b4f4e59cd |
Hashes for sbp-2.6.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e4673e68c9a616b20a1dcdcde6d450a715a31921c13b5579bbb49902529d6ab |
|
MD5 | a52bdccdc61aa4cb4f1440b779995c5d |
|
BLAKE2b-256 | 62071d5a79b0c8e2c9686c630e147a79e5c0479396ac51a1954c33a2c7090354 |
Hashes for sbp-2.6.2-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a85805d1ad24ee29772dc329440e59396ff63e7b433df2aa56a3160705e22065 |
|
MD5 | c416cc2946a592a879dd745bb975df4c |
|
BLAKE2b-256 | 5a4692cecb8c6c93e814cfee3e106237ca3677ea6e56e33a85d493c1c4662b68 |
Hashes for sbp-2.6.2-cp27-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9950caba4379f09eb0d1ed713579b8f096ec0e1656133249ac16316d6325ed0 |
|
MD5 | 39af01ebb4bf6d7e0174e02fe92b2f11 |
|
BLAKE2b-256 | 4c9ab2e56e251f71d48b455182667318080b51373629a61044980b276f646d41 |
Hashes for sbp-2.6.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c471c1675bd4badc29b3d8fa367b9e4ee31fee96bf5fca860d03684079c1b4a3 |
|
MD5 | 97104c746868112b183c383d23d72ee0 |
|
BLAKE2b-256 | 5229f2e8d94bd6e3596fdc26058cf38c675efeed37654ac03a6d218a3de0e753 |
Hashes for sbp-2.6.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a062deb39e692540c0a4171d5f42377f204e65f29e3792705f6407a410c4926 |
|
MD5 | efb238f0a14cdfcb3db79f4ede0def09 |
|
BLAKE2b-256 | 5beb6aa9513859fa01b77cbfa8296465bb573c79d009a3b97dcefbd1b3bbe6f5 |
Hashes for sbp-2.6.2-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6e7e89797941cf10c07c7ce9f0f5b6976a487c9ee198f766634a933f76c516b |
|
MD5 | fc587af461a7bd543e08af42122c1c21 |
|
BLAKE2b-256 | 0c458e50e9a607415bfda0bc0c9c5e65e5de63676266aa7ef071b7f535b624e6 |