No project description provided
Project description
Chima Python Library
Documentation
API reference documentation is available here.
Installation
Add this dependency to your project's build file:
pip install chima
# or
poetry add chima
Usage
from chima.client import Chima
chima_client = Chima()
response = chima_client.search(group_id="group_id", query="Your query")
print(response)
Async client
This SDK also includes an async client, which supports the await
syntax:
import asyncio
from chima.client import AsyncChima
chima_client = AsyncChima()
async def get_response() -> None:
response = await chima_client.search(group_id="group_id")
print(response)
asyncio.run(get_response())
Streaming
Chima's streaming endpoint will return a Python generator that you can iterate over.
from chima.client import Chima
chima_client = Chima()
response = chima_client.stream(level_context="Some context.")
for chunk in response:
print(chunk)
Beta status
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your lock file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributing
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file chima-0.0.37.tar.gz
.
File metadata
- Download URL: chima-0.0.37.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa122e96d6469045218debdbdcf757b2a85457b6a48cbe5caf4550f3b401764 |
|
MD5 | 192e89ef03554cf68332d658ce075102 |
|
BLAKE2b-256 | 6a76fae0afdba9a4f3f3cbf2daa5f22b999eb158d1c37418ec688f522c0efb66 |
File details
Details for the file chima-0.0.37-py3-none-any.whl
.
File metadata
- Download URL: chima-0.0.37-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 063ec2775db65671cc265cc676c47d09babe045cd14ba0af4d0a7bf02117bde3 |
|
MD5 | 7d1021f4b6c911c07f04055eb0f9d6c1 |
|
BLAKE2b-256 | 1dc18287e01e802053b5e3a1ee9d5da85ae797e418f5b882704d58d794266600 |