Skip to main content

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

Project description

Latest PyPI version https://travis-ci.org/boatd/python-boatd.png?branch=master

Python module for writing boatd behavior scripts.

Installing

pip install boatd_client

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 the direction of the wind in degrees

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

boatd_client-0.1.4.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file boatd_client-0.1.4.tar.gz.

File metadata

  • Download URL: boatd_client-0.1.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for boatd_client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7748dcc3aaa71cb68304f681811d745874b1e79e3e6c539e5df0d2b2904e2221
MD5 b26ff0131b69577845dfd42e50b429dc
BLAKE2b-256 21e7dfc9e58c36178ef0c8a99b45a465be421602185f5e1427c91288778e251e

See more details on using hashes here.

Supported by

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