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

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-2.7.4-py2.py3-none-any.whl (130.1 kB view details)

Uploaded Python 2Python 3

sbp-2.7.4-cp37-cp37m-win_amd64.whl (224.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-2.7.4-cp37-cp37m-win32.whl (223.5 kB view details)

Uploaded CPython 3.7mWindows x86

sbp-2.7.4-cp37-cp37m-manylinux1_x86_64.whl (257.1 kB view details)

Uploaded CPython 3.7m

sbp-2.7.4-cp37-cp37m-macosx_10_13_x86_64.whl (273.7 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

sbp-2.7.4-cp36-cp36m-win_amd64.whl (224.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

sbp-2.7.4-cp36-cp36m-win32.whl (223.5 kB view details)

Uploaded CPython 3.6mWindows x86

sbp-2.7.4-cp36-cp36m-manylinux1_x86_64.whl (257.2 kB view details)

Uploaded CPython 3.6m

sbp-2.7.4-cp36-cp36m-macosx_10_7_x86_64.whl (275.5 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

sbp-2.7.4-cp35-cp35m-win_amd64.whl (226.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-2.7.4-cp35-cp35m-win32.whl (225.7 kB view details)

Uploaded CPython 3.5mWindows x86

sbp-2.7.4-cp35-cp35m-manylinux1_x86_64.whl (257.2 kB view details)

Uploaded CPython 3.5m

sbp-2.7.4-cp35-cp35m-macosx_10_7_x86_64.whl (275.5 kB view details)

Uploaded CPython 3.5mmacOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: sbp-2.7.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 130.1 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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for sbp-2.7.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2337c556a7252a2e643a316768ab21a04cd8e6918657eac205e278934b192fbd
MD5 5668d54f587865246ebe7b5556ac88cb
BLAKE2b-256 f164e8ba4f166b06d859f59c9d6dc83d469b189c2d1ec28a761c0a938e63f0d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 224.2 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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for sbp-2.7.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7ef647f0223fe6bfb9ed8b6dcc8ea5a9c9bc97bda05d7adedab0ab3286bf030f
MD5 2312b31b989fb16b210fae7f8436d840
BLAKE2b-256 258b4075cea5887396d13b922b74ec58d4991be10b6ba6cb4df65f44b8cb835f

See more details on using hashes here.

File details

Details for the file sbp-2.7.4-cp37-cp37m-win32.whl.

File metadata

  • Download URL: sbp-2.7.4-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 223.5 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for sbp-2.7.4-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 17862b152fa98b10a1638edb6607a49b83731f107680afdfce71a44978da9d19
MD5 686e4751bb451c38bf7ede689261fbc0
BLAKE2b-256 41e198e1c15ee69f6616dba4990982d7c3fda475a3df03cdfb54fad90fd449ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 257.1 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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for sbp-2.7.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fd34f69cca82c4d2cd449f07a27ffaecde014fb482c949438363a65552133f44
MD5 4380fae4502ce55ffd6c84b213e40f1c
BLAKE2b-256 67f038d0752758384a16623316cde47f68ac5ed7c9f1fdd053b7c7d1e540672e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 273.7 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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for sbp-2.7.4-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 bd7607a92f3270863251939f38164e3126d8606f86f29110cbf4fa36b095901c
MD5 1985e73d90e102816131f6297972069e
BLAKE2b-256 203a261ee068edfe1a8ca70cc6fb0964493d2f23abec97088a6379667e1a4d87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 224.2 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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for sbp-2.7.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 210b4b7c967d9cf99825cbdff8c46f5fb95110aa869654571bdbc7b4c9490df6
MD5 cc47fd98c7b1b7170e2c34931d13f0f1
BLAKE2b-256 9772a53c09895608a115781fdc4c4bf3a06c2f6aeb434059d8eb4adef47431e7

See more details on using hashes here.

File details

Details for the file sbp-2.7.4-cp36-cp36m-win32.whl.

File metadata

  • Download URL: sbp-2.7.4-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 223.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for sbp-2.7.4-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 5c4e8ef731be27899b7c1f395f2ff1ab99379b5bee161aa887d339a19cf87924
MD5 93d68ab12a5b0877a4464cfa6624696d
BLAKE2b-256 9b1dd174eaa20ab178951c550bfeac31aa85fdab220adc6f487e1542ab0e709b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 257.2 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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for sbp-2.7.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bbdb72f261f2947e416cc67e389da497773fe8dafded9ad1cb1b118f7343e539
MD5 5832d95896f7a5ca5ac19524859f5832
BLAKE2b-256 b9704ff903ad92034552392d8b71c90dbe0b3b3ce66632c6a5a068ad59b5543a

See more details on using hashes here.

File details

Details for the file sbp-2.7.4-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: sbp-2.7.4-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 275.5 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.2

File hashes

Hashes for sbp-2.7.4-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e4bc57c1a696e3a7324662bf9d8b0ff45b5aa178fc12e6b8f30e1063351470fa
MD5 627012a764e7510057f9ab24848ccbba
BLAKE2b-256 63d7bc33726b65e911d0b709fc61365bac8f1af48ffef9077ab4e47be77f6ee9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 226.6 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.43.0 CPython/3.5.6

File hashes

Hashes for sbp-2.7.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 c77a0deaabfe742d691302cf884bde58abd7cb1cf6e3465f9a7a8133e0604691
MD5 f65bf864375e6fff90cbbf3c4e70fb78
BLAKE2b-256 1060771656d5ae9465acdd5cbcb0031a70fa6b5545f8077d41c430ecd4c38e33

See more details on using hashes here.

File details

Details for the file sbp-2.7.4-cp35-cp35m-win32.whl.

File metadata

  • Download URL: sbp-2.7.4-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 225.7 kB
  • Tags: CPython 3.5m, Windows x86
  • 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.43.0 CPython/3.5.6

File hashes

Hashes for sbp-2.7.4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 4618229e6b409f9b7b7e7a280e5005ca689cbb81029dfe3117048b423cac6b70
MD5 7244cff02336f1e1e27cd5ce68a1b02f
BLAKE2b-256 ee3434b31643e4d1458b24a6c80c68e1e17573144dec51e87f97267ebac77132

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 257.2 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.43.0 CPython/3.5.6

File hashes

Hashes for sbp-2.7.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 14a43448015c49a27674f65ea6cef17fd85ff9e0c1772e665154bae9f13f847b
MD5 ca3cecd54034ac19b3af95b2b86d836a
BLAKE2b-256 f130f3c84fc60966398f5dd3d9c63022f14b30797586535a586e7cf3a4e0d154

See more details on using hashes here.

File details

Details for the file sbp-2.7.4-cp35-cp35m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: sbp-2.7.4-cp35-cp35m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 275.5 kB
  • Tags: CPython 3.5m, macOS 10.7+ 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.43.0 CPython/3.5.4

File hashes

Hashes for sbp-2.7.4-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 68588b73c5ea3ede5c71518ebbcfddf786a7a98679e7cdaf5dbf057ec458227c
MD5 58f099e378839103caec47aacb776e33
BLAKE2b-256 7d0d40795a632853d4cc1c55e64d27006e5482d37415bf6d7ff1533cf15dba50

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