Python API to interact with schiphol endpoints
Project description
Schiphol-API
A simple and lightweight Python client for interacting with the Schiphol Airport Public Flights API.
This package allows you to easily fetch flight, destination, airline, and aircraft type information from Schiphol Airport.
📦 Installation
Install the package via pip:
pip install schiphol-api
🚀 Quick Start
from schipholapi import SchipholAPI
# Initialize the API client with your app_id and app_key
api = SchipholAPI(app_id="your_app_id", app_key="your_app_key")
# Fetch a list of flights
flights = api.get_flights(page=0)
# Fetch details for a specific flight
flight_details = api.get_flight(flight_id="your_flight_id")
# Fetch a list of destinations
destinations = api.get_destinations()
# Fetch details for a specific destination
destination_details = api.get_destination(destination_id="your_destination_id")
# Fetch a list of airlines
airlines = api.get_airlines()
# Fetch details for a specific airline
airline_details = api.get_airline(airline_id="your_airline_id")
# Fetch a list of aircraft types
aircraft_types = api.get_aircraft_types()
# Fetch a list of flight IDs
flight_ids = api.get_flight_ids()
🔧 Available Methods
| Method | Description |
|---|---|
get_flights(page=0, include_delays=False, sort_by="scheduleTime") |
Fetch a paginated list of flights |
get_flight(flight_id) |
Fetch details about a specific flight |
get_destinations(page=0, sort_by="publicName.english") |
Fetch a paginated list of destinations |
get_destination(destination_id) |
Fetch details about a specific destination |
get_airlines(page=0, sort_by="publicName") |
Fetch a paginated list of airlines |
get_airline(airline_id) |
Fetch details about a specific airline |
get_aircraft_types(page=0, sort_by="longDescription") |
Fetch a paginated list of aircraft types |
get_flight_ids(page=0) |
Fetch a paginated list of flight IDs |
🔑 Authentication
You need to register for an account at the Schiphol Developer Center to obtain your:
app_idapp_key
Use these credentials when initializing the SchipholAPI client.
✨ Future Improvements
- Retry mechanism for API failures
- Rate limit handling
- Async support
Made with ❤️ for developers using Schiphol's open data
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
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 schiphol_api-0.0.5.tar.gz.
File metadata
- Download URL: schiphol_api-0.0.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
414e935d56d5f93e73793044bf1f26c23f4fd3397cd3b41fc592869834766e02
|
|
| MD5 |
edfe02d9e7dbb6a8a566efdc969ea5bd
|
|
| BLAKE2b-256 |
37f0275221b408c00471c2a5ae25aabedbdc099dc948e00f1274e9b151021a13
|
File details
Details for the file schiphol_api-0.0.5-py3-none-any.whl.
File metadata
- Download URL: schiphol_api-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f79b8c4e920fccef9c49fa90b7c1118e990188fb7f286925bf6f0e14098b630
|
|
| MD5 |
95869c470242b31e50bc37ba3f27f97f
|
|
| BLAKE2b-256 |
d7809749722090797be8f4be8c46cc10af00315df2194b9b0266bfb2d57d51ce
|