Python SDK
Install and start using the Python SDK.
Intro
The Nimble SDK SDK provides access to the Nimble SDK REST APIs.
The AI-Native SDK for Real-Time Web Data at scale
Installation
Add the SDK to your project from its folder, with whichever package manager your project uses. Give each tool a path containing a slash, such as ../nimble-sdk — a bare folder name is looked up on PyPI instead, and resolves to whatever project holds that name there:
pip install <path-to-sdk>uv add <path-to-sdk>poetry add <path-to-sdk>Quick Start
Synchronous client
Construct NimbleSdkClient with keyword arguments, and call close() when you are done. Every argument is optional.
from nimble_sdk import NimbleSdkClient
client = NimbleSdkClient(bearer_auth="YOUR_BEARER_TOKEN", environment="production")
client.close()Alternatively, scope it — with NimbleSdkClient(...) as client: closes the pool on exit.
Asynchronous client
AsyncNimbleSdkClient mirrors NimbleSdkClient with identical method names, and every endpoint method is a coroutine. It takes the same arguments, with some differences — for example, the transport argument is custom_async_http_client.
from asyncio import run
from nimble_sdk import AsyncNimbleSdkClient
async def main() -> None:
client = AsyncNimbleSdkClient(bearer_auth="YOUR_BEARER_TOKEN", environment="production")
await client.aclose()
run(main())Alternatively, scope it — async with AsyncNimbleSdkClient(...) as client: closes the pool on exit.