Python bindings for Swift Binary Protocol
Project description
Python client for Swift Binary Protocol (SBP). Since v2.5 libsbp is compatible with Python 2.7, 3.4 to 3.7. For new projects, Python v3 is recommended.
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 MIT.
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-3.3.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb5c58990b49d2ae409b52c160a8651826edf2264675625be65001d543b1bf7 |
|
MD5 | 47c51e2d21a3e2f890008f7c6871e236 |
|
BLAKE2b-256 | 26e0fc678fad880e8ea58471b5b140265b3075569bdb04b7dd4350400e8d6455 |
Hashes for sbp-3.3.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6441a68194e478063fd417e929179779fca28df4e9f3e406cf325e515fe7f0b0 |
|
MD5 | 6424402920beac5d17da0adbc9aae7e6 |
|
BLAKE2b-256 | 5229612812be3252fd0bcf0e83f2340bf8b17788c3b324396b0223b0c119f200 |
Hashes for sbp-3.3.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2cbbfccb1357059d9ebacb4991320a3d1a0b1fb3411762e466f5f2dc17f8e21 |
|
MD5 | 4f3ef8a4e2bca5af98450c2385fb085c |
|
BLAKE2b-256 | cf08c4015da2e6069e8c9bdfecfdcdb56a8b518445d003a0dac8bfb8e4f0449c |
Hashes for sbp-3.3.1-cp38-cp38-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d30c370d424598e821dea374dc7f275dbee52af9b1ce6533b09fce93027679d |
|
MD5 | 33aea054d82fa5a329f87c9a8935a113 |
|
BLAKE2b-256 | 6516cb30db7fbf049bdb8694e8b51c74dafec26618d2166ddacaa04823bde0e0 |
Hashes for sbp-3.3.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f982464f1b7bc915cac2f1b6c7142de234e8b15e6020ae6cfb8d4ceeda9b883 |
|
MD5 | f4b8fffa73f3c556f5dfe7ed012ac302 |
|
BLAKE2b-256 | 7891d13bd6d000cb5bd8aafc9a5185b3a84c0132eeb01afc3b2bed892970bd4e |
Hashes for sbp-3.3.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5e237b97292cba0edc87577976d73f28b44bdd7737433689841d3114dfa2de |
|
MD5 | 8214aacdc01b31f4c62a13276d8b8f49 |
|
BLAKE2b-256 | d0e7e680cf48ce9dce2805b06e897d5714c4d96e93ed47528cb3ccbeb4339d2b |
Hashes for sbp-3.3.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddcaf3e1213eca85b5b23f1a9f6d988e780b5a72a2901d2dbde83db9e959a488 |
|
MD5 | cfa98d66fa7429283ae881ecad61889e |
|
BLAKE2b-256 | b9d243fa1f36a90abce2e37e6c367ec2e40fcc66f89418d68ec8d4f21707bcf8 |
Hashes for sbp-3.3.1-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e164eb35e25b57396950f451c374fdbd30165141723ce487fe0a0ffe31c61abd |
|
MD5 | a253ee40c1d713e9e5b632617e2ed74d |
|
BLAKE2b-256 | a285d8ea4c5b5a2817c31d7883a570a6503b6d3e6627e218f5f512caba1ef402 |
Hashes for sbp-3.3.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e86111412e21c989dd0af3e5cd2589c7e008f6f56f556d004b619cd464294d |
|
MD5 | 1696b04a6a108c96f4d21ac3a9e93c1a |
|
BLAKE2b-256 | 670f0a0952ce5efeb5a9e128ce7e44436ca340579217b219d4e2ae76a4141d49 |
Hashes for sbp-3.3.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d74d9ac518db7ddfd2f9a9fcbc1a5a790183f429eb6cdcd64759b15a82ea0c |
|
MD5 | d07a5d76c3d4609d711aef4813a6813b |
|
BLAKE2b-256 | 61a6f7700f626b947b6544d7d713bd882a031a7bdac8caf68e777b6ec35b8724 |
Hashes for sbp-3.3.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca99283ff9fd5fecad8ecf1abfec040013223c771bafebde3e8b719c1fe7194d |
|
MD5 | 8926eae13902039431b78f3e150385fd |
|
BLAKE2b-256 | 1505650fe0d58d102a965e2bc0c0bdfe374436203d7b2591a9a7aa57a5f3c0d7 |
Hashes for sbp-3.3.1-cp36-cp36m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a606a0ca362e5891169e904225eae1bc9bd7d4be890240adeb01946fc40323 |
|
MD5 | 2e65ecc929ea7acaafe3c7410d53035f |
|
BLAKE2b-256 | e8d249c002d5dae86183bd52fe2f437e71ab7bbf60b4e35434be5abbab977898 |
Hashes for sbp-3.3.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05a853cd64e4c667e8956f082cb5d7b9a36eb89e3f005c6f48acb62d6f8ce305 |
|
MD5 | 103588198ecd99bbed1c8bc906b2aca0 |
|
BLAKE2b-256 | cdb2f35aef0f6e654407ed873de480251010210dee1fe4fcb72c9fa601ac25b4 |
Hashes for sbp-3.3.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b94ff2c9e6a81edb97401c2b3b063beb603f571c95eecac4bc7d94161d756255 |
|
MD5 | 5fe3efd35136771c5af040a4430769df |
|
BLAKE2b-256 | 665f7d953db5100aee5ce2bd5fb9fd7846f4f0c7c44b087c3447e7fba268138e |
Hashes for sbp-3.3.1-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 223dc27e77a683fa03d516c132fb391e2bc302241ce54d6a3de44596bd57b7a3 |
|
MD5 | 2019c400b95964ae66c85fe7e15238d5 |
|
BLAKE2b-256 | b992821f7fe05df3832051d3ee66dd593857300ec1339286425560b0d4611c1f |
Hashes for sbp-3.3.1-cp35-cp35m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 948d18634366b0aa3fc766912ee6cad17acd309eb5df2968806ce52737d940bf |
|
MD5 | 6c0ab64944abf9ce9dc3e0ff446455e3 |
|
BLAKE2b-256 | fa1bf25ea84dbcffc55934d075956d252b8772aa8e591d0804f4e3831a257c1e |