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
Metadata
Release files for kitchenai-py 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kitchenai_py-0.0.2.tar.gz | 6.0 kB | Without provenance | Details for kitchenai_py-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kitchenai_py-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for kitchenai_py-0.0.2-py3-none-any.whl |
Total release size: 11.5 kB
Release files / kitchenai_py-0.0.2.tar.gz
| Download URL | kitchenai_py-0.0.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e8f8d03ba62a7a468fd2880162c6bde9c4159e6af434530993ce65d72de3246
|
|
BLAKE2b-256 checksum How to use checksums |
e1c61c35c9cd24e2c2d21f94b66cac4a78fca609c84cec536fb19af65b7cd8b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / kitchenai_py-0.0.2-py3-none-any.whl
| Download URL | kitchenai_py-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb020fbbf474d478bb4dd7120e5afe7bb3c4088b249ca0d943360f4c4207af48
|
|
BLAKE2b-256 checksum How to use checksums |
7e4ad3a2bcfdec80849e6ef46bf89413f84272ab5389828395f7f42f2b1a55e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Security for kitchenai-py 0.0.2
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.