AeroApi Python
Python wrapper for the FlightAware's AeroAPI
Description
AeroAPI (formerly FlightXML) is FlightAware's live flight data API that provides powerful, reliable information about real-time and historical flight information. This Python wrapper allows for easier interaction with the AeroAPI from Python applications.
FlightAware AeroAPI Reference
Installation
pip install aeroapi-python
Using test pypi, install with this command.
pip install --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ aeroapi-python
Usage
AeroAPI Class
The AeroAPI class is the main class for interacting with the FlightAware AeroAPI. It provides access to various resources such as airports, operators, flights, and more.
Initialization
To use the AeroAPI class, you need to create an instance of it by passing your API key as an argument to the constructor:
from AeroAPI import AeroAPI
api_key = 'your-api-key'
aeroapi = AeroAPI(api_key)
Airports
The Airports class provides methods for retrieving information about airports. You can access an instance of the Airports class through the airports attribute of the AeroAPI instance:
airports = aeroapi.airports
Methods
-
get_airport_info(airport_code: str) -> dict: Returns information about the specified airport.
airport_info = airports.get_airport_info('KLAX')
-
search_airports(query: str) -> list: Searches for airports that match the specified query.
airport_list = airports.search_airports('Los Angeles')
-
get_nearby_airports(latitude: float, longitude: float, radius: int) -> list: Returns a list of airports near the specified latitude and longitude within the specified radius.
airport_list = airports.get_nearby_airports(33.9425, -118.408056, 10)
Example Usage
from AeroAPI import AeroAPI
api_key = 'your-api-key'
aeroapi = AeroAPI(api_key)
airports = aeroapi.airports
airport_info = airports.get_airport_info('KLAX')
print(airport_info)
License
Authors
Metadata
Release files for aeroapi-python 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aeroapi-python-1.1.4.tar.gz | 10.3 kB | Without provenance | Details for aeroapi-python-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aeroapi_python-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for aeroapi_python-1.1.4-py3-none-any.whl |
Total release size: 22.8 kB
Release files / aeroapi-python-1.1.4.tar.gz
| Download URL | aeroapi-python-1.1.4.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a41d6f5b52d3478500048a28df1659780d29386dd2bf9a84451cc5af31be0cb
|
|
BLAKE2b-256 checksum How to use checksums |
b1e3d9ee84c43658e2db4ee29599c9439307ae2929b98fca71a2645774a1f3c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / aeroapi_python-1.1.4-py3-none-any.whl
| Download URL | aeroapi_python-1.1.4-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d446e1ab9a1354cf37c971dcf28fdb79df15944b589d9610cb23fb31e6926a39
|
|
BLAKE2b-256 checksum How to use checksums |
b96170da5519f94d4d0f72de7cb04d6cbeebfe5f254d43821b88f860f4e47d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for aeroapi-python 1.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.