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

Uploaded Python 2Python 3

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

Uploaded CPython 3.7m

sbp-2.7.1-cp37-cp37m-macosx_10_9_x86_64.whl (268.7 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

sbp-2.7.1-cp37-cp37m-linux_armv7l.whl (421.6 kB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m

sbp-2.7.1-cp36-cp36m-macosx_10_7_x86_64.whl (268.7 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

sbp-2.7.1-cp36-cp36m-linux_armv7l.whl (420.0 kB view details)

Uploaded CPython 3.6m

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

Uploaded CPython 3.5m

sbp-2.7.1-cp35-cp35m-macosx_10_6_x86_64.whl (268.8 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sbp-2.7.1-cp35-cp35m-linux_armv7l.whl (419.7 kB view details)

Uploaded CPython 3.5m

sbp-2.7.1-cp34-cp34m-linux_armv7l.whl (419.3 kB view details)

Uploaded CPython 3.4m

File details

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

File metadata

  • Download URL: sbp-2.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 126.7 kB
  • Tags: Python 2, Python 3
  • 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.36.1 CPython/3.7.4

File hashes

Hashes for sbp-2.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7206c5b58a94cf6262bdca3509e5402e9c71a1bcad06cb550062eefee23e94b0
MD5 ca27c3c008f6f80394c8477db95d9749
BLAKE2b-256 bbb0476df052822e77aaac05075fe10218cfd82ea9f5fc65407f877b2cd0c2c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.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/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for sbp-2.7.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 43d4f882b6e5e3470424f5023c95630746ca6690a1151a4a5a03a8867c87d8e2
MD5 a0bfa1d40e6fcbe4c5e6c073326df255
BLAKE2b-256 f11eacfe21034f9f476376abe5f545bb0cf83973585b3cab2a4dbeaa77f77881

See more details on using hashes here.

File details

Details for the file sbp-2.7.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: sbp-2.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 268.7 kB
  • Tags: CPython 3.7m, macOS 10.9+ 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.36.1 CPython/3.7.4

File hashes

Hashes for sbp-2.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e03112280a3a53f3ba1da763d640371089399c0fbeea48b12cda9d504092ad7f
MD5 f5eed8775e49a10f413e69e2eed9f153
BLAKE2b-256 e80d7bac53ba478b7ef871c75088f4f33b6c7952a0e90bf2d9ad4f9fcf1ea0ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.1-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 421.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for sbp-2.7.1-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 25261f4634187ebd8f660113da4c9bf25fc7a56efcb14ec78a19bdec8964b4c8
MD5 7788a8c05cbc3f79b2e0e92bbb0b477a
BLAKE2b-256 558c52ec621f5e0470e8383741520b90d2424b4daabf60c1a164faf8b6227cf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.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/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for sbp-2.7.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 914626d6fd64f58635f9baeed15a4f24fd19d4f7d8924a4703add8a879cfc0cc
MD5 14e5165c0abef461d00ad539b24fcc64
BLAKE2b-256 619f8f50488dde236f30b9627de0d93a12a9bb409c16a12bbf5bef760af9d3b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.1-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 268.7 kB
  • Tags: CPython 3.6m, 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.36.1 CPython/3.6.9

File hashes

Hashes for sbp-2.7.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ce71538144c24450dbd4c7ab8e1730e6e05eaf6818a5dea3e736acd91f6ef7d5
MD5 131985fa9e01c0534b6103936fb1845d
BLAKE2b-256 3c85067c13fe167a5f2777f249a74860ece443e6a27c94a85d9927acda2b8463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.1-cp36-cp36m-linux_armv7l.whl
  • Upload date:
  • Size: 420.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for sbp-2.7.1-cp36-cp36m-linux_armv7l.whl
Algorithm Hash digest
SHA256 e8125139b4c1e0961050c8f3eea366c97376fa5a13d4d3c2cde10423c0ded698
MD5 cbb59d5a8dc395e6c0f22d9e29921335
BLAKE2b-256 e852d925fe307f5d3181c444de929f7f495b6a41e4bd953956f61787178cfdfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.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.36.1 CPython/3.5.6

File hashes

Hashes for sbp-2.7.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7ca46d8099eaff4105d6abc54eb1d43b88b6bf0c0f3aa4e9f95bd807a6d10cba
MD5 85b2404fc13ad61fad1de46eadb5c27b
BLAKE2b-256 93bb4447b4f9f0847b7f780573cc8034220a70a1650bb60dfa68ff4155753318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.1-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 268.8 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.36.1 CPython/3.5.6

File hashes

Hashes for sbp-2.7.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a9d886ff923570c3793d1769d6f35fd5e9f46ee94f5eb62b9b46a3caab2794bd
MD5 5c352bcc6ab64f7f9fce66c143da59e3
BLAKE2b-256 b4d97b1e23fe8c33045e2af1c1cc92d752e7b24c35e086af8361b99543a22ab5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.1-cp35-cp35m-linux_armv7l.whl
  • Upload date:
  • Size: 419.7 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.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.7

File hashes

Hashes for sbp-2.7.1-cp35-cp35m-linux_armv7l.whl
Algorithm Hash digest
SHA256 af54aa1b217239fc7da6b5c0d5c28c434ba5e7c2e6f4a5ba76353833d97fb20c
MD5 66ad8169fca3aebe031367e17d497978
BLAKE2b-256 2bfb8e0894e3dafdd19d132833a02079b99856c274fbcb344cb13b193ef50db9

See more details on using hashes here.

File details

Details for the file sbp-2.7.1-cp34-cp34m-linux_armv7l.whl.

File metadata

  • Download URL: sbp-2.7.1-cp34-cp34m-linux_armv7l.whl
  • Upload date:
  • Size: 419.3 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.4.10

File hashes

Hashes for sbp-2.7.1-cp34-cp34m-linux_armv7l.whl
Algorithm Hash digest
SHA256 31c126f124973da7b5e45a88cd77cf41504c71aa7c57388c06a3e3baf7e0fdfe
MD5 48748426937f3b5b3f4a54d0a2c77f67
BLAKE2b-256 e919af8cea5e49305d91043aaab7be7545bc97b899424ea4c237325789c6d04e

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