Rent Dynamics Python Client
raw JSON → 1.1.1 verified Sat May 09 auth: no python
Official Python client library for the Rent Dynamics API (v1.1.1). Provides async methods for property management operations. Currently in active development with monthly releases.
pip install rentdynamics Common errors
error TypeError: Client.__init__() missing 1 required positional argument: 'api_key' ↓
cause api_key parameter became required in v1.0.0
fix
Provide api_key: RentDynamicsClient(api_key='your_key') or set env var RENTDYNAMICS_API_KEY
error RuntimeError: asyncio.run() cannot be called from a running event loop ↓
cause Calling asyncio.run() inside a Jupyter notebook or nested async context
fix
Use await directly or use nest_asyncio: import nest_asyncio; nest_asyncio.apply()
Warnings
breaking RentDynamicsClient now requires the api_key parameter (was optional in v0.x). ↓
fix Pass api_key explicitly or set RENTDYNAMICS_API_KEY environment variable.
gotcha All methods are async; calling them without await results in a coroutine object, not actual data. ↓
fix Always await the method call: await client.properties.list()
Imports
- RentDynamicsClient wrong
from rentdynamics.client import RentDynamicsClientcorrectfrom rentdynamics import RentDynamicsClient
Quickstart
import asyncio
from rentdynamics import RentDynamicsClient
async def main():
client = RentDynamicsClient(api_key=os.environ.get('RENTDYNAMICS_API_KEY', ''))
properties = await client.properties.list()
print(properties)
asyncio.run(main())