Skip to main content

Pirate API for aviasales.ru

Project description

aviasales pirate API wrapper

Async convenient wrapper for the unofficial aviasales API

Installation

pip install aviasales

Example of usage

from aviasales import AviaSalesAPI

api = AviaSalesAPI()


async def run():
    search_uuid = await api.start(
        origin="DME", destination="IST", departure_at="2022-05-30"
    )
    results = await api.get_flight_legs(search_uuid)

    print(results.flight_legs)  # show flight transfers and routes
    print(results.tickets)      # show available tickets


if __name__ == '__main__':
    import asyncio
    asyncio.run(run())

Terminal output

Terminal output

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

aviasales-0.0.5.tar.gz (4.0 kB view hashes)

Uploaded Source

Supported by

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