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 Distribution

sbp-2.7.3.tar.gz (304.6 kB view details)

Uploaded Source

Built Distributions

sbp-2.7.3-py2.py3-none-any.whl (127.0 kB view details)

Uploaded Python 2Python 3

sbp-2.7.3-cp37-cp37m-win_amd64.whl (219.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-2.7.3-cp37-cp37m-win32.whl (219.1 kB view details)

Uploaded CPython 3.7mWindows x86

sbp-2.7.3-cp37-cp37m-manylinux1_x86_64.whl (252.9 kB view details)

Uploaded CPython 3.7m

sbp-2.7.3-cp37-cp37m-macosx_10_7_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

sbp-2.7.3-cp37-cp37m-linux_armv7l.whl (422.1 kB view details)

Uploaded CPython 3.7m

sbp-2.7.3-cp36-cp36m-win_amd64.whl (219.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

sbp-2.7.3-cp36-cp36m-win32.whl (219.1 kB view details)

Uploaded CPython 3.6mWindows x86

sbp-2.7.3-cp36-cp36m-manylinux1_x86_64.whl (252.8 kB view details)

Uploaded CPython 3.6m

sbp-2.7.3-cp36-cp36m-macosx_10_7_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

sbp-2.7.3-cp36-cp36m-linux_armv7l.whl (420.5 kB view details)

Uploaded CPython 3.6m

sbp-2.7.3-cp35-cp35m-win_amd64.whl (222.2 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-2.7.3-cp35-cp35m-win32.whl (221.4 kB view details)

Uploaded CPython 3.5mWindows x86

sbp-2.7.3-cp35-cp35m-manylinux1_x86_64.whl (252.9 kB view details)

Uploaded CPython 3.5m

sbp-2.7.3-cp35-cp35m-macosx_10_6_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sbp-2.7.3-cp35-cp35m-linux_armv7l.whl (420.1 kB view details)

Uploaded CPython 3.5m

sbp-2.7.3-cp34-cp34m-linux_armv7l.whl (419.7 kB view details)

Uploaded CPython 3.4m

File details

Details for the file sbp-2.7.3.tar.gz.

File metadata

  • Download URL: sbp-2.7.3.tar.gz
  • Upload date:
  • Size: 304.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for sbp-2.7.3.tar.gz
Algorithm Hash digest
SHA256 61ab216e18a940f7e31d78a6daffbef2b1496c99914c34ca9186a67990178c14
MD5 16e069941762b524a08bf5d40d939970
BLAKE2b-256 c993f14fd2584e0ac223f4158ba9e96805af148119ed277a9bdbfa017ae6b9ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 127.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for sbp-2.7.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b47610c8e82a475667b271a452df740096710df43e5cdf4fc10902f1570a77e6
MD5 24a19678862a1d62d01fa7acc9b69b0a
BLAKE2b-256 a51d76a431c73d52eae2bdfff174e7b8aadd23f6d183471ccd5a81828ebdd609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 219.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for sbp-2.7.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f4b73bc4308c3ea840837425509e2587f96ada40d68432a5a234e6ec74bc133f
MD5 b87685e24f470d9cca67d7ddbffa3ff2
BLAKE2b-256 cb59aadfdad5ff4d758be5ec8670b3f430e816e10a891e4015e58a48e4088cd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 219.1 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for sbp-2.7.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d051c53ce93a3be14531a059beae16ef4090b36508d0496435cfb079d5854cea
MD5 51e6bdd0dc59a11abdf9bfbe4b427d55
BLAKE2b-256 1bec5c4146072a8ef54f1a9163fb4fc6381705af79327bb2780b156126c602d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 252.9 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for sbp-2.7.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3ad2029037f7fd3e5484450e37bb1c200101b2946d11542807af9d50a3f023d4
MD5 0d629b174ef78f1a6d92f286e5c2a898
BLAKE2b-256 b9de8ec6f3ec872c0caafb1f5780088cb577cdbcc7575c952d66e1ba92a67de5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 269.0 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for sbp-2.7.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3086128d024c6e7a16b733b7e3842c2a5767245c35883b64e470a942df4cf1df
MD5 5a97baaec29eb4e777f6349c0c69c935
BLAKE2b-256 d85c2329e567d624ae4a231784cd7c77cc4a328a337f67f9326e1a4fde8f8581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 422.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for sbp-2.7.3-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 4a9d7711dcefa043156e7dfdcc74174160d43259433ce404415d297ec35f6f3c
MD5 81ca469389c4405f0c4b8ff97766557e
BLAKE2b-256 b8cabf8f1bddf3feba596ef9dc0f0f9b27f2d2a416b454beb60cf86b236d3ae3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 219.9 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for sbp-2.7.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4433a3e4813eddc3e26a321829f0ca8f63ebf1c6e21652cc7bc1007dd8266870
MD5 9b816f1f4bf76820a8516ffea776b3ec
BLAKE2b-256 0874cf21bb819706e68859222fdf2e0435c826db657a7b9f617ff4653f9cae6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 219.1 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for sbp-2.7.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 9a0f58ceda0d2660966caeb8e5fcc5898adfc9ddff59daba39b65e6afc9dbf9f
MD5 677c97eb4c2328b540ece476f929bd16
BLAKE2b-256 8e6edf4c438f4d4038cab1e6ae75cd972b14b3746bc076e0870ef90ed4869f11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 252.8 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for sbp-2.7.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e187697f6a5c19c7824d183c1c8aa4db481ded6fa8256f61b628f8db90c668e0
MD5 729f7f3d5ca4878939acd44f47fad7b8
BLAKE2b-256 e1b9400abbe2cad57243465045906e86f419b6dd205ce112a18ced413b0ae11b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 269.0 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for sbp-2.7.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b49c2aa269e67ddef5324f40b3d3b49af712cfcb97d0ac11718a6cf0d35d964f
MD5 e44951a7b4e9768c27818d759099dfd9
BLAKE2b-256 e54ac1dd516fbec83046c14b55edc7ed2a67693c449c7fb8922ca77fddf14750

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp36-cp36m-linux_armv7l.whl
  • Upload date:
  • Size: 420.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8

File hashes

Hashes for sbp-2.7.3-cp36-cp36m-linux_armv7l.whl
Algorithm Hash digest
SHA256 bab8787cf213b574aa2bfd7fb4a89f1c589f4a6b338b69335d221867c0837dd3
MD5 afbafea37779acaafd62c681e6841b96
BLAKE2b-256 d16dba8f0aa609033efdafb267307336294bf3cd7b7d1f2dc5dd2454da309bd0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-2.7.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 1414da7d398d11e2a12d54aa1197a52bad59ce4d2b524a1ffcbd33e1610b8a0d
MD5 2cef6393a76dd3c0a9061e8e3605c8a6
BLAKE2b-256 9fef48fd3313a436b79bb9f27e4ccd7cf0c92e4c8680cbe1ef1fea4902b297bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 221.4 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.38.0 CPython/3.5.6

File hashes

Hashes for sbp-2.7.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 94be640e76fff204dc49a0418c141b6323a6dcbf434713245b8890cd7ee889d7
MD5 5497aad6c1dcc49fd01d3794f20bdc19
BLAKE2b-256 54ad3dd411eaf22e43846031fb82038d99378124ae60c66221263e0c75612419

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-2.7.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b437243e14a4ede948e1bc264ddf1f30246abfd8076c4c4a424c5babc9ca463c
MD5 722b8542a599e0ead13445a11e9d1eaf
BLAKE2b-256 9139abf989c426be7015e9a33a75ce54ce8f364e0112aef9578fec0fe7b20c0e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-2.7.3-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 e69b9504a97ca434f33f34e5aeb54e3c53a1d546a4f5981f9042a34f751be778
MD5 24417ac64e1b9e63651032e551411d7c
BLAKE2b-256 6de14610d4a8b0f124b992c085700722de33722e9c0d4372c0d7ef962cbc9c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp35-cp35m-linux_armv7l.whl
  • Upload date:
  • Size: 420.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.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.7

File hashes

Hashes for sbp-2.7.3-cp35-cp35m-linux_armv7l.whl
Algorithm Hash digest
SHA256 b9176e8087f2010977e8e0250e98f92ac94627c66ef8e768e007c16976b3a088
MD5 5be721994b7682943800c96826801e6e
BLAKE2b-256 81bcb13d2ea131bac92da7c3f4ce9647b34b0151186d87f93fc32916cedb7506

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.7.3-cp34-cp34m-linux_armv7l.whl
  • Upload date:
  • Size: 419.7 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.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.4.10

File hashes

Hashes for sbp-2.7.3-cp34-cp34m-linux_armv7l.whl
Algorithm Hash digest
SHA256 566e6b317b56f10f04425209d5ffc71f7b41dfea762d4ad0a03c5b57497eb537
MD5 d95c744e5bc25bf0a09b12315304f35d
BLAKE2b-256 bdac4ab386c2e9438f9b0ddb94cd4e48026d3d93b4ff6113fc4bffc7d55048a7

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