Skip to main content

Python wrapper for the boatd API, used to write behavior scripts.

Project description

https://badge.fury.io/py/python-boatdclient.svg https://travis-ci.org/boatd/python-boatd.png?branch=master

Python module for writing boatd behavior scripts.

Installing

$ pip install python-boatdclient

class Boat

A boat controlled by boatd

Attributes

heading: Return the current heading of the boat in degrees

position: Return a tuple in the form (latitude, longitude)

version: Return the version of boatd

wind: Return a tuple in the form (direction, speed). This contains the direction of the wind in degrees and the speed the wind is blowing in knots.

methods

def __init__(self, host='localhost', port=2222)

Create a boat instance, connecting to boatd at host on port port

def __rudder__(self, angle)

Set the angle of the rudder to be angle degrees

def __sail__(self, angle)

Set the angle of the sail to angle degrees

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-boatdclient-0.4.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file python-boatdclient-0.4.0.tar.gz.

File metadata

File hashes

Hashes for python-boatdclient-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4d46b515205b4cc408bb1263d9b58ef261279e3a0bb4faea0b25f00bb22fbf9a
MD5 8ea1b5de6c96f4e8e01b5e4467dc0960
BLAKE2b-256 25dfe1103ac73752589d4afd356e596bc43a7643e827695740debf604d78822c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page