Skip to main content

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


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

Uploaded Source

Built Distribution

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

brokeapi-1.0.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file brokeapi-1.0.0.tar.gz.

File metadata

  • Download URL: brokeapi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for brokeapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8046bdbab9128d76cd6d0f3b75b61ec8916ea2a0c71e47a2e9f6e449cdf3590e
MD5 22217e112f3ea8f22c972177a4400dfc
BLAKE2b-256 8f96ee902a9e13f3043b22268aafc1e4e54fb0d7f43d326e3064ba115282d46a

See more details on using hashes here.

File details

Details for the file brokeapi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: brokeapi-1.0.0-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

Hashes for brokeapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 678de05bf5c30aa8853bfed43963a79062def17975d54832f08adbd2e01d6eb6
MD5 e94531dd6f60da6074b1177110be62c8
BLAKE2b-256 05fc4ff8aba9f9bef7a0ffcc9c223a44a9f176c5ea182bd4ec3df9941ecdcd92

See more details on using hashes here.

Supported by

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