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)

Metadata

Release files for codemie-client 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codemie-client 0.1.11
File Size Uploaded Provenance Actions
codemie_client-0.1.11.tar.gz 7.5 kB Without provenance Details for codemie_client-0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codemie-client 0.1.11
File Interpreter ABI Platform Actions
codemie_client-0.1.11-py3-none-any.whl Python 3 none any Details for codemie_client-0.1.11-py3-none-any.whl

Total release size: 13.4 kB

Release files / codemie_client-0.1.11.tar.gz

Download URL codemie_client-0.1.11.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
49e31e5bf9e9545109e168b31c9b555c03599d785856eee48b4ba56a29417d48
BLAKE2b-256 checksum
How to use checksums
75e4f0b42db808363dfa2b036492ae81eab19af623ee5cbf832bfb0da10bb4a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Darwin/23.5.0

Release files / codemie_client-0.1.11-py3-none-any.whl

Download URL codemie_client-0.1.11-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7d3c4b90878a6d5f3a107cebd7849b0ad8381ef331a8b57b6597d56aa0aff44
BLAKE2b-256 checksum
How to use checksums
f0983c48674f41bb22585f118a79b9c5bc138cdf8247899856ae4dedae7ebd5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Darwin/23.5.0

Security for codemie-client 0.1.11

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.

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