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.5.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12afead20b2cd961b6bb59e0378d5aea19df6c1888950fc6ccaad24e5ebe0086 |
|
MD5 | 4738fe9705b9b9c221c8fdc8ed4ca0a2 |
|
BLAKE2b-256 | 4b2e5fb4f58533317b737f1240939029054c0a80e2a02f126fb6b920adbbab65 |
Hashes for sbp-2.5.6-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c08de800c5a73671ad5cccd4928edafa75d01560005b14fa8dc8d0fab57d91 |
|
MD5 | 037dc2c0c29bfd6518869835d819ec75 |
|
BLAKE2b-256 | 7abd25dd384c2b6dc51fd51cc7485448bf1a8e012bc1b05b95ffe08212802501 |
Hashes for sbp-2.5.6-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0e0673f6ce6be0fd01103716a57eac924823e38884b2b1cf67095dfc241116 |
|
MD5 | 3f9bd275082fceb6578f238c782b0ab6 |
|
BLAKE2b-256 | 45a2210c46cb2c97684e7f0c05457b17b19d106ab12c705ca9009bd69e952a83 |