Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 2.44 KB

README.md

File metadata and controls

53 lines (39 loc) · 2.44 KB

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