Skip to main content

A module which allows you to retrieve the cheapest flights, with/out return flights, within a fixed set of dates.

Project description

# Ryanair Python This module allows you to retrieve the cheapest flights, with/out return flights, within a fixed set of dates. This is done directly through Ryanair’s API and requires an API Key supplied by Ryanair. ### Installation Run the following command in the terminal: ` pip install ryanair ` ### Initialisation Creating an instance is done as follows: `python from ryanair import Ryanair ryanair = Ryanair("YOUR-CONSUMER-KEY", "YOUR-CURRENCY") ` ### Get one-way flights `python flights = ryanair.getFlights("DUB", "2018-10-27", "2018-10-30") ` Returns an array of Flight objects, like this: `python flights[0] == Flight(origin='DUB', originFull='Dublin, Ireland', destination='MAN', destinationFull='Manchester, United Kingdom', departureTime='2018-10-30T06:25:00', price=9.78) cheapestFlightPrice = flight.price # price is now a float containing the price (in the unit of currency originally declared earlier) of this flight ` ### Get return flights `python trips = ryanair.getReturnFlights("DUB", "2018-10-27", "2018-10-30", "2018-11-01", "2018-11-03") ` Returns an array of Trip objects, like this: `python trips[0] == Trip(outbound=Flight(origin='DUB', originFull='Dublin, Ireland', destination='LPL', destinationFull='Liverpool, United Kingdom', departureTime='2018-10-30T20:50:00', price=9.99), inbound=Flight(origin='LPL', originFull='Liverpool, United Kingdom', destination='DUB', destinationFull='Dublin, Ireland', departureTime='2018-11-01T08:25:00', price=18.51), totalPrice=28.5) trips[0].outbound.price==9.99 trips[0].totalPrice==28.5 `

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

ryanair-py-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

ryanair_py-0.0.1-py3.6.egg (7.0 kB view details)

Uploaded Egg

File details

Details for the file ryanair-py-0.0.1.tar.gz.

File metadata

  • Download URL: ryanair-py-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for ryanair-py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f341f37df8746a78525a433e20468c7910a3a368215245a411db6227426993bd
MD5 ec623437f8e707a91c9a8de76719f770
BLAKE2b-256 b438078d747429c6cc20f4d419fe0fd63867768e93d3c945dd642a7f6201a641

See more details on using hashes here.

File details

Details for the file ryanair_py-0.0.1-py3.6.egg.

File metadata

  • Download URL: ryanair_py-0.0.1-py3.6.egg
  • Upload date:
  • Size: 7.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for ryanair_py-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 84fe1935b54fe28ba65dd711f8a7a8cf2c410d1ff63d18701b1759e34df038f1
MD5 caa7ce6029717c973ae9f6ed85a15fbe
BLAKE2b-256 3e5a0e7abda50292c3968b19f4a74072772f536a98a3aeef9119e20e37714733

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