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.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e174fe017807996140616f05120b7f7a2b1a50957a6739504b09a03b97dad932 |
|
MD5 | c4142fc2543f9849c537da8ee889f0bb |
|
BLAKE2b-256 | 00c144e870c5bfd62ed0779048ba2fa1673c8eae6dc71206a0f1c86c491e61f3 |
Hashes for sbp-2.6.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb05d6707bb341ff35ed30b93223df654584f72cc75660480b10d985621cf75 |
|
MD5 | 2e631372e2f753f0df93ac30e6a9e515 |
|
BLAKE2b-256 | af425f3269cb357d748e409a4d385bc4e852574dba0cb5a5e99a24316eaa436a |
Hashes for sbp-2.6.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c1556343de90f6848e368203c5edf36a435cbe0abb7b15139d0500767f81ea7 |
|
MD5 | c4e8589c6d39ad41c5c964bfcae2e9c7 |
|
BLAKE2b-256 | b3cfe020dc740dbad494b0892cb261785212b5cd960196213eca3b94f43d026e |
Hashes for sbp-2.6.1-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c27133132ed39a412545f62a341de9311a753dc363fa0e84dc661afc56c356 |
|
MD5 | 8198c670898bd017c688dd5095746de1 |
|
BLAKE2b-256 | 6150302137b747ff769eacc1ee49810e33b88f5f8bc0f0ac20d0adba626b16e0 |
Hashes for sbp-2.6.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b7a33dce8a76d7e01acbd9c14ff1b888bfa545c628f0e19498464821b63567 |
|
MD5 | 382ef40588cfec4c5824ae870109d01c |
|
BLAKE2b-256 | e528f279b2d416c0f2e8dc03a8ecd4c56d2ddd02832e2d8f9277e86f170f0157 |
Hashes for sbp-2.6.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215d1b8b071a9db54b43f1123f7063a815f0a0c6a219ec78b7dacb1d5fe05eff |
|
MD5 | 34820f3478a7e17b48f1a224e736cd42 |
|
BLAKE2b-256 | 7ac54b43292dc345b024299d309c51a997d5d13c4ffcccb687f5d1ec26da9ac0 |
Hashes for sbp-2.6.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64ee57c1744405fd237fa10424a45a99143c826bbbebea26d91ee2ff559c672a |
|
MD5 | d39a2f9866f737760cbc665507f18d82 |
|
BLAKE2b-256 | 699fef15297189b084d5ded9357b556e9bec551bff7a5f83afac68cbd2c6f9bb |
Hashes for sbp-2.6.1-cp27-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d743f136bff606faae31c8b900380c4f12bbccffd141ecc8e4189be3e75cfcbb |
|
MD5 | e369cc20a71923458e9b37349377c1e5 |
|
BLAKE2b-256 | 920d3a85b2997ff1ef10cc295bde612bc4c46488b3d80426e0a8c533398723d9 |
Hashes for sbp-2.6.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a192e39f14693ea8b78a7a64e6b3974f2aa6b3eb5e32078fac8ee20dd59777 |
|
MD5 | 905a2ecb4686fe52d249d150019a2022 |
|
BLAKE2b-256 | 234eef86c378d9630d082ef8ee09ab1f2d4df886707d4a878db5dc647fd0e931 |
Hashes for sbp-2.6.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f726b11170497241960d42ad7249dc0f7657cc00448ea3830f53c6fbcb558173 |
|
MD5 | 2fec65df492eae6fca5d489cd1072df1 |
|
BLAKE2b-256 | 6cc13791cf1a8893a87523bea406b7cd87063ecbb57f88cff86d13f933b076e2 |
Hashes for sbp-2.6.1-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c46ebdf3c2b24af19666b599695fd14cab0a81ba71e75d868f82a87b3ccbe7f |
|
MD5 | e5d0a057aa4cd0090a4bfbd5626ce7ea |
|
BLAKE2b-256 | 27f1a37a215dad4725377bfb21e79469d54572c60d0fb491c459b223ef74882b |