fr24-client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 1.0.0
- Generator version: 7.10.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import fr24_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import fr24_client
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import fr24_client
from fr24_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://fr24api.flightradar24.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fr24_client.Configuration(
host = "https://fr24api.flightradar24.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: Authorization
configuration = fr24_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with fr24_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fr24_client.AirlinesLightApi(api_client)
accept_version = 'v1' # str | Specifies the FR24 API version. The currently available version is `v1`. (default to 'v1')
icao = 'SAS' # str | Airline ICAO code.
try:
# Get basic airline information by ICAO code
api_response = api_instance.get_airlines_light(accept_version, icao)
print("The response of AirlinesLightApi->get_airlines_light:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AirlinesLightApi->get_airlines_light: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://fr24api.flightradar24.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AirlinesLightApi | get_airlines_light | GET /api/static/airlines/{icao}/light | Get basic airline information by ICAO code |
| AirportsFullApi | get_airports_full | GET /api/static/airports/{code}/full | Get detailed airport information by code |
| AirportsLightApi | get_airports_light | GET /api/static/airports/{code}/light | Get basic airline information by code |
| FlightTracksApi | get_flights_tracks | GET /api/flight-tracks | Get positional tracks for a specific live flight |
| HistoricFlightPositionsFullApi | get_historic_flight_positions_full | GET /api/historic/flight-positions/full | Get historical flight positions |
| HistoricFlightPositionsLightApi | get_historic_flight_positions_light | GET /api/historic/flight-positions/light | Get historical flight positions with basic details |
| LiveFlightPositionsFullApi | get_live_flight_positions_full | GET /api/live/flight-positions/full | Get real-time flight positions with detailed information |
| LiveFlightPositionsLightApi | get_live_flight_positions_light | GET /api/live/flight-positions/light | Get real-time flight positions |
| UsageApi | get_api_usage | GET /api/usage | Get info on API account usage |
Documentation For Models
- Airline
- Airport
- AirportDetailed
- Country
- Flight
- FlightPositions
- FlightTracks
- FlightTracksTracksInner
- GetAirlinesLight400Response
- GetAirlinesLight404Response
- GetAirportsFull400Response
- GetAirportsFull404Response
- GetApiUsage200Response
- GetFlightsTracks400Response
- GetFlightsTracks404Response
- GetLiveFlightPositionsFull200Response
- GetLiveFlightPositionsFull400Response
- GetLiveFlightPositionsLight200Response
- Timezone
- UsageLogSummary
Documentation For Authorization
Authentication schemes defined for the API:
Authorization
- Type: Bearer authentication
Author
Metadata
Release files for fr24_client 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fr24_client-1.0.0.tar.gz | 34.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fr24_client-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 111.6 kB
Release files / fr24_client-1.0.0.tar.gz
| Download URL | fr24_client-1.0.0.tar.gz |
|---|---|
| Size | 34.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5715d3c383ed65adee5d44299af74b80e4ebecf27f61d787423c759d4eb1ea1f
|
|
BLAKE2b-256 checksum How to use checksums |
9f77240f60f69f35279ee1c5ff82105c53d167af3b3b1adbd60f98da94ab1a51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.20 Linux/6.5.0-1025-azure
|
Release files / fr24_client-1.0.0-py3-none-any.whl
| Download URL | fr24_client-1.0.0-py3-none-any.whl |
|---|---|
| Size | 76.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7135f0d8984eed1a4d4db6810f74e3497f3c957278b058705cd2d5d39b6405cd
|
|
BLAKE2b-256 checksum How to use checksums |
2529a29bcdda6a6b1cdbdb93eb9cca683e0047100f95b82f613524c63150694c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.20 Linux/6.5.0-1025-azure
|