Skip to main content

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.

Release history Release notifications

This version

2.6.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sbp, version 2.6.5
Filename, size & hash File type Python version Upload date
sbp-2.6.5-cp27-cp27m-linux_armv7l.whl (351.9 kB) View hashes Wheel cp27
sbp-2.6.5-cp27-cp27m-macosx_10_6_x86_64.whl (235.6 kB) View hashes Wheel cp27
sbp-2.6.5-cp27-cp27mu-linux_armv7l.whl (351.8 kB) View hashes Wheel cp27
sbp-2.6.5-cp27-cp27mu-manylinux1_x86_64.whl (216.7 kB) View hashes Wheel cp27
sbp-2.6.5-cp27-cp27m-win32.whl (228.1 kB) View hashes Wheel cp27
sbp-2.6.5-cp27-cp27m-win_amd64.whl (234.2 kB) View hashes Wheel cp27
sbp-2.6.5-cp34-cp34m-linux_armv7l.whl (354.8 kB) View hashes Wheel cp34
sbp-2.6.5-cp35-cp35m-linux_armv7l.whl (355.1 kB) View hashes Wheel cp35
sbp-2.6.5-cp35-cp35m-macosx_10_6_x86_64.whl (237.0 kB) View hashes Wheel cp35
sbp-2.6.5-cp35-cp35m-manylinux1_x86_64.whl (216.8 kB) View hashes Wheel cp35
sbp-2.6.5-cp35-cp35m-win32.whl (211.2 kB) View hashes Wheel cp35
sbp-2.6.5-cp35-cp35m-win_amd64.whl (211.9 kB) View hashes Wheel cp35
sbp-2.6.5-cp36-cp36m-linux_armv7l.whl (355.5 kB) View hashes Wheel cp36
sbp-2.6.5-cp36-cp36m-macosx_10_7_x86_64.whl (237.0 kB) View hashes Wheel cp36
sbp-2.6.5-cp36-cp36m-manylinux1_x86_64.whl (216.8 kB) View hashes Wheel cp36
sbp-2.6.5-cp36-cp36m-win32.whl (210.7 kB) View hashes Wheel cp36
sbp-2.6.5-cp36-cp36m-win_amd64.whl (211.3 kB) View hashes Wheel cp36
sbp-2.6.5-cp37-cp37m-linux_armv7l.whl (356.8 kB) View hashes Wheel cp37
sbp-2.6.5-cp37-cp37m-macosx_10_7_x86_64.whl (237.0 kB) View hashes Wheel cp37
sbp-2.6.5-cp37-cp37m-manylinux1_x86_64.whl (216.8 kB) View hashes Wheel cp37
sbp-2.6.5-cp37-cp37m-win32.whl (210.7 kB) View hashes Wheel cp37
sbp-2.6.5-cp37-cp37m-win_amd64.whl (211.3 kB) View hashes Wheel cp37
sbp-2.6.5-py2.py3-none-any.whl (193.1 kB) View hashes Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page