Skip to main content

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.

Release history Release notifications | RSS feed

This version

2.6.2

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

Uploaded Python 2Python 3

sbp-2.6.2-cp37-cp37m-win_amd64.whl (206.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-2.6.2-cp37-cp37m-manylinux1_x86_64.whl (211.6 kB view details)

Uploaded CPython 3.7m

sbp-2.6.2-cp37-cp37m-macosx_10_7_x86_64.whl (231.8 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

sbp-2.6.2-cp37-cp37m-linux_armv7l.whl (334.8 kB view details)

Uploaded CPython 3.7m

sbp-2.6.2-cp35-cp35m-win_amd64.whl (206.7 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-2.6.2-cp35-cp35m-manylinux1_x86_64.whl (211.6 kB view details)

Uploaded CPython 3.5m

sbp-2.6.2-cp35-cp35m-macosx_10_6_x86_64.whl (231.8 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sbp-2.6.2-cp27-none-linux_armv7l.whl (353.6 kB view details)

Uploaded CPython 2.7

sbp-2.6.2-cp27-cp27mu-manylinux1_x86_64.whl (211.5 kB view details)

Uploaded CPython 2.7mu

sbp-2.6.2-cp27-cp27m-win_amd64.whl (229.0 kB view details)

Uploaded CPython 2.7mWindows x86-64

sbp-2.6.2-cp27-cp27m-macosx_10_6_x86_64.whl (230.5 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sbp-2.6.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 190.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for sbp-2.6.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b67e98381095e13116805e5db9455feb1e2f65212fb15f5f568cd8915486e62a
MD5 6088c8cf01140f425e35813bb8730aaf
BLAKE2b-256 97fed64e07b9fdc2677e6ad7fa5cf9f4b63c19c315f7de5a814d7c2fa9ca2285

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 206.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for sbp-2.6.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3dcd1ae3e1adc6867bedcc1811caad3fe7852b435d7232b36176fb79aa8131e2
MD5 ad36ea056e65b284a1bbddafdc7b539f
BLAKE2b-256 5a6f2042d2bea53d982a4191a33c5ca5c4b927826db51b08b7981e2274bd2e87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for sbp-2.6.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 630411891c07cc3e21b515911ade83366447c0e67b7381bd39f5667c8f78f387
MD5 2fd9396f9f1b84676ef3e48bb0cb1c54
BLAKE2b-256 0e7b7f21d5ccead443b8968e89a4e69793061452ef1c3e73d2cc424eef738c57

See more details on using hashes here.

File details

Details for the file sbp-2.6.2-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: sbp-2.6.2-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 231.8 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for sbp-2.6.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 81c4da113673709b4683ac7ef394e807e739b9358a5c2dd88ab188930959ac44
MD5 8a28db4582d2a6f823343d39f6c16a93
BLAKE2b-256 59758dd2c72f8f4f57a7234887f622e8ce6b591b4ac1ac365ea13bb6ef4785c4

See more details on using hashes here.

File details

Details for the file sbp-2.6.2-cp37-cp37m-linux_armv7l.whl.

File metadata

  • Download URL: sbp-2.6.2-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 334.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for sbp-2.6.2-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 0103d5c0fc3894988709697e842cc64b3049ed20e4336e048810b7264bbad9c3
MD5 e698cb1713ac3533af3a54aea820398a
BLAKE2b-256 e90c32a598defecebdba4cc041436d95e6a72dbdc76a854ab8d2a7f4ef258d52

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-2.6.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 675184bb57537f31b7fbd207fdc25ed36e1733ac7c8be91a4e24646861c8c7be
MD5 d717e75ac12b8f9049ca284becffd235
BLAKE2b-256 914a9733c83c427dae77e06d5e2c66b6a3256a6cae6cff59af32a29b4f4e59cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.2-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.6

File hashes

Hashes for sbp-2.6.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e4673e68c9a616b20a1dcdcde6d450a715a31921c13b5579bbb49902529d6ab
MD5 a52bdccdc61aa4cb4f1440b779995c5d
BLAKE2b-256 62071d5a79b0c8e2c9686c630e147a79e5c0479396ac51a1954c33a2c7090354

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-2.6.2-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a85805d1ad24ee29772dc329440e59396ff63e7b433df2aa56a3160705e22065
MD5 c416cc2946a592a879dd745bb975df4c
BLAKE2b-256 5a4692cecb8c6c93e814cfee3e106237ca3677ea6e56e33a85d493c1c4662b68

See more details on using hashes here.

File details

Details for the file sbp-2.6.2-cp27-none-linux_armv7l.whl.

File metadata

  • Download URL: sbp-2.6.2-cp27-none-linux_armv7l.whl
  • Upload date:
  • Size: 353.6 kB
  • Tags: CPython 2.7
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.10

File hashes

Hashes for sbp-2.6.2-cp27-none-linux_armv7l.whl
Algorithm Hash digest
SHA256 b9950caba4379f09eb0d1ed713579b8f096ec0e1656133249ac16316d6325ed0
MD5 39af01ebb4bf6d7e0174e02fe92b2f11
BLAKE2b-256 4c9ab2e56e251f71d48b455182667318080b51373629a61044980b276f646d41

See more details on using hashes here.

File details

Details for the file sbp-2.6.2-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: sbp-2.6.2-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.5 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for sbp-2.6.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c471c1675bd4badc29b3d8fa367b9e4ee31fee96bf5fca860d03684079c1b4a3
MD5 97104c746868112b183c383d23d72ee0
BLAKE2b-256 5229f2e8d94bd6e3596fdc26058cf38c675efeed37654ac03a6d218a3de0e753

See more details on using hashes here.

File details

Details for the file sbp-2.6.2-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: sbp-2.6.2-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 229.0 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for sbp-2.6.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 3a062deb39e692540c0a4171d5f42377f204e65f29e3792705f6407a410c4926
MD5 efb238f0a14cdfcb3db79f4ede0def09
BLAKE2b-256 5beb6aa9513859fa01b77cbfa8296465bb573c79d009a3b97dcefbd1b3bbe6f5

See more details on using hashes here.

File details

Details for the file sbp-2.6.2-cp27-cp27m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sbp-2.6.2-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 230.5 kB
  • Tags: CPython 2.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for sbp-2.6.2-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a6e7e89797941cf10c07c7ce9f0f5b6976a487c9ee198f766634a933f76c516b
MD5 fc587af461a7bd543e08af42122c1c21
BLAKE2b-256 0c458e50e9a607415bfda0bc0c9c5e65e5de63676266aa7ef071b7f535b624e6

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