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.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a41274346a192bb36f35d999992d75f3d29765037606620c2d15d81af5e3bbda |
|
MD5 | 048ff6aa3f03d07fde023c5aeb2a57ba |
|
BLAKE2b-256 | b9a0bacaeafd67bf4217fc2a12f2a6d4662686c46530ad33cd3f8f6bc0521d60 |
Hashes for sbp-2.6.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbe649b0eae4785fbc2309a7fa607c1f6ce4afc6a725f799807600b6db4ac04a |
|
MD5 | 5b58495a478f7663d8c3511504cc8c8e |
|
BLAKE2b-256 | 2ae5f6b01040acbd7e1cb2a61154dbc1682d639adf5d0aadfc078621a656c3ab |
Hashes for sbp-2.6.5-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a9f46d42af861181231d2529d3c0632c7468e583d4e37099ee03e63be75494 |
|
MD5 | 41e63f541327200ff024dc0fa5533fc2 |
|
BLAKE2b-256 | 11adf7d67ff1181e8584f783a3c26c9ad1b67bc876baa6429c4d0275abe742a2 |
Hashes for sbp-2.6.5-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1997a0c1515a102facbad69db36ccb4ea54f2f2aa769f72a96c12a62c79b18b3 |
|
MD5 | 84769bb8ef0c123d8297f5991e93746e |
|
BLAKE2b-256 | b22668d734c475ce610632af2647647f3bd3c238361a1f3122a74865c4d2bb51 |
Hashes for sbp-2.6.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adcbc319999076bf12bb9bcc2134a6dda5ac350521fdf89ce4eadfa1e71ca2f3 |
|
MD5 | 0a3f08a7342c80e3760adac6a3808914 |
|
BLAKE2b-256 | 5c7d6aafad73954d9d96a23338cae9eb66f16592c5b137332e2bc7154d537525 |
Hashes for sbp-2.6.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7f885832aa334344ed0f8efd0f5be166f4720c61db7050a2de1c98f2b7d6ca |
|
MD5 | 65a35c18dc9e0e45ae2703f2831529d9 |
|
BLAKE2b-256 | 807351c78f65e8695af32624d02e7a9586d5981d757dbd1bcfeb1650fe9a6f22 |
Hashes for sbp-2.6.5-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dee7f0406cab0e942c0356b9cb8db55bbe2e6b0c4f8fcda43caddd94a5dec1 |
|
MD5 | fe215f674bae10363b5935090e00afe5 |
|
BLAKE2b-256 | c091067c5a0b6eebb50e53d5c08534813309b6cd65c5b7b9c9e4b34641a7e58d |
Hashes for sbp-2.6.5-cp36-cp36m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2771fe0951a89144eb64e9b22c1647f05c34e07e14b0ab3f89199f0200c152e6 |
|
MD5 | 139b8ed1a938eb58bdc0019e3466f19a |
|
BLAKE2b-256 | 82f1188d6d6c20ed432e33a5f2b30808b3f7d9e6084c58dc21a840de50285abb |
Hashes for sbp-2.6.5-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17f5909a6b74dec33b2813ce6f3728f65650b6d1847fc1798fb47b8436dd6565 |
|
MD5 | 6af5cd2c2ca4f99a7304d816ecaab6b2 |
|
BLAKE2b-256 | c1aab867db28b95ca59ce21ae7b1719634b4f0e55bae51bc48609ea744559971 |
Hashes for sbp-2.6.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dffe85f5aed4da105355d0b99957c42bfc91c954f0b5755632b950cf8e9391bd |
|
MD5 | 6ab1ee7c66a030ee3f01a7a350f480cc |
|
BLAKE2b-256 | 1d5894a3e0621d07786bab8f0120c97c01e5463b7b302202bfaa5ce0774c4c0e |
Hashes for sbp-2.6.5-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe87bfbd6a65112af72bad298b8c934e4feb495a0d8c1a2331b991d9b32eb1e4 |
|
MD5 | 549835f0e6a7c03a98621dcf91f97ee4 |
|
BLAKE2b-256 | c257ecfa67853e79c880d97543d9098c5f5476edd8f9e7ff0867b173f455778e |
Hashes for sbp-2.6.5-cp35-cp35m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec74b4160896c8b566e66d65f87d603936eedaa46abeddc899918274f0774f33 |
|
MD5 | 7659db651861754c0d7cbb2a7fbefd20 |
|
BLAKE2b-256 | df76da9112c9842b92ea5252edeb60dfbc59391992ecb03cac1eb3f28d1af3d8 |
Hashes for sbp-2.6.5-cp34-cp34m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d2753e5c293bf504295cbafb0be9e6da186140cd78a2ab538cf417945f444ba |
|
MD5 | 0324cc1a58c32ed2f8df810058bb863a |
|
BLAKE2b-256 | 19940f48a8034a20e7c8333aaa074a42255b5a38cec3f54e1f8776dc5ca00ba2 |
Hashes for sbp-2.6.5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37cb64068f29222358c52102ddba14145198be6cf28096ffb561cb42682d09bc |
|
MD5 | 59224a3176b94e118bb601efe0d97d69 |
|
BLAKE2b-256 | f62ba24736bf1ce48942a75a7b6f22b4baca7da011851d6121e062a51410db96 |
Hashes for sbp-2.6.5-cp27-cp27mu-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70664f87521729a044782cbd1fe99a0d9d5207ba7bc1495b561fca45ef96c4a7 |
|
MD5 | c6374b265f112a01aca69c2c3a0ec5b6 |
|
BLAKE2b-256 | 5e5e8c064ee31d02d1a34b3ab920a4b12e5f8eec37e3bfa911d8b16a5cfc5b5d |
Hashes for sbp-2.6.5-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44a2d8ad3b9dd31babee097a4658554b5713e2eb9db3fd22f4c1823f54ed7ac |
|
MD5 | b75ff27d837a8813e5e2741e8684839a |
|
BLAKE2b-256 | 982879a3a155411ccf211b3a17944127bf80073612ace424fe96cda5f2a1dc89 |
Hashes for sbp-2.6.5-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2341b1c5a9dbdda992560d8dce0faa9ae77f4388558268cfdbf7d6911c5084 |
|
MD5 | 918947b6dd5b411e38a3c4003ebc2af9 |
|
BLAKE2b-256 | cbe1bcc280db5d63b550b0c56420ed486fc0d099a55733e51772f933a88ae8d5 |
Hashes for sbp-2.6.5-cp27-cp27m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2128ebd6a3f1934bf8da2c04284fa16568ecf31be0d1c80a7457bd571cf514cd |
|
MD5 | 6dbaa7b6e50bbf66cb43c8a86f9ac149 |
|
BLAKE2b-256 | 5684f4fdecbd865c39d77cea9acecfa532e66d05b7265a14bab69d6c61bcd962 |