Metadata-Version: 2.4
Name: flight-fare-history
Version: 0.1.0
Summary: Load the open Flight Fare History dataset (observed airfares by route and departure month, CC BY 4.0) in one line.
License: MIT
Project-URL: Homepage, https://piratefly.com/?src=pypi
Project-URL: Research, https://piratefly.com/research/when-to-book-flights?src=pypi
Project-URL: Live API, https://piratefly.com/api/?src=pypi
Project-URL: Dataset, https://doi.org/10.5281/zenodo.23290390
Project-URL: Source, https://github.com/DeusAcc/flight-fare-history
Keywords: flights,airfare,travel,dataset,prices,time-series,open-data
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: pandas
Requires-Dist: pandas; extra == "pandas"

# flight-fare-history

Observed airfares in one line of Python: median, 10th percentile and minimum price per route and
departure month, refreshed daily. Data: [Piratefly flight fare history](https://piratefly.com/research/when-to-book-flights?src=pypi),
CC BY 4.0, DOI [10.5281/zenodo.23290390](https://doi.org/10.5281/zenodo.23290390).

```bash
pip install "flight-fare-history[pandas]"
```

```python
import flight_fare_history as ffh

df = ffh.load()                      # route x departure month: median_eur, p10_eur, min_eur
ffh.load("booking_window")           # how fares move with days before departure
ffh.route("Aalborg", "Alicante")     # one city pair
```

Tables: `by_month`, `routes`, `booking_window`, `fare_index`, `winter_cities`. Mirrors:
[GitHub](https://github.com/DeusAcc/flight-fare-history),
[Hugging Face](https://huggingface.co/datasets/DeusHorizon/flight-fare-history),
[Kaggle](https://www.kaggle.com/datasets/lumnikalab/flight-fare-history),
[Zenodo](https://doi.org/10.5281/zenodo.23290390).

Need live fares, price verdicts or cheapest months per route in your app? The
[Piratefly API](https://piratefly.com/api/?src=pypi) is free without a key (100 requests/day) and has a
Pro plan for production use.

Cite: `Piratefly flight fare history. DOI 10.5281/zenodo.23290390.` Code MIT, data CC BY 4.0.
