Skip to main content

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)

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemie_client-0.1.11-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codemie_client-0.1.11.tar.gz
  • Upload date:
  • Size: 7.5 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.11.tar.gz
Algorithm Hash digest
SHA256 49e31e5bf9e9545109e168b31c9b555c03599d785856eee48b4ba56a29417d48
MD5 6cb444c7ae0a8ba987f2c0ac9ec67e95
BLAKE2b-256 75e4f0b42db808363dfa2b036492ae81eab19af623ee5cbf832bfb0da10bb4a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codemie_client-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 5.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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e7d3c4b90878a6d5f3a107cebd7849b0ad8381ef331a8b57b6597d56aa0aff44
MD5 47595662405dc6fcf018a0310a5ecf02
BLAKE2b-256 f0983c48674f41bb22585f118a79b9c5bc138cdf8247899856ae4dedae7ebd5c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page