Skip to main content

Chima Python Library

pypi fern shield

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)

Source distribution for chima 0.0.37
File Size Uploaded
chima-0.0.37.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chima 0.0.37
File Interpreter ABI Platform
chima-0.0.37-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.37 This release

2 release files

0.0.36

2 release files

0.0.35

2 release files

0.0.30

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page