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

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

Uploaded Python 2Python 3

sbp-2.6.3-cp37-cp37m-win_amd64.whl (211.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

sbp-2.6.3-cp37-cp37m-win32.whl (210.5 kB view details)

Uploaded CPython 3.7mWindows x86

sbp-2.6.3-cp37-cp37m-manylinux1_x86_64.whl (216.5 kB view details)

Uploaded CPython 3.7m

sbp-2.6.3-cp37-cp37m-macosx_10_7_x86_64.whl (236.7 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

sbp-2.6.3-cp37-cp37m-linux_armv7l.whl (339.7 kB view details)

Uploaded CPython 3.7m

sbp-2.6.3-cp35-cp35m-win_amd64.whl (211.7 kB view details)

Uploaded CPython 3.5mWindows x86-64

sbp-2.6.3-cp35-cp35m-win32.whl (210.9 kB view details)

Uploaded CPython 3.5mWindows x86

sbp-2.6.3-cp35-cp35m-manylinux1_x86_64.whl (216.5 kB view details)

Uploaded CPython 3.5m

sbp-2.6.3-cp35-cp35m-macosx_10_6_x86_64.whl (236.7 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sbp-2.6.3-cp27-none-linux_armv7l.whl (358.4 kB view details)

Uploaded CPython 2.7

sbp-2.6.3-cp27-cp27mu-manylinux1_x86_64.whl (216.4 kB view details)

Uploaded CPython 2.7mu

sbp-2.6.3-cp27-cp27m-win_amd64.whl (233.9 kB view details)

Uploaded CPython 2.7mWindows x86-64

sbp-2.6.3-cp27-cp27m-win32.whl (227.8 kB view details)

Uploaded CPython 2.7mWindows x86

sbp-2.6.3-cp27-cp27m-macosx_10_6_x86_64.whl (235.4 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sbp-2.6.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 192.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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef538182058c8046ee15933a01c8fb3422bc2b1e8c05ef0612db53b622ac90a6
MD5 0235ee851fcf2f8fe2409a9d43bfad49
BLAKE2b-256 ffb3730ae289f659a604dfd4747a84567ae3ac70f78ff7d9c4b1dd19f285d7f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 211.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.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d6a58e7c2179569900f2ce91139b8293f0d01fea0efd1fdc5d489fd2057695b9
MD5 59002041f13d94623a48db7ffe91d6b6
BLAKE2b-256 f30a2a2e1d7d943dc36f544650d0a361a102fd703be86e7b65c61d5e405bda0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 210.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.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 3c32452edcedf0f56aca3b9db07821deebcdb4d245164814f4a1ca7580e6b9e6
MD5 4b128d722fff8bc97d691c769882f028
BLAKE2b-256 6d93a4ec4c727423dbce603bd994323ab9d98d250aa6eccbf51544d3bdefa40c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 216.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.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 236c1c3f5d20e414200b79d556d282fba92170528862ba2b03c36141130f704c
MD5 3ec8dc7610ec2cde44491e8f4255e3a0
BLAKE2b-256 7429e60ce6fdb2138bed31c85d1037c97fd3306c3829c59dfd289923c17ba911

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 236.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.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2e23b4b0eb4b782169f1b0b718076fcfb9a1a41441e0f69554416ea70056e482
MD5 10ed646317de2755bdd1d9bccc9cc5b0
BLAKE2b-256 16ab44c63173d76e9d24b066688921d050ecdb3d9aa588cf5b9a86f74b2d83d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 339.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.3-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 32f74ca95ebae268790a187512c77c5e9fed06c999a789edfff46d49eaf5726d
MD5 6d4461f0af4578b9898ccbc9567bd196
BLAKE2b-256 a89ef83dd02868033bbd768a01f1f5dd862d269e12a6b71be78b97e1edceae3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 211.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.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3e8228f6de19cb8ba81366e318017f6df267daab079c61a0889542c1577e1d03
MD5 2bf676fd34c9528c4484be6fbdd97a23
BLAKE2b-256 ee9c39031f91d72ec486659cf38dca74946c7f2245ee3dc7d945e6c922fd7fba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 210.9 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.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 c2d00974cec8770635ca02b3ef00872374448ac1cce6af34129f934f511d37e5
MD5 3d70a12b4b530c21eeb64e88557a0530
BLAKE2b-256 ea45aa8026659b8514d42a28f05598200b3934d732c3f5504e9fca88e1ffc382

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 216.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.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 89bf8b606718476e7321a0496a1e62e7e5653761b30f1fc5ebe49080ecb61e62
MD5 0ffeab3423909d7dc9e8be4b93f7ffd2
BLAKE2b-256 f42a9b1d23238845b3bca67abc3953a4bc271aa2c8c146e13a094fc42faa77fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 236.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.3-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 87a0b40bef131646f7028182715739e05a006602ce148136c6710456738217c3
MD5 71779eea87cf985a6a17688a122f5c74
BLAKE2b-256 2ae6fe4c70233dc096ab57fec6a92e3dd2cb496ed9db73179e79cddf29bd55af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp27-none-linux_armv7l.whl
  • Upload date:
  • Size: 358.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.3-cp27-none-linux_armv7l.whl
Algorithm Hash digest
SHA256 8c6f80c34799a8fba2c756d669ee31124c24d76aee313e012a03772e832de7bb
MD5 a9bd37031792dd207116fe1c016160b5
BLAKE2b-256 8379a1aef1d97806d521a5909d701aba824178d4fea92ecc6cd2125c4230d326

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 216.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.3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bd319d57e2c1b7f094658ac13fa683f2a1b9dd78cd39c3e42013c9d5f9337323
MD5 2fc1b022decf471caef757d18cf7b0ff
BLAKE2b-256 e0fbce95e2822eb035c2c1ebd621b96b3bcfd63a13c48015349d62d091cb8bda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 233.9 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.3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 d9f5f98254799f06671c9e85450a5271bfe1b4f3279f2d2e542000846886c310
MD5 3fa869f49ecb8349fbfef6b6f9d6409b
BLAKE2b-256 44d48d32fd5c0e0a4c0ab3f7e2661dc2297f47bb581a76bcfcd78ddb3c1eadd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 227.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.3-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 5c82238c63df2d77d563e38395a326e75f1e3af2ff25389762263a7ad6e20ef6
MD5 ff3f5e6d5040d57f536631d9da9a1b19
BLAKE2b-256 c1e7a6dbe3fa0a3951ae6a9886fcff79d4a7deff8a934802dda0f81630fc1c61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.6.3-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 235.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.3-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 e948a2d575b9339339bab97d318ca16b24e0b2e041afc1cc20652e522ef0fb8a
MD5 c8c56ccc413d84f425e0d6a2fef0e813
BLAKE2b-256 f2e7ebe1f2dc1e9d4ac4c4ba4732fbbab54d9441c566e6d8af89b32db779f9ce

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