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.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6a58e7c2179569900f2ce91139b8293f0d01fea0efd1fdc5d489fd2057695b9 |
|
MD5 | 59002041f13d94623a48db7ffe91d6b6 |
|
BLAKE2b-256 | f30a2a2e1d7d943dc36f544650d0a361a102fd703be86e7b65c61d5e405bda0b |
Hashes for sbp-2.6.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 236c1c3f5d20e414200b79d556d282fba92170528862ba2b03c36141130f704c |
|
MD5 | 3ec8dc7610ec2cde44491e8f4255e3a0 |
|
BLAKE2b-256 | 7429e60ce6fdb2138bed31c85d1037c97fd3306c3829c59dfd289923c17ba911 |
Hashes for sbp-2.6.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e23b4b0eb4b782169f1b0b718076fcfb9a1a41441e0f69554416ea70056e482 |
|
MD5 | 10ed646317de2755bdd1d9bccc9cc5b0 |
|
BLAKE2b-256 | 16ab44c63173d76e9d24b066688921d050ecdb3d9aa588cf5b9a86f74b2d83d9 |
Hashes for sbp-2.6.3-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f74ca95ebae268790a187512c77c5e9fed06c999a789edfff46d49eaf5726d |
|
MD5 | 6d4461f0af4578b9898ccbc9567bd196 |
|
BLAKE2b-256 | a89ef83dd02868033bbd768a01f1f5dd862d269e12a6b71be78b97e1edceae3e |
Hashes for sbp-2.6.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e8228f6de19cb8ba81366e318017f6df267daab079c61a0889542c1577e1d03 |
|
MD5 | 2bf676fd34c9528c4484be6fbdd97a23 |
|
BLAKE2b-256 | ee9c39031f91d72ec486659cf38dca74946c7f2245ee3dc7d945e6c922fd7fba |
Hashes for sbp-2.6.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bf8b606718476e7321a0496a1e62e7e5653761b30f1fc5ebe49080ecb61e62 |
|
MD5 | 0ffeab3423909d7dc9e8be4b93f7ffd2 |
|
BLAKE2b-256 | f42a9b1d23238845b3bca67abc3953a4bc271aa2c8c146e13a094fc42faa77fa |
Hashes for sbp-2.6.3-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a0b40bef131646f7028182715739e05a006602ce148136c6710456738217c3 |
|
MD5 | 71779eea87cf985a6a17688a122f5c74 |
|
BLAKE2b-256 | 2ae6fe4c70233dc096ab57fec6a92e3dd2cb496ed9db73179e79cddf29bd55af |
Hashes for sbp-2.6.3-cp27-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c6f80c34799a8fba2c756d669ee31124c24d76aee313e012a03772e832de7bb |
|
MD5 | a9bd37031792dd207116fe1c016160b5 |
|
BLAKE2b-256 | 8379a1aef1d97806d521a5909d701aba824178d4fea92ecc6cd2125c4230d326 |
Hashes for sbp-2.6.3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd319d57e2c1b7f094658ac13fa683f2a1b9dd78cd39c3e42013c9d5f9337323 |
|
MD5 | 2fc1b022decf471caef757d18cf7b0ff |
|
BLAKE2b-256 | e0fbce95e2822eb035c2c1ebd621b96b3bcfd63a13c48015349d62d091cb8bda |
Hashes for sbp-2.6.3-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f5f98254799f06671c9e85450a5271bfe1b4f3279f2d2e542000846886c310 |
|
MD5 | 3fa869f49ecb8349fbfef6b6f9d6409b |
|
BLAKE2b-256 | 44d48d32fd5c0e0a4c0ab3f7e2661dc2297f47bb581a76bcfcd78ddb3c1eadd7 |
Hashes for sbp-2.6.3-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e948a2d575b9339339bab97d318ca16b24e0b2e041afc1cc20652e522ef0fb8a |
|
MD5 | c8c56ccc413d84f425e0d6a2fef0e813 |
|
BLAKE2b-256 | f2e7ebe1f2dc1e9d4ac4c4ba4732fbbab54d9441c566e6d8af89b32db779f9ce |