Skip to main content

NinjaAPI

Project description

kitchenai-python-sdk

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.10.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

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

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import kitchenai_python_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

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

Then import the package:

import kitchenai_python_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import kitchenai_python_sdk
from kitchenai_python_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = kitchenai_python_sdk.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with kitchenai_python_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = kitchenai_python_sdk.DefaultApi(api_client)
    label = 'label_example' # str | 
    query_schema = kitchenai_python_sdk.QuerySchema() # QuerySchema | 

    try:
        # Agent Handler
        api_response = api_instance.kitchenai_contrib_kitchenai_sdk_kitchenai_agent_handler(label, query_schema)
        print("The response of DefaultApi->kitchenai_contrib_kitchenai_sdk_kitchenai_agent_handler:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->kitchenai_contrib_kitchenai_sdk_kitchenai_agent_handler: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi kitchenai_contrib_kitchenai_sdk_kitchenai_agent_handler POST /api/default/agent/{label} Agent Handler
DefaultApi kitchenai_contrib_kitchenai_sdk_kitchenai_query_handler POST /api/default/query/{label} Query Handler
DefaultApi kitchenai_core_api_default GET /api/core/health Default
DefaultApi kitchenai_core_api_embed_create POST /api/core/embed Embed Create
DefaultApi kitchenai_core_api_embed_delete DELETE /api/core/embed/{pk} Embed Delete
DefaultApi kitchenai_core_api_embed_get GET /api/core/embed/{pk} Embed Get
DefaultApi kitchenai_core_api_embeds_get GET /api/core/embed Embeds Get
DefaultApi kitchenai_core_api_file_delete DELETE /api/core/file/{pk} File Delete
DefaultApi kitchenai_core_api_file_get GET /api/core/file/{pk} File Get
DefaultApi kitchenai_core_api_file_upload POST /api/core/file File Upload
DefaultApi kitchenai_core_api_files_get GET /api/core/file Files Get

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

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_python_sdk-1.1.0.tar.gz (23.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_python_sdk-1.1.0-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file kitchenai_python_sdk-1.1.0.tar.gz.

File metadata

  • Download URL: kitchenai_python_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Linux/6.9.3-76060903-generic

File hashes

Hashes for kitchenai_python_sdk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a98f59d55761747d6d21254f8ca631f4b23197deab2db3647a5a9cadf900d7f8
MD5 1246a04b5d5a2e159f31f4ea53c08fa9
BLAKE2b-256 095c8bc7c524e86606d5fbbaa436d418c8e5229ecfb0de49a3cf91e0ac74aae7

See more details on using hashes here.

File details

Details for the file kitchenai_python_sdk-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: kitchenai_python_sdk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Linux/6.9.3-76060903-generic

File hashes

Hashes for kitchenai_python_sdk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5afdb20c2db9f21152b679380806d5292b39ad1a236c04fc5de2be496d3265a
MD5 85352b6d20b87b2ee188a7bdd5b1b9b6
BLAKE2b-256 53d1b6a63d95be6279a5538ce89de78c2f9ebbbb1bbc2c97c2e1a50ee65bdc98

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