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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bundleport_connect_hotels_client-0.1.0.tar.gz.
File metadata
- Download URL: bundleport_connect_hotels_client-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b87446687b529fbaa0416b5970350c39f760dadc851c674332de5e835603e9
|
|
| MD5 |
f7a662ed914ed0b3532d37df22dd26f5
|
|
| BLAKE2b-256 |
9a801216a4827e2f18e1b045c347fb34b4e572a7844d1d13018bebf9ca496147
|
File details
Details for the file bundleport_connect_hotels_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bundleport_connect_hotels_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6a39e40b9c9dbee63065e1c10ebc59a89cef823db793a9341a2058544e90ab1
|
|
| MD5 |
1b4ffd3beff4260cf3214126e6eee32e
|
|
| BLAKE2b-256 |
b1763d42163367cb44426e36706c98bdeefa20c62c2ec9e52ce7d886b9bd63fe
|