Skip to main content

Light Python 3 Wrapper for IVAO Network

Project description

IVAOWrapper

Light Python 3 Wrapper for IVAO Network Pyversions

Documentation : GitHub Pages

Install and use

  • Simply run pip install IVAOWrapper
  • You need to define your Whazzup API Key in ENV as WHAZZUP_KEY
  • Basic structure :
from ivao import Server

server = Server()

# You event handlers go here 

server.run_update_stream()

Examples

Build

  • Master : Build Status
  • Dev : Build Status

You are free to open an issue if you have a problem, and welcome to make a PR to improve the wrapper

Tested with some versions of Python 3.x, might work with newer ones.

Tests with Python 3.4 aren't working but module should work

Dev Requirements

  • requests to grab whazzup file
  • pdoc3 to generate html documentation

Events List

  • update : When new data is parsed, given with clients list
  • connect : When a client connects to the network, given with client type object
  • disconnect : When a client disconnects from the network, given with client type object
  • atis_update : When an ATC updates ATIS, given with ATC object
  • takeoff : When a pilot takeoff, given with pilot object
  • land : When a pilot lands, given with pilot object
  • static : When pilot's position didn't changed since last update, given with pilot object
  • moving : When pilot's position changed since last update, given with pilot object
  • cruise : When pilot's altitude didn't change by +/- 1000ft since last update, given with pilot object
  • climb : When pilot's altitude increased by more than 1000ft since last update, given with pilot object
  • descent : When pilot's altitude decreased by more than 1000ft since last update, given with pilot object

Function name doesn't need to match the event name, only the event handler need to have the exact event name

Further documentation can be found in the docs

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

IVAOWrapper-0.1.4.tar.gz (7.1 kB view hashes)

Uploaded Source

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