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

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.5.6-cp37-cp37m-win_amd64.whl (205.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 2.7mWindows x86-64

File details

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

File metadata

  • Download URL: sbp-2.5.6-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 205.9 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.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for sbp-2.5.6-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 12afead20b2cd961b6bb59e0378d5aea19df6c1888950fc6ccaad24e5ebe0086
MD5 4738fe9705b9b9c221c8fdc8ed4ca0a2
BLAKE2b-256 4b2e5fb4f58533317b737f1240939029054c0a80e2a02f126fb6b920adbbab65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.5.6-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.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for sbp-2.5.6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 c5c08de800c5a73671ad5cccd4928edafa75d01560005b14fa8dc8d0fab57d91
MD5 037dc2c0c29bfd6518869835d819ec75
BLAKE2b-256 7abd25dd384c2b6dc51fd51cc7485448bf1a8e012bc1b05b95ffe08212802501

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbp-2.5.6-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.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for sbp-2.5.6-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 2f0e0673f6ce6be0fd01103716a57eac924823e38884b2b1cf67095dfc241116
MD5 3f9bd275082fceb6578f238c782b0ab6
BLAKE2b-256 45a2210c46cb2c97684e7f0c05457b17b19d106ab12c705ca9009bd69e952a83

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