Skip to main content

Python client for the Bundleport Connect Hotels service

Project description

Bundleport Connect Hotels Python Client

This package provides a lightweight Connect RPC client for the Bundleport Connect Hotels service. It serializes requests using protobuf by default and exposes a client that mirrors the Integration RPC surface.

Installation

pip install bundleport-connect-hotels-client

Usage

from bundleport_aggregator_client import IntegrationClient, ClientOptions
from hotels.domain.request.search_request_hotels_pb2 import SearchRequest
from hotels.domain.response.search_response_hotels_pb2 import SearchResponse

client = IntegrationClient(
    "https://api.example.com",
    ClientOptions(timeout_ms=5000, debug=False)
)

request = SearchRequest()
# ... set request fields ...

response = client.search(request, SearchResponse())
print(response)
client.close()

Development

pip install -e ".[dev]"
pytest

This client uses the bundleport-connect-hotels package for type definitions, which is published separately to PyPI.

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

bundleport_connect_hotels_client-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for bundleport_connect_hotels_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66b87446687b529fbaa0416b5970350c39f760dadc851c674332de5e835603e9
MD5 f7a662ed914ed0b3532d37df22dd26f5
BLAKE2b-256 9a801216a4827e2f18e1b045c347fb34b4e572a7844d1d13018bebf9ca496147

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bundleport_connect_hotels_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a39e40b9c9dbee63065e1c10ebc59a89cef823db793a9341a2058544e90ab1
MD5 1b4ffd3beff4260cf3214126e6eee32e
BLAKE2b-256 b1763d42163367cb44426e36706c98bdeefa20c62c2ec9e52ce7d886b9bd63fe

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