Skip to main content

Python bindings for Swift Binary Protocol

Project description

Python client for Swift Binary Protocol (SBP).

Setup

Youmust 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

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.

Project details


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 Distribution

sbp-2.3.11.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

sbp-2.3.11-py2.py3-none-any.whl (105.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sbp-2.3.11.tar.gz.

File metadata

  • Download URL: sbp-2.3.11.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sbp-2.3.11.tar.gz
Algorithm Hash digest
SHA256 f67f645a048dbd15113c0dad761e0804ccd76a494dd3a4565a6fba445081c5fb
MD5 5abde7c333811d91c12ae0f8b3bd9b90
BLAKE2b-256 73cab9a056ad985ebccf8244559a5e886e66cf7d4a7a571cfb47eb1603825059

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sbp-2.3.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb8ed0366f45b2b3b40687ee766f47417127302cfc09cecf326649bf047503c1
MD5 f6328b41e9292af62d3ec88a0ae02606
BLAKE2b-256 a5379704e8d6df68e96ab63feac0de1288de9745b0688b1ae5b0315976f1dd0c

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