An unofficial Python SDK for the FlightRadar24 API.
Project description
Flight Radar API Client
This project provides a Python client for interacting with the Flight Radar API. It simplifies the process of fetching flight-related data, such as live and historic flight positions, flight summaries, and airline and airport information.
Features
- Live Flight Data: Get real-time flight positions for aircraft around the world.
- Historic Flight Data: Access historical flight data, including positions, summaries, and events.
- Flight Details: Retrieve detailed information about specific flights, including their tracks.
- Airline & Airport Information: Look up details about airlines and airports.
- API Usage Monitoring: Check your API usage statistics.
Installation
To install the Flight Radar API Client, you can use pip:
pip install flight-radar
Quickstart
Here's a simple example of how to use the client to get live flight positions:
from flight_radar.factory import get_flight_radar_client
from flight_radar.models import LiveFlightPositionRequest
# Create a flight radar client
client = get_flight_radar_client()
# Create a request to get the live flight positions
request = LiveFlightPositionRequest(
limit=10,
# Add any other parameters you might need
)
# Get the live flight positions
positions = client.get_live_flight_positions(request)
# Print the positions
for position in positions:
print(position)
This will output a list of FlightPosition objects, each containing information about a live flight.
Documentation
For more detailed information about the available methods and models, please refer to the official documentation.
Contributing
Contributions are welcome! If you'd like to contribute, please check out the CONTRIBUTING.md.
Local Development
To set up the project for local development, follow these steps. This project uses uv for package management.
-
Install uv:
Follow the official installation guide to install
uv. -
Create and activate a virtual environment:
To run the examples, you first need to create and activate a virtual environment:
uv venv source .venv/bin/activate
-
Install dependencies:
Install the project dependencies, including the development dependencies:
uv sync --extra dev
-
Set up pre-commit hooks:
This project uses pre-commit hooks to ensure code quality. Install them by running:
uv run pre-commit install
-
Run an example:
Then, you can run any of the example scripts:
python examples/alert_when_flight_enters_circular_area.py
Now you are all set up to run the project locally and contribute to its development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flight_radar-0.0.4.tar.gz.
File metadata
- Download URL: flight_radar-0.0.4.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9745269a13b274713de1bee0e205e888c61fdedce71099492da0487f4b3f963b
|
|
| MD5 |
2d32bc0c6c176fce11f2fe26649e0965
|
|
| BLAKE2b-256 |
7b46a024befb496cd2bfaeb5f7966633212513f1a0079618a1a83aee5e6f6e01
|
File details
Details for the file flight_radar-0.0.4-py3-none-any.whl.
File metadata
- Download URL: flight_radar-0.0.4-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
265e014185140772bbdd0bced5e935bfa98833602c0b8bfb56121a1d55cdc433
|
|
| MD5 |
fc0793d888ec00348c9d68b7bc869396
|
|
| BLAKE2b-256 |
0115a72006eb3e24bc629d30bdf4a42b68c7f8874f9f1206a5a5b9d605b27099
|