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.2.tar.gz (2.6 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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reservauto-0.1.2.tar.gz
  • Upload date:
  • Size: 2.6 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.2.tar.gz
Algorithm Hash digest
SHA256 0b6fd53ea44ff46bd84fb2f079ed0ee0e7bdc3bc5b1745a654106b707dc226cb
MD5 c276e02c1e603100795c285c9d5e1e9f
BLAKE2b-256 7bbe45080c5aff01bbf6f31a6fbeae17f68eaa80bd2ac59d17eb00c17a30694a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reservauto-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e0c5c2aaed2f4fea2be74b39ce6cab63c2df8008f6bd456ff49eabd780f106
MD5 1d29ab5fc3f99675bc64324ad300dde3
BLAKE2b-256 de46b30f3c98438e2ebce87624f76af8df091ae62c304a901b29dcfbf6214a2b

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