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

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

Uploaded Python 2Python 3

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

Uploaded CPython 3.7mWindows x86-64

sbp-2.6.1-cp37-cp37m-win32.whl (205.5 kB view details)

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.7+ x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.5mWindows x86-64

sbp-2.6.1-cp35-cp35m-win32.whl (206.0 kB view details)

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sbp-2.6.1-cp27-none-linux_armv7l.whl (353.5 kB view details)

Uploaded CPython 2.7

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7mWindows x86-64

sbp-2.6.1-cp27-cp27m-win32.whl (222.9 kB view details)

Uploaded CPython 2.7mWindows x86

sbp-2.6.1-cp27-cp27m-macosx_10_6_x86_64.whl (230.4 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a96539069e84c265e57bfdb127bdc2cf23b6d18737cb9e8f293e2bf558ddb9ad
MD5 44c44f31fdc4aac0dfad6a4a04ace20e
BLAKE2b-256 5035d3f47a725fff11c54ea7c18a17429576be811c8e9b5045e8a2192c527c68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e174fe017807996140616f05120b7f7a2b1a50957a6739504b09a03b97dad932
MD5 c4142fc2543f9849c537da8ee889f0bb
BLAKE2b-256 00c144e870c5bfd62ed0779048ba2fa1673c8eae6dc71206a0f1c86c491e61f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 205.5 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.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 042bd63e4d1e2cc074a1f6117fda1cd60f112f518f0abdeaf86b6656bac75e9d
MD5 49c9be303c55c6a94ad8b631b69da923
BLAKE2b-256 a034364c75f2fbaa6a7af1174a9ff0b14c69b6eee54091b4da8c6ac6e977abf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ceb05d6707bb341ff35ed30b93223df654584f72cc75660480b10d985621cf75
MD5 2e631372e2f753f0df93ac30e6a9e515
BLAKE2b-256 af425f3269cb357d748e409a4d385bc4e852574dba0cb5a5e99a24316eaa436a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8c1556343de90f6848e368203c5edf36a435cbe0abb7b15139d0500767f81ea7
MD5 c4e8589c6d39ad41c5c964bfcae2e9c7
BLAKE2b-256 b3cfe020dc740dbad494b0892cb261785212b5cd960196213eca3b94f43d026e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 a1c27133132ed39a412545f62a341de9311a753dc363fa0e84dc661afc56c356
MD5 8198c670898bd017c688dd5095746de1
BLAKE2b-256 6150302137b747ff769eacc1ee49810e33b88f5f8bc0f0ac20d0adba626b16e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 66b7a33dce8a76d7e01acbd9c14ff1b888bfa545c628f0e19498464821b63567
MD5 382ef40588cfec4c5824ae870109d01c
BLAKE2b-256 e528f279b2d416c0f2e8dc03a8ecd4c56d2ddd02832e2d8f9277e86f170f0157

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 206.0 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.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 51217293a7c7319579a40f93ed817d62cffb166ea9635531476d74c83a288e90
MD5 30de9e905654d8323beca2ee179d6164
BLAKE2b-256 9502cc31315b3d14beba98dac33a4bba1ce9094ab1c871c7c05adc9b34ddf08b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 215d1b8b071a9db54b43f1123f7063a815f0a0c6a219ec78b7dacb1d5fe05eff
MD5 34820f3478a7e17b48f1a224e736cd42
BLAKE2b-256 7ac54b43292dc345b024299d309c51a997d5d13c4ffcccb687f5d1ec26da9ac0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 64ee57c1744405fd237fa10424a45a99143c826bbbebea26d91ee2ff559c672a
MD5 d39a2f9866f737760cbc665507f18d82
BLAKE2b-256 699fef15297189b084d5ded9357b556e9bec551bff7a5f83afac68cbd2c6f9bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-cp27-none-linux_armv7l.whl
  • Upload date:
  • Size: 353.5 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.1-cp27-none-linux_armv7l.whl
Algorithm Hash digest
SHA256 d743f136bff606faae31c8b900380c4f12bbccffd141ecc8e4189be3e75cfcbb
MD5 e369cc20a71923458e9b37349377c1e5
BLAKE2b-256 920d3a85b2997ff1ef10cc295bde612bc4c46488b3d80426e0a8c533398723d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 87a192e39f14693ea8b78a7a64e6b3974f2aa6b3eb5e32078fac8ee20dd59777
MD5 905a2ecb4686fe52d249d150019a2022
BLAKE2b-256 234eef86c378d9630d082ef8ee09ab1f2d4df886707d4a878db5dc647fd0e931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-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.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 f726b11170497241960d42ad7249dc0f7657cc00448ea3830f53c6fbcb558173
MD5 2fec65df492eae6fca5d489cd1072df1
BLAKE2b-256 6cc13791cf1a8893a87523bea406b7cd87063ecbb57f88cff86d13f933b076e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 222.9 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.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 75e7c9826964b7f19b234db9adc44c232261b8203cd9c407ecf7fcf3f5526d52
MD5 37d92ce064425374ae1305f044321595
BLAKE2b-256 ae2381d4a822af0d1912310f1c5572b43b08f9e38397bd1cbd0037e00f5ea244

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.1-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 230.4 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.1-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 9c46ebdf3c2b24af19666b599695fd14cab0a81ba71e75d868f82a87b3ccbe7f
MD5 e5d0a057aa4cd0090a4bfbd5626ce7ea
BLAKE2b-256 27f1a37a215dad4725377bfb21e79469d54572c60d0fb491c459b223ef74882b

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