Skip to main content

No project description provided

Project description

KitchenAIWrapper SDK

The KitchenAIWrapper SDK is a Python wrapper around the kitchenai-python-sdk, providing a simplified interface for interacting with the KitchenAI API. This wrapper handles common tasks and offers additional functionality, such as streaming queries.

Requirements

  • Python 3.11+

Installation

Using pip

If the package is hosted on a repository, you can install it directly using:

pip install kitchenai-py

Using Setuptools

Alternatively, you can install the package using Setuptools:

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Usage

Importing the Package

After installation, import the package in your Python script:

from kitchenai_py import KitchenAIWrapper

Getting Started

Here's a quick example to get you started with the KitchenAIWrapper:

from kitchenai_py import KitchenAIWrapper

# Initialize the wrapper
wrapper = KitchenAIWrapper(host="http://localhost")

# Perform a query
response = wrapper.query("example_label", "example_query", stream=True)

# Print the response
print(response)

API Methods

query(label, query, stream=False, metadata=None)

  • label: The label for the query.
  • query: The query string.
  • stream: (Optional) Boolean flag to enable streaming. Default is False.
  • metadata: (Optional) Additional metadata for the query.

Error Handling

The wrapper includes basic error handling for API exceptions. If an error occurs during an API call, it will print an error message to the console.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License.

Author

Your Name or Organization

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

kitchenai_py-0.0.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

kitchenai_py-0.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file kitchenai_py-0.0.2.tar.gz.

File metadata

  • Download URL: kitchenai_py-0.0.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for kitchenai_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9e8f8d03ba62a7a468fd2880162c6bde9c4159e6af434530993ce65d72de3246
MD5 a050105b89ba70c505ec076ce6ec14fb
BLAKE2b-256 e1c61c35c9cd24e2c2d21f94b66cac4a78fca609c84cec536fb19af65b7cd8b4

See more details on using hashes here.

File details

Details for the file kitchenai_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: kitchenai_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for kitchenai_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb020fbbf474d478bb4dd7120e5afe7bb3c4088b249ca0d943360f4c4207af48
MD5 e92ec5fc441390ad19b174b7e3310239
BLAKE2b-256 7e4ad3a2bcfdec80849e6ef46bf89413f84272ab5389828395f7f42f2b1a55e5

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