Skip to main content

A library for parsing and managing European AIP (Aeronautical Information Publication) data

Project description

Euro AIP: European Aeronautical Information Library & Explorer

Euro AIP is a comprehensive Python library and web application for exploring, processing, and analyzing European airport and AIP (Aeronautical Information Publication) data.

Version: 2.0 - Modern API with queryable collections, transactions, and Pythonic operations


1. euro_aip Python Library

Overview

The euro_aip library provides:

  • Modern Query API: Fluent, chainable collections for powerful data queries
  • Builder API: Transaction-safe model building with bulk operations
  • Data Models: Rich Python classes for airports, runways, procedures, and AIP entries
  • Parsers: Tools to extract and standardize AIP data from various European sources
  • Data Sources: Integrations for WorldAirports, Autorouter, and more
  • Utilities: Geographic calculations, field standardization, fuzzy matching, and more

Key Features (v2.0)

  • 🔍 Queryable Collections - LINQ-style queries with method chaining
  • 📖 Dict-Style Access - Natural lookups: airports['EGLL']
  • 🔧 Set Operations - Combine queries with |, &, - operators
  • 💾 Transactions - Atomic updates with automatic rollback
  • Bulk Operations - High-performance batch processing
  • 🏗️ Builder Pattern - Fluent API for constructing airports
  • 🔄 Full Backward Compatibility - Legacy API still supported

What Can You Use It For?

  • Programmatic access to a unified, standardized database of European airports and procedures
  • Complex queries with intuitive, chainable syntax
  • Safe model updates with transaction support
  • High-performance data loading with bulk operations
  • Custom data analysis: Build your own scripts to analyze, filter, or export aviation data
  • Integration: Use as a backend for your own aviation tools or research

Quick Examples

Query API - Finding Airports

from euro_aip.models import EuroAipModel
from euro_aip.storage import DatabaseStorage

# Load the model
storage = DatabaseStorage('airports.db')
model = storage.load_model()

# Dict-style lookup (fastest for known ICAO)
heathrow = model.airports['EGLL']
print(f"{heathrow.name} - {heathrow.elevation_ft}ft")

# Filter by country
french_airports = model.airports.by_country("FR").all()

# Complex filtering with method chaining
suitable = model.airports \
    .by_country("FR") \
    .with_hard_runway() \
    .with_min_runway_length(3000) \
    .with_fuel(avgas=True, jet_a=True) \
    .all()

# Set operations for OR logic
western_europe = (
    model.airports.by_country("FR") |
    model.airports.by_country("DE") |
    model.airports.by_country("BE")
)

# Check existence
if 'LFPG' in model.airports:
    cdg = model.airports['LFPG']

Builder API - Modifying Data

# Bulk operations (high performance)
airports_to_add = [...]  # List of Airport objects
result = model.bulk_add_airports(
    airports_to_add,
    merge="update_existing",
    update_derived=True
)
print(f"Added {result['added']}, updated {result['updated']}")

# Transaction API (atomic updates)
with model.transaction() as txn:
    txn.add_airport(airport)
    txn.bulk_add_procedures(procedures)
    # Automatic rollback on error

# Builder pattern (fluent API)
airport = model.airport_builder("EGLL") \
    .with_basic_info(
        name="London Heathrow",
        latitude_deg=51.4706,
        longitude_deg=-0.4619
    ) \
    .with_runways(runways) \
    .commit()

Documentation

Full documentation available in designs/:


2. Example Scripts

The example/ directory contains ready-to-use scripts for common tasks:

  • aipexport.py: Export AIP data to various formats (JSON, CSV, etc.)
  • bordercrossingexport.py: Export and analyze border crossing airport data
  • foreflight.py: Example for exporting data compatible with ForeFlight
  • test_*.py: Example and test scripts for validating data and demonstrating usage

Each script includes usage instructions in the file or via --help.


3. Euro AIP Web App

A modern web application for interactive exploration of European airports and AIP data.

Live Demo: The web app is available at https://maps.flyfun.aero

Database Download: The underlying database generated by this library is available for download at https://flyfun.aero/data/airports.db

Features

  • Interactive Map: Explore airports visually with Leaflet.js
  • Advanced Filtering: Filter by country (full names, UK/EU priority), runway, AIP fields, and more
  • AIP Filter Presets: Quick filters for AVGAS, Jet A, Customs, etc., plus custom field filtering
  • Route-Based Search: Find airports near a user-defined route
  • Border Crossing Points: Specialized data and filters
  • Statistics and Charts: Visual analytics with Chart.js
  • Modern UI: Responsive layout (Bootstrap 5), Font Awesome icons, scrollable panels, always-visible legend

Quick Start

  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Run the server: cd web/server && python main.py
  4. Open http://localhost:8000 in your browser

API Endpoints

  • GET /api/airports/ - List airports with filtering (country, max_airports, AIP field, etc.)
  • GET /api/airports/{icao} - Get detailed airport information
  • GET /api/airports/route-search - Find airports near a route
  • GET /api/procedures/ - List procedures with filtering
  • GET /api/statistics/ - Get various statistics
  • GET /api/filters/countries - Get country list with full names and display order

Route Search API Example

GET /api/airports/route-search?airports=LFPO,LFOB,LFST&distance_nm=50

4. Data Sources

  • WorldAirports: Comprehensive airport database from OurAirports
  • Autorouter: European AIP data and procedures
  • France and UK AIP: Direct parsing of official published AIP data from France and the UK
  • Border Crossing Data: Specialized border crossing point information
  • Custom Parsers: For different European aviation authorities

5. Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

6. License

MIT License - see the LICENSE file for details.


7. Acknowledgments

  • OurAirports: For the comprehensive airport database
  • Autorouter: For European AIP data
  • OpenStreetMap: For map tiles
  • Leaflet.js: For the interactive map functionality
  • Bootstrap 5: For responsive layout and UI components
  • Font Awesome: For iconography
  • Chart.js: For statistical charting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

euro_aip-0.11.1.tar.gz (247.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

euro_aip-0.11.1-py3-none-any.whl (296.7 kB view details)

Uploaded Python 3

File details

Details for the file euro_aip-0.11.1.tar.gz.

File metadata

  • Download URL: euro_aip-0.11.1.tar.gz
  • Upload date:
  • Size: 247.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for euro_aip-0.11.1.tar.gz
Algorithm Hash digest
SHA256 d0ea85da9cc7e9ee77bfdf912d1724ecb7f41a2392203d245e7d84d859ed3054
MD5 4ec82008d0a123d2e5427e34c39351aa
BLAKE2b-256 ad40b68f5fe90a3814d533a4bdc57501a0224fcc84ab46489c4653a81d45ca5e

See more details on using hashes here.

File details

Details for the file euro_aip-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: euro_aip-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 296.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for euro_aip-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d417307a8a0bea0bcdf851f3a7f6b5f68d7f16c58e8680123a9c90edc7e09bd
MD5 54c6a5102098eb01876923dd3d9d886c
BLAKE2b-256 c88a8ce643e37ff66e128287e3e1af8cd682fe5c75aea5d0b6c236585a73dc9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page