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!
Metadata
Release files for chima 0.0.37
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chima-0.0.37.tar.gz | 7.6 kB | Without provenance | Details for chima-0.0.37.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chima-0.0.37-py3-none-any.whl | Python 3 | none | any | Details for chima-0.0.37-py3-none-any.whl |
Total release size: 21.1 kB
Release files / chima-0.0.37.tar.gz
| Download URL | chima-0.0.37.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4aa122e96d6469045218debdbdcf757b2a85457b6a48cbe5caf4550f3b401764
|
|
BLAKE2b-256 checksum How to use checksums |
6a76fae0afdba9a4f3f3cbf2daa5f22b999eb158d1c37418ec688f522c0efb66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
|
Release files / chima-0.0.37-py3-none-any.whl
| Download URL | chima-0.0.37-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
063ec2775db65671cc265cc676c47d09babe045cd14ba0af4d0a7bf02117bde3
|
|
BLAKE2b-256 checksum How to use checksums |
1dc18287e01e802053b5e3a1ee9d5da85ae797e418f5b882704d58d794266600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
|
Security for chima 0.0.37
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.