Skip to main content

CodeMie Client

Project description

CodeMie Client

A Python client for interacting with the CodeMie API.

Installation

pip 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


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.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

codemie_client-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file codemie_client-0.1.1.tar.gz.

File metadata

  • Download URL: codemie_client-0.1.1.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

Hashes for codemie_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 962c03854781266d04c75dd772ec88d3fb385c5d8465855956871ec1d056572e
MD5 7a3c403b32e293a6831ad41aaeb2ab71
BLAKE2b-256 755c32d213776e7337b6188f1dc5965eb1b984323ff2a425af7763c6cc615e64

See more details on using hashes here.

File details

Details for the file codemie_client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: codemie_client-0.1.1-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

Hashes for codemie_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50e99af27c23b6c80cf8165788a3a55217485a6243ef0f26bae05d7b69985ce3
MD5 10505da3dec44cc71e1153c09fda226a
BLAKE2b-256 506c12b1d8753f47bd0fdcc5f3776d0593be56d21d7fedbdef97d7bfa2378439

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page