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

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

Uploaded Python 2Python 3

sbp-3.3.1-cp38-cp38-win_amd64.whl (229.9 kB view details)

Uploaded CPython 3.8Windows x86-64

sbp-3.3.1-cp38-cp38-manylinux1_x86_64.whl (256.3 kB view details)

Uploaded CPython 3.8

sbp-3.3.1-cp38-cp38-macosx_10_14_x86_64.whl (279.1 kB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

sbp-3.3.1-cp38-cp38-linux_armv7l.whl (445.9 kB view details)

Uploaded CPython 3.8

sbp-3.3.1-cp37-cp37m-win_amd64.whl (229.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-3.3.1-cp37-cp37m-manylinux1_x86_64.whl (256.1 kB view details)

Uploaded CPython 3.7m

sbp-3.3.1-cp37-cp37m-macosx_10_14_x86_64.whl (279.1 kB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

sbp-3.3.1-cp37-cp37m-linux_armv7l.whl (443.0 kB view details)

Uploaded CPython 3.7m

sbp-3.3.1-cp36-cp36m-win_amd64.whl (229.7 kB view details)

Uploaded CPython 3.6mWindows x86-64

sbp-3.3.1-cp36-cp36m-manylinux1_x86_64.whl (256.1 kB view details)

Uploaded CPython 3.6m

sbp-3.3.1-cp36-cp36m-macosx_10_14_x86_64.whl (279.1 kB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

sbp-3.3.1-cp36-cp36m-linux_armv7l.whl (442.2 kB view details)

Uploaded CPython 3.6m

sbp-3.3.1-cp35-cp35m-win_amd64.whl (232.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-3.3.1-cp35-cp35m-manylinux1_x86_64.whl (256.2 kB view details)

Uploaded CPython 3.5m

sbp-3.3.1-cp35-cp35m-macosx_10_14_x86_64.whl (279.1 kB view details)

Uploaded CPython 3.5mmacOS 10.14+ x86-64

sbp-3.3.1-cp35-cp35m-linux_armv7l.whl (441.5 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: sbp-3.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 138.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for sbp-3.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e83e2a287ee19fdb194cbfcd47421130a9e6932a0e72bdd73337322a47e0ceef
MD5 785bbb1da6ec266daea83cb40af75acb
BLAKE2b-256 cbf43757f2698267a8e45e97d7bb896047bce4bb4d1d1cb1f7f5ae359fe328bb

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: sbp-3.3.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 229.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sbp-3.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6cb5c58990b49d2ae409b52c160a8651826edf2264675625be65001d543b1bf7
MD5 47c51e2d21a3e2f890008f7c6871e236
BLAKE2b-256 26e0fc678fad880e8ea58471b5b140265b3075569bdb04b7dd4350400e8d6455

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: sbp-3.3.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 256.3 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sbp-3.3.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6441a68194e478063fd417e929179779fca28df4e9f3e406cf325e515fe7f0b0
MD5 6424402920beac5d17da0adbc9aae7e6
BLAKE2b-256 5229612812be3252fd0bcf0e83f2340bf8b17788c3b324396b0223b0c119f200

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: sbp-3.3.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 279.1 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sbp-3.3.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d2cbbfccb1357059d9ebacb4991320a3d1a0b1fb3411762e466f5f2dc17f8e21
MD5 4f3ef8a4e2bca5af98450c2385fb085c
BLAKE2b-256 cf08c4015da2e6069e8c9bdfecfdcdb56a8b518445d003a0dac8bfb8e4f0449c

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp38-cp38-linux_armv7l.whl.

File metadata

  • Download URL: sbp-3.3.1-cp38-cp38-linux_armv7l.whl
  • Upload date:
  • Size: 445.9 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for sbp-3.3.1-cp38-cp38-linux_armv7l.whl
Algorithm Hash digest
SHA256 2d30c370d424598e821dea374dc7f275dbee52af9b1ce6533b09fce93027679d
MD5 33aea054d82fa5a329f87c9a8935a113
BLAKE2b-256 6516cb30db7fbf049bdb8694e8b51c74dafec26618d2166ddacaa04823bde0e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 229.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for sbp-3.3.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 4f982464f1b7bc915cac2f1b6c7142de234e8b15e6020ae6cfb8d4ceeda9b883
MD5 f4b8fffa73f3c556f5dfe7ed012ac302
BLAKE2b-256 7891d13bd6d000cb5bd8aafc9a5185b3a84c0132eeb01afc3b2bed892970bd4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 256.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for sbp-3.3.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fb5e237b97292cba0edc87577976d73f28b44bdd7737433689841d3114dfa2de
MD5 8214aacdc01b31f4c62a13276d8b8f49
BLAKE2b-256 d0e7e680cf48ce9dce2805b06e897d5714c4d96e93ed47528cb3ccbeb4339d2b

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: sbp-3.3.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 279.1 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for sbp-3.3.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ddcaf3e1213eca85b5b23f1a9f6d988e780b5a72a2901d2dbde83db9e959a488
MD5 cfa98d66fa7429283ae881ecad61889e
BLAKE2b-256 b9d243fa1f36a90abce2e37e6c367ec2e40fcc66f89418d68ec8d4f21707bcf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 443.0 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for sbp-3.3.1-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 e164eb35e25b57396950f451c374fdbd30165141723ce487fe0a0ffe31c61abd
MD5 a253ee40c1d713e9e5b632617e2ed74d
BLAKE2b-256 a285d8ea4c5b5a2817c31d7883a570a6503b6d3e6627e218f5f512caba1ef402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 229.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for sbp-3.3.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 31e86111412e21c989dd0af3e5cd2589c7e008f6f56f556d004b619cd464294d
MD5 1696b04a6a108c96f4d21ac3a9e93c1a
BLAKE2b-256 670f0a0952ce5efeb5a9e128ce7e44436ca340579217b219d4e2ae76a4141d49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 256.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for sbp-3.3.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a6d74d9ac518db7ddfd2f9a9fcbc1a5a790183f429eb6cdcd64759b15a82ea0c
MD5 d07a5d76c3d4609d711aef4813a6813b
BLAKE2b-256 61a6f7700f626b947b6544d7d713bd882a031a7bdac8caf68e777b6ec35b8724

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: sbp-3.3.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 279.1 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for sbp-3.3.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ca99283ff9fd5fecad8ecf1abfec040013223c771bafebde3e8b719c1fe7194d
MD5 8926eae13902039431b78f3e150385fd
BLAKE2b-256 1505650fe0d58d102a965e2bc0c0bdfe374436203d7b2591a9a7aa57a5f3c0d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp36-cp36m-linux_armv7l.whl
  • Upload date:
  • Size: 442.2 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for sbp-3.3.1-cp36-cp36m-linux_armv7l.whl
Algorithm Hash digest
SHA256 36a606a0ca362e5891169e904225eae1bc9bd7d4be890240adeb01946fc40323
MD5 2e65ecc929ea7acaafe3c7410d53035f
BLAKE2b-256 e8d249c002d5dae86183bd52fe2f437e71ab7bbf60b4e35434be5abbab977898

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-3.3.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 05a853cd64e4c667e8956f082cb5d7b9a36eb89e3f005c6f48acb62d6f8ce305
MD5 103588198ecd99bbed1c8bc906b2aca0
BLAKE2b-256 cdb2f35aef0f6e654407ed873de480251010210dee1fe4fcb72c9fa601ac25b4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbp-3.3.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b94ff2c9e6a81edb97401c2b3b063beb603f571c95eecac4bc7d94161d756255
MD5 5fe3efd35136771c5af040a4430769df
BLAKE2b-256 665f7d953db5100aee5ce2bd5fb9fd7846f4f0c7c44b087c3447e7fba268138e

See more details on using hashes here.

File details

Details for the file sbp-3.3.1-cp35-cp35m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: sbp-3.3.1-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 279.1 kB
  • Tags: CPython 3.5m, macOS 10.14+ 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.48.2 CPython/3.5.6

File hashes

Hashes for sbp-3.3.1-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 223dc27e77a683fa03d516c132fb391e2bc302241ce54d6a3de44596bd57b7a3
MD5 2019c400b95964ae66c85fe7e15238d5
BLAKE2b-256 b992821f7fe05df3832051d3ee66dd593857300ec1339286425560b0d4611c1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-3.3.1-cp35-cp35m-linux_armv7l.whl
  • Upload date:
  • Size: 441.5 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/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.9

File hashes

Hashes for sbp-3.3.1-cp35-cp35m-linux_armv7l.whl
Algorithm Hash digest
SHA256 948d18634366b0aa3fc766912ee6cad17acd309eb5df2968806ce52737d940bf
MD5 6c0ab64944abf9ce9dc3e0ff446455e3
BLAKE2b-256 fa1bf25ea84dbcffc55934d075956d252b8772aa8e591d0804f4e3831a257c1e

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