CodeMie Client
Project description
CodeMie Client
A Python client for interacting with the CodeMie API.
Installation
poetry install codemie-client
Usage
Initialize CodeMie Client
from codemie_client.client import CodeMieClient
client = CodeMieClient(
auth_server_url="URL",
auth_client_id="id",
auth_client_secret="secret",
auth_realm_name="codemie-dev",
codemie_api_domain="https://URL/code-assistant-api"
)
token = client.get_token()
print(token)
Retrieve Assistants
token = "your_keycloak_token"
assistants = client.get_assistants(token=token)
print(assistants)
Talk to Assistant
from codemie_client.conversation import talk_to_assistant
from codemie_client.models import ChatRequest
token = "your_keycloak_token"
request = ChatRequest(
assistant_id="ID",
message="Hello!",
history=[],
)
response_stream = client.talk_to_assistant_stream(request, token)
print(response)
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
codemie_client-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file codemie_client-0.1.0.tar.gz
.
File metadata
- Download URL: codemie_client-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6dd29125e354039a904b0b6bf1ba3e526400d75b7090023b89e6f69da69e74 |
|
MD5 | b6f66f7ed2184069d685b8dc05bde0d0 |
|
BLAKE2b-256 | 646b0d0043baff9332f9a11d82f40a29040719d60abe4b0e04f2a3d31d613bd8 |
File details
Details for the file codemie_client-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: codemie_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc6b7aeefeec9373cb1cff669afe48a6dfdf674f7ea5224b2fbf410d68701c17 |
|
MD5 | 49a95bc3f52109dce80b0d93004ed26d |
|
BLAKE2b-256 | b3af6154d64fda4ddb9226dd2c0b200c6eceacf09a9b10241fb79b6ce810e461 |