zillow-rapidapi-client 0.1.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- zillow_rapidapi_client-0.1.3/PKG-INFO +419 -0
- zillow_rapidapi_client-0.1.3/README-PYPI.md +398 -0
- zillow_rapidapi_client-0.1.3/py.typed +1 -0
- zillow_rapidapi_client-0.1.3/pyproject.toml +57 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/__init__.py +18 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/_hooks/__init__.py +5 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/_hooks/registration.py +13 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/_hooks/sdkhooks.py +76 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/_hooks/types.py +106 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/_version.py +15 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/basesdk.py +358 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/httpclient.py +134 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/models/__init__.py +40 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/models/apierror.py +22 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/models/property.py +163 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/models/propertyextendedsearchop.py +106 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/models/propertysearchresponse.py +32 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/properties.py +221 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/py.typed +1 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/sdk.py +114 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/sdkconfiguration.py +52 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/types/__init__.py +21 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/types/basemodel.py +39 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/__init__.py +99 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/annotations.py +55 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/enums.py +34 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/eventstreaming.py +238 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/forms.py +202 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/headers.py +136 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/logger.py +27 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/metadata.py +118 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/queryparams.py +205 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/requestbodies.py +66 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/retries.py +217 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/security.py +174 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/serializers.py +215 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/url.py +155 -0
- zillow_rapidapi_client-0.1.3/src/zillow_rapidapi_client/utils/values.py +137 -0
@@ -0,0 +1,419 @@
|
|
1
|
+
Metadata-Version: 2.3
|
2
|
+
Name: zillow-rapidapi-client
|
3
|
+
Version: 0.1.3
|
4
|
+
Summary: Python Client SDK Generated by Speakeasy.
|
5
|
+
Author: Speakeasy
|
6
|
+
Requires-Python: >=3.9
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
13
|
+
Requires-Dist: eval-type-backport (>=0.2.0)
|
14
|
+
Requires-Dist: httpx (>=0.28.1)
|
15
|
+
Requires-Dist: pydantic (>=2.10.3)
|
16
|
+
Requires-Dist: python-dateutil (>=2.8.2)
|
17
|
+
Requires-Dist: typing-inspect (>=0.9.0)
|
18
|
+
Project-URL: Repository, https://github.com/adityaprakash-work/zillow-rapidapi-client.git
|
19
|
+
Description-Content-Type: text/markdown
|
20
|
+
|
21
|
+
# zillow-rapidapi-client
|
22
|
+
|
23
|
+
Developer-friendly & type-safe Python SDK specifically catered to leverage *zillow-rapidapi-client* API.
|
24
|
+
|
25
|
+
<div align="left">
|
26
|
+
<a href="https://www.speakeasy.com/?utm_source=zillow-rapidapi-client&utm_campaign=python"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
|
27
|
+
<a href="https://opensource.org/licenses/MIT">
|
28
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
|
29
|
+
</a>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
|
33
|
+
<br /><br />
|
34
|
+
> [!IMPORTANT]
|
35
|
+
> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/adityaprakash-work/client-packages). Delete this section before > publishing to a package manager.
|
36
|
+
|
37
|
+
<!-- Start Summary [summary] -->
|
38
|
+
## Summary
|
39
|
+
|
40
|
+
Zillow Property Extended Search API: API for searching properties using various filters.
|
41
|
+
<!-- End Summary [summary] -->
|
42
|
+
|
43
|
+
<!-- Start Table of Contents [toc] -->
|
44
|
+
## Table of Contents
|
45
|
+
<!-- $toc-max-depth=2 -->
|
46
|
+
* [zillow-rapidapi-client](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#zillow-rapidapi-client)
|
47
|
+
* [SDK Installation](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#sdk-installation)
|
48
|
+
* [IDE Support](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#ide-support)
|
49
|
+
* [SDK Example Usage](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#sdk-example-usage)
|
50
|
+
* [Available Resources and Operations](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#available-resources-and-operations)
|
51
|
+
* [Retries](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#retries)
|
52
|
+
* [Error Handling](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#error-handling)
|
53
|
+
* [Server Selection](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#server-selection)
|
54
|
+
* [Custom HTTP Client](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#custom-http-client)
|
55
|
+
* [Resource Management](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#resource-management)
|
56
|
+
* [Debugging](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#debugging)
|
57
|
+
* [Development](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#development)
|
58
|
+
* [Maturity](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#maturity)
|
59
|
+
* [Contributions](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/#contributions)
|
60
|
+
|
61
|
+
<!-- End Table of Contents [toc] -->
|
62
|
+
|
63
|
+
<!-- Start SDK Installation [installation] -->
|
64
|
+
## SDK Installation
|
65
|
+
|
66
|
+
> [!TIP]
|
67
|
+
> To finish publishing your SDK to PyPI you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
|
68
|
+
|
69
|
+
|
70
|
+
> [!NOTE]
|
71
|
+
> **Python version upgrade policy**
|
72
|
+
>
|
73
|
+
> Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.
|
74
|
+
|
75
|
+
The SDK can be installed with either *pip* or *poetry* package managers.
|
76
|
+
|
77
|
+
### PIP
|
78
|
+
|
79
|
+
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
|
80
|
+
|
81
|
+
```bash
|
82
|
+
pip install git+https://github.com/adityaprakash-work/zillow-rapidapi-client.git
|
83
|
+
```
|
84
|
+
|
85
|
+
### Poetry
|
86
|
+
|
87
|
+
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
|
88
|
+
|
89
|
+
```bash
|
90
|
+
poetry add git+https://github.com/adityaprakash-work/zillow-rapidapi-client.git
|
91
|
+
```
|
92
|
+
|
93
|
+
### Shell and script usage with `uv`
|
94
|
+
|
95
|
+
You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so:
|
96
|
+
|
97
|
+
```shell
|
98
|
+
uvx --from zillow-rapidapi-client python
|
99
|
+
```
|
100
|
+
|
101
|
+
It's also possible to write a standalone Python script without needing to set up a whole project like so:
|
102
|
+
|
103
|
+
```python
|
104
|
+
#!/usr/bin/env -S uv run --script
|
105
|
+
# /// script
|
106
|
+
# requires-python = ">=3.9"
|
107
|
+
# dependencies = [
|
108
|
+
# "zillow-rapidapi-client",
|
109
|
+
# ]
|
110
|
+
# ///
|
111
|
+
|
112
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
113
|
+
|
114
|
+
sdk = ZillowRapidapiClient(
|
115
|
+
# SDK arguments
|
116
|
+
)
|
117
|
+
|
118
|
+
# Rest of script here...
|
119
|
+
```
|
120
|
+
|
121
|
+
Once that is saved to a file, you can run it with `uv run script.py` where
|
122
|
+
`script.py` can be replaced with the actual file name.
|
123
|
+
<!-- End SDK Installation [installation] -->
|
124
|
+
|
125
|
+
<!-- Start IDE Support [idesupport] -->
|
126
|
+
## IDE Support
|
127
|
+
|
128
|
+
### PyCharm
|
129
|
+
|
130
|
+
Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin.
|
131
|
+
|
132
|
+
- [PyCharm Pydantic Plugin](https://docs.pydantic.dev/latest/integrations/pycharm/)
|
133
|
+
<!-- End IDE Support [idesupport] -->
|
134
|
+
|
135
|
+
<!-- Start SDK Example Usage [usage] -->
|
136
|
+
## SDK Example Usage
|
137
|
+
|
138
|
+
### Example
|
139
|
+
|
140
|
+
```python
|
141
|
+
# Synchronous Example
|
142
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
143
|
+
|
144
|
+
with ZillowRapidapiClient() as zrc_client:
|
145
|
+
|
146
|
+
res = zrc_client.properties.extended_search()
|
147
|
+
|
148
|
+
# Handle response
|
149
|
+
print(res)
|
150
|
+
```
|
151
|
+
|
152
|
+
</br>
|
153
|
+
|
154
|
+
The same SDK client can also be used to make asychronous requests by importing asyncio.
|
155
|
+
```python
|
156
|
+
# Asynchronous Example
|
157
|
+
import asyncio
|
158
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
159
|
+
|
160
|
+
async def main():
|
161
|
+
async with ZillowRapidapiClient() as zrc_client:
|
162
|
+
|
163
|
+
res = await zrc_client.properties.extended_search_async()
|
164
|
+
|
165
|
+
# Handle response
|
166
|
+
print(res)
|
167
|
+
|
168
|
+
asyncio.run(main())
|
169
|
+
```
|
170
|
+
<!-- End SDK Example Usage [usage] -->
|
171
|
+
|
172
|
+
<!-- Start Available Resources and Operations [operations] -->
|
173
|
+
## Available Resources and Operations
|
174
|
+
|
175
|
+
<details open>
|
176
|
+
<summary>Available methods</summary>
|
177
|
+
|
178
|
+
### [properties](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/docs/sdks/properties/README.md)
|
179
|
+
|
180
|
+
* [extended_search](https://github.com/adityaprakash-work/zillow-rapidapi-client/blob/master/docs/sdks/properties/README.md#extended_search) - Search for properties
|
181
|
+
|
182
|
+
|
183
|
+
</details>
|
184
|
+
<!-- End Available Resources and Operations [operations] -->
|
185
|
+
|
186
|
+
<!-- Start Retries [retries] -->
|
187
|
+
## Retries
|
188
|
+
|
189
|
+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
|
190
|
+
|
191
|
+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
|
192
|
+
```python
|
193
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
194
|
+
from zillow_rapidapi_client.utils import BackoffStrategy, RetryConfig
|
195
|
+
|
196
|
+
with ZillowRapidapiClient() as zrc_client:
|
197
|
+
|
198
|
+
res = zrc_client.properties.extended_search(,
|
199
|
+
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
200
|
+
|
201
|
+
# Handle response
|
202
|
+
print(res)
|
203
|
+
|
204
|
+
```
|
205
|
+
|
206
|
+
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
|
207
|
+
```python
|
208
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
209
|
+
from zillow_rapidapi_client.utils import BackoffStrategy, RetryConfig
|
210
|
+
|
211
|
+
with ZillowRapidapiClient(
|
212
|
+
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
213
|
+
) as zrc_client:
|
214
|
+
|
215
|
+
res = zrc_client.properties.extended_search()
|
216
|
+
|
217
|
+
# Handle response
|
218
|
+
print(res)
|
219
|
+
|
220
|
+
```
|
221
|
+
<!-- End Retries [retries] -->
|
222
|
+
|
223
|
+
<!-- Start Error Handling [errors] -->
|
224
|
+
## Error Handling
|
225
|
+
|
226
|
+
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
|
227
|
+
|
228
|
+
By default, an API error will raise a models.APIError exception, which has the following properties:
|
229
|
+
|
230
|
+
| Property | Type | Description |
|
231
|
+
|-----------------|------------------|-----------------------|
|
232
|
+
| `.status_code` | *int* | The HTTP status code |
|
233
|
+
| `.message` | *str* | The error message |
|
234
|
+
| `.raw_response` | *httpx.Response* | The raw HTTP response |
|
235
|
+
| `.body` | *str* | The response content |
|
236
|
+
|
237
|
+
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `extended_search_async` method may raise the following exceptions:
|
238
|
+
|
239
|
+
| Error Type | Status Code | Content Type |
|
240
|
+
| --------------- | ----------- | ------------ |
|
241
|
+
| models.APIError | 4XX, 5XX | \*/\* |
|
242
|
+
|
243
|
+
### Example
|
244
|
+
|
245
|
+
```python
|
246
|
+
from zillow_rapidapi_client import ZillowRapidapiClient, models
|
247
|
+
|
248
|
+
with ZillowRapidapiClient() as zrc_client:
|
249
|
+
res = None
|
250
|
+
try:
|
251
|
+
|
252
|
+
res = zrc_client.properties.extended_search()
|
253
|
+
|
254
|
+
# Handle response
|
255
|
+
print(res)
|
256
|
+
|
257
|
+
except models.APIError as e:
|
258
|
+
# handle exception
|
259
|
+
raise(e)
|
260
|
+
```
|
261
|
+
<!-- End Error Handling [errors] -->
|
262
|
+
|
263
|
+
<!-- Start Server Selection [server] -->
|
264
|
+
## Server Selection
|
265
|
+
|
266
|
+
### Override Server URL Per-Client
|
267
|
+
|
268
|
+
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
269
|
+
```python
|
270
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
271
|
+
|
272
|
+
with ZillowRapidapiClient(
|
273
|
+
server_url="https://zillow-com1.p.rapidapi.com",
|
274
|
+
) as zrc_client:
|
275
|
+
|
276
|
+
res = zrc_client.properties.extended_search()
|
277
|
+
|
278
|
+
# Handle response
|
279
|
+
print(res)
|
280
|
+
|
281
|
+
```
|
282
|
+
<!-- End Server Selection [server] -->
|
283
|
+
|
284
|
+
<!-- Start Custom HTTP Client [http-client] -->
|
285
|
+
## Custom HTTP Client
|
286
|
+
|
287
|
+
The Python SDK makes API calls using the [httpx](https://www.python-httpx.org/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with your own HTTP client instance.
|
288
|
+
Depending on whether you are using the sync or async version of the SDK, you can pass an instance of `HttpClient` or `AsyncHttpClient` respectively, which are Protocol's ensuring that the client has the necessary methods to make API calls.
|
289
|
+
This allows you to wrap the client with your own custom logic, such as adding custom headers, logging, or error handling, or you can just pass an instance of `httpx.Client` or `httpx.AsyncClient` directly.
|
290
|
+
|
291
|
+
For example, you could specify a header for every request that this sdk makes as follows:
|
292
|
+
```python
|
293
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
294
|
+
import httpx
|
295
|
+
|
296
|
+
http_client = httpx.Client(headers={"x-custom-header": "someValue"})
|
297
|
+
s = ZillowRapidapiClient(client=http_client)
|
298
|
+
```
|
299
|
+
|
300
|
+
or you could wrap the client with your own custom logic:
|
301
|
+
```python
|
302
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
303
|
+
from zillow_rapidapi_client.httpclient import AsyncHttpClient
|
304
|
+
import httpx
|
305
|
+
|
306
|
+
class CustomClient(AsyncHttpClient):
|
307
|
+
client: AsyncHttpClient
|
308
|
+
|
309
|
+
def __init__(self, client: AsyncHttpClient):
|
310
|
+
self.client = client
|
311
|
+
|
312
|
+
async def send(
|
313
|
+
self,
|
314
|
+
request: httpx.Request,
|
315
|
+
*,
|
316
|
+
stream: bool = False,
|
317
|
+
auth: Union[
|
318
|
+
httpx._types.AuthTypes, httpx._client.UseClientDefault, None
|
319
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
320
|
+
follow_redirects: Union[
|
321
|
+
bool, httpx._client.UseClientDefault
|
322
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
323
|
+
) -> httpx.Response:
|
324
|
+
request.headers["Client-Level-Header"] = "added by client"
|
325
|
+
|
326
|
+
return await self.client.send(
|
327
|
+
request, stream=stream, auth=auth, follow_redirects=follow_redirects
|
328
|
+
)
|
329
|
+
|
330
|
+
def build_request(
|
331
|
+
self,
|
332
|
+
method: str,
|
333
|
+
url: httpx._types.URLTypes,
|
334
|
+
*,
|
335
|
+
content: Optional[httpx._types.RequestContent] = None,
|
336
|
+
data: Optional[httpx._types.RequestData] = None,
|
337
|
+
files: Optional[httpx._types.RequestFiles] = None,
|
338
|
+
json: Optional[Any] = None,
|
339
|
+
params: Optional[httpx._types.QueryParamTypes] = None,
|
340
|
+
headers: Optional[httpx._types.HeaderTypes] = None,
|
341
|
+
cookies: Optional[httpx._types.CookieTypes] = None,
|
342
|
+
timeout: Union[
|
343
|
+
httpx._types.TimeoutTypes, httpx._client.UseClientDefault
|
344
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
345
|
+
extensions: Optional[httpx._types.RequestExtensions] = None,
|
346
|
+
) -> httpx.Request:
|
347
|
+
return self.client.build_request(
|
348
|
+
method,
|
349
|
+
url,
|
350
|
+
content=content,
|
351
|
+
data=data,
|
352
|
+
files=files,
|
353
|
+
json=json,
|
354
|
+
params=params,
|
355
|
+
headers=headers,
|
356
|
+
cookies=cookies,
|
357
|
+
timeout=timeout,
|
358
|
+
extensions=extensions,
|
359
|
+
)
|
360
|
+
|
361
|
+
s = ZillowRapidapiClient(async_client=CustomClient(httpx.AsyncClient()))
|
362
|
+
```
|
363
|
+
<!-- End Custom HTTP Client [http-client] -->
|
364
|
+
|
365
|
+
<!-- Start Resource Management [resource-management] -->
|
366
|
+
## Resource Management
|
367
|
+
|
368
|
+
The `ZillowRapidapiClient` class implements the context manager protocol and registers a finalizer function to close the underlying sync and async HTTPX clients it uses under the hood. This will close HTTP connections, release memory and free up other resources held by the SDK. In short-lived Python programs and notebooks that make a few SDK method calls, resource management may not be a concern. However, in longer-lived programs, it is beneficial to create a single SDK instance via a [context manager][context-manager] and reuse it across the application.
|
369
|
+
|
370
|
+
[context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers
|
371
|
+
|
372
|
+
```python
|
373
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
374
|
+
def main():
|
375
|
+
with ZillowRapidapiClient() as zrc_client:
|
376
|
+
# Rest of application here...
|
377
|
+
|
378
|
+
|
379
|
+
# Or when using async:
|
380
|
+
async def amain():
|
381
|
+
async with ZillowRapidapiClient() as zrc_client:
|
382
|
+
# Rest of application here...
|
383
|
+
```
|
384
|
+
<!-- End Resource Management [resource-management] -->
|
385
|
+
|
386
|
+
<!-- Start Debugging [debug] -->
|
387
|
+
## Debugging
|
388
|
+
|
389
|
+
You can setup your SDK to emit debug logs for SDK requests and responses.
|
390
|
+
|
391
|
+
You can pass your own logger class directly into your SDK.
|
392
|
+
```python
|
393
|
+
from zillow_rapidapi_client import ZillowRapidapiClient
|
394
|
+
import logging
|
395
|
+
|
396
|
+
logging.basicConfig(level=logging.DEBUG)
|
397
|
+
s = ZillowRapidapiClient(debug_logger=logging.getLogger("zillow_rapidapi_client"))
|
398
|
+
```
|
399
|
+
|
400
|
+
You can also enable a default debug logger by setting an environment variable `ZILLOWRAPIDAPICLIENT_DEBUG` to true.
|
401
|
+
<!-- End Debugging [debug] -->
|
402
|
+
|
403
|
+
<!-- Placeholder for Future Speakeasy SDK Sections -->
|
404
|
+
|
405
|
+
# Development
|
406
|
+
|
407
|
+
## Maturity
|
408
|
+
|
409
|
+
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
|
410
|
+
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
|
411
|
+
looking for the latest version.
|
412
|
+
|
413
|
+
## Contributions
|
414
|
+
|
415
|
+
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
|
416
|
+
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
|
417
|
+
|
418
|
+
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=zillow-rapidapi-client&utm_campaign=python)
|
419
|
+
|