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.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee2ad432072cad1934f5fcd2df5448b7225906a4c9fd54cf190ce9b37b9b7196 |
|
MD5 | adc5ea7ed5cf8e718102837f15327580 |
|
BLAKE2b-256 | b0f57dbf5c89cc67b4278bec3a4019cf57a3690758759ffa9f8780443f695fc4 |
Hashes for sbp-2.6.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1878649f68fd953f0823433a0a760497f7f59169d55efdc4e70dba62cf8f71c |
|
MD5 | bcaffa029af38bba884265c4904286a1 |
|
BLAKE2b-256 | 745fe6b9b1ae79bc4e1735f06eb7ca5f0dfeab9f64957ba78a6d92b9752c54a9 |
Hashes for sbp-2.6.4-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226e1555484e015c82856853de4e16d5e4bd5e439cd06b4594d958589b3d670f |
|
MD5 | 07aa21173a136cc9f5e760ae63bbe891 |
|
BLAKE2b-256 | afacccd988d323ac31228eef92683724478074401aff0f7422f7699712552026 |
Hashes for sbp-2.6.4-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0149b47b9d3adc8eca65c72c29a55581554d979fe6ad31b5698d81ad7c41e426 |
|
MD5 | f64dc9b0fb852e2c85d874c8f12ea0b8 |
|
BLAKE2b-256 | 145a1e5af9b3bba7506a729992285b8680246cc59b28d8422ae4521a55796307 |
Hashes for sbp-2.6.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df7fff6e44b888d1f011db5655b6c45eca028d070ecee63bd00f21a85f2e0a3 |
|
MD5 | ac471928ffbc1e95f93f37a42a32ae2b |
|
BLAKE2b-256 | 98e3cc37f474ddd4a1ff468fc9adc5d4fa6765a8a1fd92cbe532cf2de4adf79d |
Hashes for sbp-2.6.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e22c67b8daad12bca62242c91076c0fae7f8068697bb49573da33ce9d6eb46c |
|
MD5 | 827edb06a0d1187a9f5b48c396ad55c6 |
|
BLAKE2b-256 | 63a1bf33221cd78e347a34c4c7a2f4a11481bc6edfeee9ed30a0362bfaacafe7 |
Hashes for sbp-2.6.4-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83b3bc63e6b50cf8ad722e1c175f91365193a4a28baf2f950e19e4b775a620b5 |
|
MD5 | 9d008a84f9a09b5edde235aabd0c6949 |
|
BLAKE2b-256 | 35acd40a483b3525dd1e95ac4559091b72ab8ae2d2a5ba46f8fec9a90fbfd804 |
Hashes for sbp-2.6.4-cp36-cp36m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a48b6edad13815bf720831206783d4ea6a7c95317804fd27828975ecdcba34c |
|
MD5 | 597ee5dd7a8894c010371007daec8a75 |
|
BLAKE2b-256 | ec82ed8d50fcd0abdc60eebcdca3ca7479556d900bb0965be8eafd0540944455 |
Hashes for sbp-2.6.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f010fa704bb7dcb979b6e61f86b7f825a9060f672f328996df294313d10b622a |
|
MD5 | d0f88d2a5894d2c934d059db5319dedf |
|
BLAKE2b-256 | 1458e96716478019134aed7ffae9bef315dccb01d9d968264a764058a8a8a751 |
Hashes for sbp-2.6.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1400a5253895b1881fd8f3a9ffb42d72d306667f61b3ebfc3a55b3922152970 |
|
MD5 | 1d44603f27937ad466f4c8c40763a089 |
|
BLAKE2b-256 | 5e0ec55816e7a4819e89574a40e37e6d1e446af1b3ecf6e52d0e0147dd8fa69b |
Hashes for sbp-2.6.4-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1a62a00dd8f99b768ca97d47166bef438a7c0c4096495dc6d8886f21ac40c5 |
|
MD5 | 4924f0756c8cdc25763b9708e233419d |
|
BLAKE2b-256 | 89a455a54b2f5ce3e5b02525a503ce0cd1644c61bbedb767363cf5cb8b9608c3 |
Hashes for sbp-2.6.4-cp35-cp35m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4cbc37d577b813dfdf5c01df3af3978fb2cd640964d650551ae0a8ea53f5002 |
|
MD5 | e05c44f0163ef89ad7df1297903807ce |
|
BLAKE2b-256 | fe1e6270cb82782b0313c41cc3f0885d1dd1d6200291dc467da69b65440e8d9d |
Hashes for sbp-2.6.4-cp34-cp34m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ea2091056216eaad43c5a7d4965345e00a109793cd8d7700fde199631ee516 |
|
MD5 | b28f7eed9d05c03cac936310323e3990 |
|
BLAKE2b-256 | 786086e655319cdb709f46fb7ba18ce5438ed960f0391ed88b991a532529b6d8 |
Hashes for sbp-2.6.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dea65e7e9ecfd22c6ed239099a5f5dcc1d831ea3b4b1844561db30f30b9d483f |
|
MD5 | 66f69627f4222f91f92cab1e7ace5b47 |
|
BLAKE2b-256 | e7519606a369e41a248029454bf65e2a1a5773f4f07db76da3e62b7c4cb0dfd8 |
Hashes for sbp-2.6.4-cp27-cp27mu-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c859f8d7f621e6aa8dbe3dd12aa6ee815fa743de3182be840efa0c7897f5b85a |
|
MD5 | 1625d32fd74f9d7bb12958cc53448902 |
|
BLAKE2b-256 | 7a991179d5410a4610a11e3484e884b6f1108a39d711ff742bb938393fd65b51 |
Hashes for sbp-2.6.4-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e39b6afeba79095d4520f56204a3d311f64d96692f7f96621d560d7610549b80 |
|
MD5 | e4bdd7be7066647a8451b68f855451b8 |
|
BLAKE2b-256 | 27370b225917aa779ff8f73ccf249a3930768b46235dee53a2e93c814029c9da |
Hashes for sbp-2.6.4-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9973bd21bbbdaf2b16d8ce4247e460554d023113a67496a71d7446f523177d3 |
|
MD5 | 4a08bcc24ba6221e5f5fd087155ae875 |
|
BLAKE2b-256 | 149dd06405e4184d4f819503c08b9d5987d3f0e43c6ffa39810698568de7d0d0 |
Hashes for sbp-2.6.4-cp27-cp27m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f380ec4fed396b7054e169217b8293e48b6d39e9458f8a40216b0d49e00876 |
|
MD5 | ffc2219582060a7d929756899fc67998 |
|
BLAKE2b-256 | 7eb6f401e2b10c596ffb7d44bf0a58891dbafbe1f33d785e66796f01e561d1d8 |