Skip to content

fseconomy/fseconomy-python

Repository files navigation

FSEconomy Python Bindings

This package provides Python bindings for various FSEconomy APIs.

Documentation Status

Important Links

Usage

Initialization

In order to use any of FSEconomy's APIs, you will need to initialize the corresponding API keys:

import fseconomy

fseconomy.set_access_key('0123456789ABCDEF')
fseconomy.set_service_key('0123456789ABCDEF')
fseconomy.set_user_key('0123456789ABCDEF')

Please refer to the corresponding section of the FSEconomy Operations Guide for an explanation of the different keys and their purpose.

FSEconomy Data Feeds

Retrieve data from FSEconomy's data feed API. For most feeds, you must set a valid key first.

import fseconomy
import fseconomy.data

fseconomy.set_access_key('0123456789ABCDEF')
fseconomy.set_service_key('0123456789ABCDEF')
fseconomy.set_user_key('0123456789ABCDEF')

data_feed = fseconomy.data.aircraft_configs()
print(data_feed.status) # HTTP response status code
print(data_feed.data)   # parsed into native python data types
print(data_feed.binary) # true if raw data is binary data
print(data_feed.raw)    # raw data as received from the server

A comprehensive list of all data feeds can be found in the official documentation

FSEconomy REST API

FSEconomy Auth API

About

Python Bindings for FSEconomy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages