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.3.tar.gz (4.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for boatd_client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 94eb6fd6cf293263828624261da841c0cdbcbd421f9250d01a693dc0fc4168ab
MD5 95eed8e7ae0e12093f3a0f3517d10f52
BLAKE2b-256 1185d498b79efcb7a12f93ee69791904c8b46d713a50b64255fe56e5bcc993d6

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