Metadata-Version: 1.1
Name: wowair
Version: 0.5
Summary: WowAir Python API
Home-page: https://github.com/acupy/wowair_api
Author: Adam Czuprak
Author-email: adam.czuprak@hotmail.com
License: MIT
Download-URL: https://github.com/acupy/wowair_api/archive/0.5.tar.gz
Description: Install
        =======
        
        Run the following command to install wowair using pip
        
        .. code-block:: bash
        
            $ pip install wowair
        
        Usage:
        ======
        
        .. code-block:: python
        
            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
            wowair = WowAirQuery(origin='YUL', destination='DUB')
            for ticket in wowair.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
        
Keywords: wowair,api
Platform: UNKNOWN
