Skip to main content

Unofficial Python package for Reservauto's API

Project description

Reservauto API (unofficial)

This is an unofficial package to interact with the official Reservauto API available for testiing with Swagger UI at https://restapifrontoffice.reservauto.net/ReservautoFrontOffice

Installation

pip install reservauto

Usage

from reservauto import ReservautoClient

client = ReservautoClient()

# Get available branches (already loaded upon initialization)
branches = client.get_branches()

# Get cities for a branch
cities = client.get_cities(branch_id=1)

# Get stations availability for a city, location, and date range
stations_availability = client.get_stations_availability(
    city=cities[1], 
    min_latitude=45.5, 
    max_latitude=45.6, 
    min_longitude=-73.6,
    max_longitute=-73.5,
    start_datetime=datetime.datetime(2021, 1, 1, 12, 0, 0),
    end_datetime=dateetime.datetime(2021, 1, 1, 13, 0, 0),
)

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

reservauto-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reservauto-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file reservauto-0.1.0.tar.gz.

File metadata

  • Download URL: reservauto-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Darwin/23.0.0

File hashes

Hashes for reservauto-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a3c6cccff5112803d8a7a95294b01ab4a8568f3f20c4b933ba8550879d5d9a14
MD5 c0bba1cdef9681e3c12a99e70561beaa
BLAKE2b-256 b9bdf2b6f0caaeae2e49919a8737e6367e18fc4ddf51b37969efdf3916863dbf

See more details on using hashes here.

File details

Details for the file reservauto-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reservauto-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Darwin/23.0.0

File hashes

Hashes for reservauto-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bdfb28d836032b0dd1aa7a9fc9f1b2b9499a3bcafab3e7ac5f674ac78a83047
MD5 b00ecea9db0d1e517f1d6e7c24b83a81
BLAKE2b-256 a8c85e43ccbe136e74f65acbe6bd5a3771fd6e424e8f72213ae3bcc7586e77e0

See more details on using hashes here.

Supported by

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