
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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.
To install the Flight Radar API Client, you can use pip:
pip install flight-radar
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.
For more detailed information about the available methods and models, please refer to the official documentation.
Contributions are welcome! If you'd like to contribute, please check out the CONTRIBUTING.md.
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.
FAQs
An unofficial Python SDK for the FlightRadar24 API.
We found that flight-radar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.