Simple Python client for BrokeAPI chat endpoint
Project description
BrokeAPI
A simple and lightweight Python client for interacting with the BrokeAPI chat API.
This module lets you easily send prompts and receive AI-generated replies with simple method calls.
Installation
pip install brokeapi
Usage
from brokeapi import BrokeAPI
# Initialize the API client with your API key
api = BrokeAPI('YOUR_KEY_HERE')
try:
# Send a prompt to the BrokeAPI chat endpoint
response = api.send_prompt('Hello from Python!')
# Print the reply text from the API
print('BrokeAPI reply:\n', response.get('reply'))
except Exception as err:
print('Error:', err)
How to get key?
To get an API key, join our official Discord server.
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
brokeapi-1.0.1.tar.gz
(2.2 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 brokeapi-1.0.1.tar.gz.
File metadata
- Download URL: brokeapi-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d885319e306ed2885bb96d81290578600c55aee48ed63460a8f35f4bf8629319
|
|
| MD5 |
da6ca768ece1cf7ffe1e8491d30a3510
|
|
| BLAKE2b-256 |
a2d8dd1743397e500c3432b0793a1c4760b684e5c909cd1e1d4a2e62ddf27585
|
File details
Details for the file brokeapi-1.0.1-py3-none-any.whl.
File metadata
- Download URL: brokeapi-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2469b6bb5238787c9c34e13c188d5849b74f4f269fc69c24587004a9021ae293
|
|
| MD5 |
063ea15fa1572757f410c8decee60a71
|
|
| BLAKE2b-256 |
34f8e4d61186b8de748e960c47389c0d5e108d023806adf7b3af50b242bee5e7
|