Skip to main content

A Flixbus SDK with easy to use high-level functions.

Project description

Flixbus API Class

This repository provides a Flixbus class which makes it very easy to programmatically search for options on Flixbus.

Usage

This will show you the cheapest bus connection between Cambridge and London in November 2023:

from flixbus import Flixbus

fb = Flixbus(['united-kingdom'])
cheapest = fb.get_cheapest_for_range("01-11-2023", "01-12-2023", "Cambridge", "London")

This will give the following result:

{'arrival_city_id': '40dfdfd8-8646-11e6-9066-549f350fcb0c',
 'arrival_date_time': '2023-11-01T07:20:00+00:00',
 'departure_city_id': '3665c7fe-fc24-4b50-9b52-2187944b362c',
 'departure_date_time': '2023-11-01T05:20:00+00:00',
 'duration': {'hours': 2, 'minutes': 0},
 'duration_str': '2h 0m',
 'price': 4.49}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flixbus-0.1.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file flixbus-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: flixbus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flixbus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1958e24f6775b83ecd90b17f7007c0db4436c8f7e093c789079d97c4c6f9f9a7
MD5 42c0769e74df748dd444f7831ded766c
BLAKE2b-256 ecf51b7ae5fe345001ce1f459cc367132edc19d8daea2a5284e89f4e8b8527da

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