Open Exchange Python SDK.
Project description
Open Exchange Python SDK
The Open Exchange Python SDK provides access to the Open Exchange REST API from applications written in Python 3.6 and later.
Documentation
The REST API documentation is available at https://openexchange.readme.io/.
Installation
You can install the package via pip:
pip install open-exchange
Usage
See the examples directory for examples of how to use the SDK.
import open_exchange
from open_exchange.types.data import rental_comps_fetch_params, rental_comps_response
from typing import List
# get API KEY from environment variable OPEN_EXCHANGE_API_KEY
client = open_exchange.OpenExchangeClient()
addresses: List[rental_comps_fetch_params.Address] = [
{
"street": " 5201 S 44th St",
"city": "Omaha",
"state": "NE",
"postal_code": "68107",
"token": "client-provided-token-1",
}
]
filters: rental_comps_fetch_params.Filters = {
"bedrooms_total": {
"relative": 1,
}
}
# get rental comps for a iterable of addresses with filters
result: rental_comps_response.Result
for result in client.data.rental_comps.fetch(addresses=addresses, filters=filters):
assert result.token == "client-provided-token-1"
print("Subject property details:", result.subject_property_details)
print("Number of rental comps:", len(result.rental_comps))
print("Rental comps:", result.rental_comps)
Logging
We use the Python standard library logging module.
Requirements
Python 3.6 or higher.
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
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 open_exchange-0.2.0.tar.gz.
File metadata
- Download URL: open_exchange-0.2.0.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35b737cc522a2ec004baf9e4740a79f74d78b8a8f92895a02c7f605e024a9245
|
|
| MD5 |
4df350ff2a727357aeb268f3ad7655ac
|
|
| BLAKE2b-256 |
4b4ab44f9be31c5d30de48a477df4cf805a90a94a9b87bd9f15ddc265ca10e72
|
File details
Details for the file open_exchange-0.2.0-py3-none-any.whl.
File metadata
- Download URL: open_exchange-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e2c76146e3f58f70ad78676d10864d44ebb3255208d1be78b03982902086a3c
|
|
| MD5 |
905cdfc7d96e938d73c7f0b80390da3e
|
|
| BLAKE2b-256 |
c4d5612e81840ff1edd4824064e16342615058d65fb559145d53b0cedef1d49c
|