Light Python 3 Wrapper for IVAO Network
Documentation : GitHub Pages
- 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 can be found the the example.py file
- Some personal scripts are located Tchekda/IVAO-Utils
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
requests
to grab whazzup filepdoc3
to generate html documentation
update
: When new data is parsed, given with clients listconnect
: When a client connects to the network, given with client type objectdisconnect
: When a client disconnects from the network, given with client type objectatis_update
: When an ATC updates ATIS, given with ATC objecttakeoff
: When a pilot takeoff, given with pilot objectland
: When a pilot lands, given with pilot objectstatic
: When pilot's position didn't changed since last update, given with pilot objectmoving
: When pilot's position changed since last update, given with pilot objectcruise
: When pilot's altitude didn't change by +/- 1000ft since last update, given with pilot objectclimb
: When pilot's altitude increased by more than 1000ft since last update, given with pilot objectdescent
: 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