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.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc80126d6687d623a42399924b13473ec39ca12b0866102f1aba3a1263fd4f06 |
|
MD5 | d3bca03e70989f95c9e781f4be617fe4 |
|
BLAKE2b-256 | 610537549baabcdbc4d5a0b34415992f5fcfd8df90dde8e675e59d41c60eb450 |
Hashes for sbp-2.6.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe223659315f4ef1775b17e84ac702343c938a6cbe610264fef9052e58ed2830 |
|
MD5 | 11c172c6e08d8023aedf679207a001a4 |
|
BLAKE2b-256 | a6cfd6bd9e4e7f470dae6febc4d5f162ac537ae29d8e45de4518cc7852a5026e |
Hashes for sbp-2.6.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7293ddaa3dab3c1be29a82990b97dfab2ad8bfb5aa5fe7b2982e31fd5c0afae |
|
MD5 | 87b433d118ceab4cd58972adf7812abf |
|
BLAKE2b-256 | 5bd3b987d80fd72225e6be3c06d9eb0d1ca43d6c4d25f1bdbc997893e2478905 |
Hashes for sbp-2.6.0-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014fb1f54355bb88d1ce0029b80838e9898e83272353744e6e922b84bd9e5259 |
|
MD5 | 5e2bb27f4e820e6d9fe917191f4790f0 |
|
BLAKE2b-256 | 9f339ccffcdcc2da8e19e87d5e0373599f001483f56e2223837d42a22699bd36 |
Hashes for sbp-2.6.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e665cd1307f2ea5824cb4dd0f419813e6cc23263617b60650a74f036b645402 |
|
MD5 | 8341dc0a4278a6effccf7d779b6518f6 |
|
BLAKE2b-256 | c034f0dbc88d53a08d373c12a80f2c5ee2b53557bc2a586e7d21b4a56fe31cc7 |
Hashes for sbp-2.6.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd495ac9f62e491d376773722e482e30ae63dbbbe8b661db4733a28b265c7235 |
|
MD5 | 50ee33b4b027df2b3c777a7d7f5310b0 |
|
BLAKE2b-256 | 344d207c86e16c217b8842ea1e997652456b11792af8dd4d4714de44478280c2 |
Hashes for sbp-2.6.0-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fd2c0e3f8d9af28105767b176dcfe93937575e240508eac0049ea8ebb4214ad |
|
MD5 | 1312cda8cb222846392fb1d666a839d9 |
|
BLAKE2b-256 | ee7cc04504c2c5cd0326d2d88014b54d3ce69bedeb82d2386c321b36159ab06e |
Hashes for sbp-2.6.0-cp27-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e760257e0e393aaa3a8108c3387b75df2a9aca5a9c6f3980d02acb389fa871c |
|
MD5 | 980442332cbffe3fc7972040e82f57ea |
|
BLAKE2b-256 | b85f9ae99c1a63cd39b6d5e058de20791705a3f74aa4b028e6c61fc8ff7d54a5 |
Hashes for sbp-2.6.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f990406ce8f479b2e287682701401152afa8cad9893b74b27da8bb81366019e2 |
|
MD5 | 9abf38091f485ec6e4129de649f1510f |
|
BLAKE2b-256 | 52cc6ddc0fd2f54c47446e1fdfbff310641758a9d37e4be52daec4f50eecbb42 |
Hashes for sbp-2.6.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35967353223940add4dec09a5245a9952666d169c03ae1d7330e86f577f48e48 |
|
MD5 | 0e86d61fad9a447c8df810ee95e46e5d |
|
BLAKE2b-256 | e3a324c63566b1d2868e48829a08013b7e56bcffa33e4f3afd5bec09951d5bd0 |
Hashes for sbp-2.6.0-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f15642379f040b60a6b20c31a5398a5939038c6bd9fe9e27d7028ffb3f918c2b |
|
MD5 | 4814879a950ef49ce6d5cadd0bda5c21 |
|
BLAKE2b-256 | 5343966a1281d5583dca86a7d4b1202e2812416fa0144841210e2dc6d8b3118a |