Maki AI widget SDK for Python applications.
Project description
makkiai-python
Python SDK for Maki AI widget integrations.
Install
pip install makkiai-python
Quick Start
import asyncio
from makiai import AsyncWidgetClient
async def main():
client = AsyncWidgetClient(
base_url="https://api.yourdomain.com",
api_key="YOUR_API_KEY",
client_sdk="2.0"
)
# Fetch widget contract
contract = await client.fetch_contract()
print("Widget:", contract.widget.name)
# Post message
response = await client.post_chat("Hello!")
print(response)
if __name__ == "__main__":
asyncio.run(main())
Schema & Validation Parity
This SDK includes generated schemas and models matching the canonical widget specifications under makiai.schema_models_generated. Use them to validate incoming streaming events or contract payloads:
from makiai.schema_models_generated import GENERATED_WIDGET_EVENT_TYPES
# Check event type support
if event["event"] in GENERATED_WIDGET_EVENT_TYPES:
print("Valid streaming event!")
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
makkiai_py-0.3.1.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file makkiai_py-0.3.1.tar.gz.
File metadata
- Download URL: makkiai_py-0.3.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed3da080347b29e2799d5e1bf30d10e1ddb2527eaad8ef86be80b2f4acaa02e6
|
|
| MD5 |
f4f4d1b8dcb5c1e1a2cdddf9024e38a7
|
|
| BLAKE2b-256 |
d03854e3b9c0767ef669f210a272b4693f1d9a7fa1d0fe38e16e480430c5538a
|
File details
Details for the file makkiai_py-0.3.1-py3-none-any.whl.
File metadata
- Download URL: makkiai_py-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5c2e43917eb77c8b455c3ad19ba73360ea039fd99068682bbe88a9b3cf1d5e
|
|
| MD5 |
61ceff700b0aca980d5c69f7dad284ed
|
|
| BLAKE2b-256 |
fd03cccd145503ef9ee3e8c1055e1d7771b17d36dfbec2d2c40b113e01c2ece1
|