Skip to main content

WowAir Python API

Project description

https://img.shields.io/pypi/v/wowair.svg https://img.shields.io/pypi/l/wowair.svg https://img.shields.io/github/issues/acupy/wowair_api.svg https://img.shields.io/github/issues-closed/acupy/wowair_api.svg

Install

Run the following command to install wowair using pip

$ pip install wowair

Usage:

from wowair import WowAirQuery, Currency
from datetime import timedelta, date

# Fetch available cities
cities = WowAirQuery.get_cities()
for c in sorted(cities, key=lambda city: cities[city]):
    print cities[c], c

# Fetch tickets for the next week from Montreal to Dublin
query = WowAirQuery(origin='YUL', destination='DUB')
for ticket in query.get_tickets():
    print ticket

# Fetch Available tickets from New York to Anywhere in the NEXT 30 DAYS
depart_date_from = date.today()
depart_date_to = depart_date_from + timedelta(days=30)
query = WowAirQuery(origin='EWR',
                    depart_date=(depart_date_from, depart_date_to),
                    currency=Currency.USD)
for ticket in query.get_tickets():
    if ticket.status == 'Available':
        print ticket

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

wowair-0.5.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file wowair-0.5.tar.gz.

File metadata

  • Download URL: wowair-0.5.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wowair-0.5.tar.gz
Algorithm Hash digest
SHA256 0984cacd1b7753ebba434c751531c11d832aae697d956ba7e76b7c93b8fe181e
MD5 4a8410bf4a9bd3c184cd022c55357c8c
BLAKE2b-256 2861abaea5498bf34a4cef57f328d5d8fa4bbb45afd85d686050dc88588057c9

See more details on using hashes here.

Supported by

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