Skip to main content

Python bindings for Swift Binary Protocol

Project description

Python client for Swift Binary Protocol (SBP). Since v2.5 libsbp is compatible with Python 2.7, 3.4 to 3.7. For new projects, Python v3 is recommended.

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 | RSS feed

This version

3.1.1

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

sbp-3.1.1-py2.py3-none-any.whl (131.4 kB view details)

Uploaded Python 2Python 3

sbp-3.1.1-cp38-cp38-win_amd64.whl (223.8 kB view details)

Uploaded CPython 3.8Windows x86-64

sbp-3.1.1-cp38-cp38-manylinux1_x86_64.whl (252.6 kB view details)

Uploaded CPython 3.8

sbp-3.1.1-cp38-cp38-macosx_10_13_x86_64.whl (275.6 kB view details)

Uploaded CPython 3.8macOS 10.13+ x86-64

sbp-3.1.1-cp37-cp37m-win_amd64.whl (223.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-3.1.1-cp37-cp37m-manylinux1_x86_64.whl (252.4 kB view details)

Uploaded CPython 3.7m

sbp-3.1.1-cp37-cp37m-macosx_10_13_x86_64.whl (275.5 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

sbp-3.1.1-cp36-cp36m-win_amd64.whl (223.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

sbp-3.1.1-cp36-cp36m-manylinux1_x86_64.whl (252.4 kB view details)

Uploaded CPython 3.6m

sbp-3.1.1-cp36-cp36m-macosx_10_13_x86_64.whl (275.5 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

sbp-3.1.1-cp35-cp35m-win_amd64.whl (225.9 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-3.1.1-cp35-cp35m-manylinux1_x86_64.whl (252.4 kB view details)

Uploaded CPython 3.5m

sbp-3.1.1-cp35-cp35m-macosx_10_6_x86_64.whl (275.5 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

File details

Details for the file sbp-3.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: sbp-3.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 131.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for sbp-3.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cd799c62f1d0cfc27c4686eb5b1098ef315a95891bc02e9ef5f3b3f4b8b7667c
MD5 3abdc9b4ade1c41d3b431d1c5a0b0073
BLAKE2b-256 fac4f85f841db74b0e5ff2bc816820452b1ad34e22ab691e8248d50984d146bf

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 223.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for sbp-3.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a0bbb9cb491abaac3d9a1bb739331d11ded8eb81439644b75dab46751e41987d
MD5 dcda3eee0134d22247d4ce8bc94b4ee5
BLAKE2b-256 446ce62b89a71c8cc067d79d3f289a7bd75a5dc8340753985e0d4c018a33cbed

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 252.6 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for sbp-3.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a7babfacdbcc80bcd61ca11b1d80ccf243a86f150959a6d30897b11ce25b6fb2
MD5 f551cceb78cc537422e5e6a2025abe41
BLAKE2b-256 b7b622c05f9addc234ed827c56a7f8045e2a89ce98b2b74b21b018af1f0ea100

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 275.6 kB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for sbp-3.1.1-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 42a4e4cc75480e5e40952ee72b07b0cdd952bab76a837ce7f6158f6dcb0124ea
MD5 450b2fc758d81666ad41bfceed64d95a
BLAKE2b-256 1d5182a2c46b49e2fd37466f01df34f251fc12ecbdd9ac455a633240e0b9b046

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 223.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for sbp-3.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e9def06a5beab05d7950c6f49415a2cc6612d0ddc1f65cd3116777be589ee7c8
MD5 a612986d6658b38088929843b735fed4
BLAKE2b-256 25ad5b68e4df377ec13bbb0703a94ff9cbbbc5e8415d6c0affe9b3b1dde00d57

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 252.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for sbp-3.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f2b5e025048f79f72725f57e9818cf26d1c4f16b42395ff7b803fcfeb079616c
MD5 fa5c213da6c984c17391f8d2b9f19832
BLAKE2b-256 48bcf69c4390dba87a8d188a043957e140361fdcb18f474e0ebd4cd510ef952d

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 275.5 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for sbp-3.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 1deaebf43dcee494b8fb979f1574b504b727535415b3bf21294399b7429bbf87
MD5 0d32bbb7658501f09616311c727e08cc
BLAKE2b-256 cad9c0ae824cf4da648353f4f9ea38449c5f66934ef1aa2cfcb2068d311e2d17

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 223.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for sbp-3.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 458c26401b3f198b9f55019b0dcf82036bd7b120f8eb01050f66ab2d642bc7b8
MD5 bc8144efbe972e94b9ab84387bfba852
BLAKE2b-256 18ac7da443842ba439c237faa26adc7a574a372e1ffeb4b7ee5fa41d817ac9aa

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 252.4 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for sbp-3.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6db110f9a9a3a2fee006c7824d1a1eb58f2640a6be7e5b7d64b3feefbaff31f2
MD5 122354d078b0f0a0a8ae5201aa90b218
BLAKE2b-256 aa7ecbd96b6ee3ee1a29a0f4ed6f9a956e559f82cc8a2bfa80bc2a4d71ef7227

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 275.5 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for sbp-3.1.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a9ffb4a5f53462df3b735586cfeb5e234e17818cd44ec1fc4b02e3bab1ecff39
MD5 70756949502a8f8039d91445731c58ed
BLAKE2b-256 99897696f10869b387c992899263b02f3a1931d9381bab4aec33fa367269fd48

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 225.9 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.6

File hashes

Hashes for sbp-3.1.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 55369042e1acf778406a3689214763d886ecaef6c5ae04870e292e686666adb9
MD5 8c4980f6a582bb80a4c0a9acef9f7e54
BLAKE2b-256 13dec2a4408a9ba099c1ae7daf0777e58ed29f16c509709697bd1fb97751ec3f

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 252.4 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.6

File hashes

Hashes for sbp-3.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 df431d1a2214f4f699850cbd20ec68a343105ffebd1f11de96662a79ea1dfbce
MD5 f778d1092e7de649efe976783290496f
BLAKE2b-256 db6d5d9bdff6242e992e0c3b1cf01105236380a342ac7fd8e072047f5e62bbdf

See more details on using hashes here.

File details

Details for the file sbp-3.1.1-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sbp-3.1.1-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 275.5 kB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.6

File hashes

Hashes for sbp-3.1.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 960ee4fcc75f0056ecf187d65743ad42c67d18beaeed3f4a6a2bdaf0273d3101
MD5 45c192e209bd4604b919c78ba09c6e53
BLAKE2b-256 e1d897215fe33e48ee37056e69aa20ce002f2311b252a73728568888c3c9a33b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page