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

2.7.5

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

Uploaded Python 2Python 3

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

Uploaded CPython 3.7m

sbp-2.7.5-cp37-cp37m-linux_armv7l.whl (426.3 kB view details)

Uploaded CPython 3.7m

sbp-2.7.5-cp36-cp36m-manylinux1_x86_64.whl (257.1 kB view details)

Uploaded CPython 3.6m

sbp-2.7.5-cp36-cp36m-linux_armv7l.whl (424.7 kB view details)

Uploaded CPython 3.6m

sbp-2.7.5-cp35-cp35m-manylinux1_x86_64.whl (257.1 kB view details)

Uploaded CPython 3.5m

sbp-2.7.5-cp35-cp35m-linux_armv7l.whl (424.4 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: sbp-2.7.5-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.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9b0ef031a19405c3086ae86d1dc49ddab4aa9f2f2218401faeb31217615a5dd
MD5 239897d8714ad363dfae679208517878
BLAKE2b-256 195c37b6c1c425a33ca0c7826f17bf1c1946dd70dabc163347346e4158dabebb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.5-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.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 749625917bcdb139a55543bb4dbce964333d558bbfdaf5e604ee79d7d550bff0
MD5 a3ce37f09425d0e7e431f61dae0a0759
BLAKE2b-256 fd49d89793804675b8b77f71789004b7f422e4bff91cad49e6ae6ca45ea63aa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.5-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 426.3 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.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for sbp-2.7.5-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 e1898be7058bdb43be989e53d274763e37480c78c8a52c95ce0df1f35d877811
MD5 b126d116d93eb5cbc997d359cb2f94c7
BLAKE2b-256 f3c815e0aad89832f885623be3583d2155f507be3d13ec0b06031815413ab916

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.5-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 257.1 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.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 251dedb6255371e41761fe116bde996c4d323caaac96b00693c2e7dc88bed3ea
MD5 e37879f6632a84c4eb99a04fc0298605
BLAKE2b-256 4d2c3d7ee17c210d6cc87d56b97cc3832f56c129bb5c296d4b7efe4e273c63f2

See more details on using hashes here.

File details

Details for the file sbp-2.7.5-cp36-cp36m-linux_armv7l.whl.

File metadata

  • Download URL: sbp-2.7.5-cp36-cp36m-linux_armv7l.whl
  • Upload date:
  • Size: 424.7 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.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for sbp-2.7.5-cp36-cp36m-linux_armv7l.whl
Algorithm Hash digest
SHA256 6284273413fbdf67f3719c56e267bd7afa1d044f057e5bf0976f7e770364e0c0
MD5 097cf84b7b83538bceac500ca18c81f6
BLAKE2b-256 eb298a89bebe0e1bf7aff27607426e5a7e29de470781129fecdc235aa8e703c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.5-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 257.1 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.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dda77ab583ead9775cacbbae14e78ddcd75df6a8ad8485ccf0272aab582fdb84
MD5 42b714a1f4b894c6314f7df41a80df35
BLAKE2b-256 b04a84897d39a143a1c049c25d30369d04723c1c6c7be84fc95e810074445279

See more details on using hashes here.

File details

Details for the file sbp-2.7.5-cp35-cp35m-linux_armv7l.whl.

File metadata

  • Download URL: sbp-2.7.5-cp35-cp35m-linux_armv7l.whl
  • Upload date:
  • Size: 424.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/45.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.5.7

File hashes

Hashes for sbp-2.7.5-cp35-cp35m-linux_armv7l.whl
Algorithm Hash digest
SHA256 3b8e75ddb1a83d2fdd70988e0489cb1983dc2c9004719d513fadf0336b364fac
MD5 ba116b27022a5509855e9777b102543a
BLAKE2b-256 1377a96579edd070b1eccf42fc6d9a0941dcfed107ff70fc6a1b6d8a253f8781

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