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 details)

Uploaded Source

File details

Details for the file aviasales-0.0.5.tar.gz.

File metadata

  • Download URL: aviasales-0.0.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for aviasales-0.0.5.tar.gz
Algorithm Hash digest
SHA256 98c00b6d46095e09c15a1d82204a68db1fc76bae4f1097581bb54bec7a458a13
MD5 c2faa36d4d4297da90230dc47a4fc578
BLAKE2b-256 ad100afb266fb4fb72571062d5449041a7a63086653d52cf49ccc3f219784e40

See more details on using hashes here.

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