Metadata-Version: 2.4
Name: bundleport-connect-hotels-client
Version: 0.1.0
Summary: Python client for the Bundleport Connect Hotels service
Author: Bundleport
License: GPL-3.0-only
Project-URL: Homepage, https://github.com/bundleport/connect-go-schema
Project-URL: Repository, https://github.com/bundleport/connect-go-schema
Project-URL: Issues, https://github.com/bundleport/connect-go-schema/issues
Keywords: bundleport,connect,hotels,protobuf,grpc,client
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.32.0
Requires-Dist: protobuf>=5.0.0
Requires-Dist: grpcio>=1.60.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-mock>=3.11.0; extra == "dev"
Requires-Dist: responses>=0.23.0; extra == "dev"

# 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

```bash
pip install bundleport-connect-hotels-client
```

## Usage

```python
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

```bash
pip install -e ".[dev]"
pytest
```

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