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.0

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

Uploaded Python 2Python 3

sbp-2.6.0-cp37-cp37m-win_amd64.whl (206.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-2.6.0-cp37-cp37m-win32.whl (205.4 kB view details)

Uploaded CPython 3.7mWindows x86

sbp-2.6.0-cp37-cp37m-manylinux1_x86_64.whl (211.5 kB view details)

Uploaded CPython 3.7m

sbp-2.6.0-cp37-cp37m-macosx_10_7_x86_64.whl (231.7 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

sbp-2.6.0-cp37-cp37m-linux_armv7l.whl (334.7 kB view details)

Uploaded CPython 3.7m

sbp-2.6.0-cp35-cp35m-win_amd64.whl (206.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-2.6.0-cp35-cp35m-win32.whl (205.8 kB view details)

Uploaded CPython 3.5mWindows x86

sbp-2.6.0-cp35-cp35m-manylinux1_x86_64.whl (211.5 kB view details)

Uploaded CPython 3.5m

sbp-2.6.0-cp35-cp35m-macosx_10_6_x86_64.whl (231.7 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sbp-2.6.0-cp27-none-linux_armv7l.whl (353.4 kB view details)

Uploaded CPython 2.7

sbp-2.6.0-cp27-cp27mu-manylinux1_x86_64.whl (211.4 kB view details)

Uploaded CPython 2.7mu

sbp-2.6.0-cp27-cp27m-win_amd64.whl (228.8 kB view details)

Uploaded CPython 2.7mWindows x86-64

sbp-2.6.0-cp27-cp27m-win32.whl (222.8 kB view details)

Uploaded CPython 2.7mWindows x86

sbp-2.6.0-cp27-cp27m-macosx_10_6_x86_64.whl (230.3 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sbp-2.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 187.8 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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 903355741ae1905190479ee5276e08fdcbaf0a4ab83d41dfe2529f59b115284f
MD5 836034e8bc794ced1047f1ec8b86509c
BLAKE2b-256 1dde620c4f7fe576540c4c6f2b44b9a0242671cdd85375c6e03acde8034b6ec4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 206.0 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.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 dc80126d6687d623a42399924b13473ec39ca12b0866102f1aba3a1263fd4f06
MD5 d3bca03e70989f95c9e781f4be617fe4
BLAKE2b-256 610537549baabcdbc4d5a0b34415992f5fcfd8df90dde8e675e59d41c60eb450

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 205.4 kB
  • Tags: CPython 3.7m, Windows x86
  • 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.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 e70092389cb874e02f9f0e4895735a8bf16241996a27a4c0e8f64815bbc799a2
MD5 6becc6d714d1c475a0964fdcaf4c98e2
BLAKE2b-256 02bc1b8cef8b29af7b7fa4d639abd7b8ab4042798d78f70817d803ba0891117a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.5 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.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fe223659315f4ef1775b17e84ac702343c938a6cbe610264fef9052e58ed2830
MD5 11c172c6e08d8023aedf679207a001a4
BLAKE2b-256 a6cfd6bd9e4e7f470dae6febc4d5f162ac537ae29d8e45de4518cc7852a5026e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 231.7 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.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b7293ddaa3dab3c1be29a82990b97dfab2ad8bfb5aa5fe7b2982e31fd5c0afae
MD5 87b433d118ceab4cd58972adf7812abf
BLAKE2b-256 5bd3b987d80fd72225e6be3c06d9eb0d1ca43d6c4d25f1bdbc997893e2478905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 334.7 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.0-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 014fb1f54355bb88d1ce0029b80838e9898e83272353744e6e922b84bd9e5259
MD5 5e2bb27f4e820e6d9fe917191f4790f0
BLAKE2b-256 9f339ccffcdcc2da8e19e87d5e0373599f001483f56e2223837d42a22699bd36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 206.6 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.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 0e665cd1307f2ea5824cb4dd0f419813e6cc23263617b60650a74f036b645402
MD5 8341dc0a4278a6effccf7d779b6518f6
BLAKE2b-256 c034f0dbc88d53a08d373c12a80f2c5ee2b53557bc2a586e7d21b4a56fe31cc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 205.8 kB
  • Tags: CPython 3.5m, Windows x86
  • 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.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 40cd69737c30399630ed8982adabf71c00092f1e9464555e9e5504d12a82ba18
MD5 198965c057335b4c2e9a3eaadcf022ae
BLAKE2b-256 df15e0b2861ee4a3f79b574a656e040d5b25bd4b4a6f806fccbdcbcf15791b01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.5 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.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cd495ac9f62e491d376773722e482e30ae63dbbbe8b661db4733a28b265c7235
MD5 50ee33b4b027df2b3c777a7d7f5310b0
BLAKE2b-256 344d207c86e16c217b8842ea1e997652456b11792af8dd4d4714de44478280c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 231.7 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.0-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 0fd2c0e3f8d9af28105767b176dcfe93937575e240508eac0049ea8ebb4214ad
MD5 1312cda8cb222846392fb1d666a839d9
BLAKE2b-256 ee7cc04504c2c5cd0326d2d88014b54d3ce69bedeb82d2386c321b36159ab06e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp27-none-linux_armv7l.whl
  • Upload date:
  • Size: 353.4 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.0-cp27-none-linux_armv7l.whl
Algorithm Hash digest
SHA256 8e760257e0e393aaa3a8108c3387b75df2a9aca5a9c6f3980d02acb389fa871c
MD5 980442332cbffe3fc7972040e82f57ea
BLAKE2b-256 b85f9ae99c1a63cd39b6d5e058de20791705a3f74aa4b028e6c61fc8ff7d54a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 211.4 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.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f990406ce8f479b2e287682701401152afa8cad9893b74b27da8bb81366019e2
MD5 9abf38091f485ec6e4129de649f1510f
BLAKE2b-256 52cc6ddc0fd2f54c47446e1fdfbff310641758a9d37e4be52daec4f50eecbb42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 228.8 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.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 35967353223940add4dec09a5245a9952666d169c03ae1d7330e86f577f48e48
MD5 0e86d61fad9a447c8df810ee95e46e5d
BLAKE2b-256 e3a324c63566b1d2868e48829a08013b7e56bcffa33e4f3afd5bec09951d5bd0

See more details on using hashes here.

File details

Details for the file sbp-2.6.0-cp27-cp27m-win32.whl.

File metadata

  • Download URL: sbp-2.6.0-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 222.8 kB
  • Tags: CPython 2.7m, Windows x86
  • 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.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 e091ca37905be2a5046a6b4be0528394c30b9f47fe3b6ebf0d8131f1d57f9ec8
MD5 14f59bbe4b993140eb415c0c31f8c1c2
BLAKE2b-256 18d8baf86f34063eb043fa685554f062aec79597708af72a5314cff8e32b32d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.0-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 230.3 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.0-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 f15642379f040b60a6b20c31a5398a5939038c6bd9fe9e27d7028ffb3f918c2b
MD5 4814879a950ef49ce6d5cadd0bda5c21
BLAKE2b-256 5343966a1281d5583dca86a7d4b1202e2812416fa0144841210e2dc6d8b3118a

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