Skip to main content

No project description provided

Project description

OpenPluginSDK

The OpenPlugin SDK for python is a powerful and versatile toolkit designed to streamline the integration and consumption of OpenPlugin API services. This SDK empowers developers to effortlessly leverage the capabilities of the OpenPlugin ecosystem, promoting rapid development.

Currently available in preview mode. Try it out today!

Getting started

  1. Install the package from pypi:
pip install openplugin-sdk

Note: You need openplugin service API to run openplugin sdk

  1. Setup openplugin service:
remote_server_endpoint = "...."
openplugin_api_key = "...."
svc = OpenpluginService(
        remote_server_endpoint=remote_server_endpoint, api_key=openplugin_api_key
)
  1. Run openplugin
openplugin_manifest_url = "...."
prompt = "..."
output_module_name="..."

response = svc.run(
        openplugin_manifest_url=openplugin_manifest_url,
        prompt=prompt,
        output_module_names=[output_module_name],
)
print(f"Response={response.value}")

Starting openplugin service locally

  1. Install the package from pypi:
pip install openplugin
  1. Start openplugin service
export OPENAI_API_KEY=<your key>
openplugin start-server

Note: Learn more about openplugin at: https://openplugin.org/

Examples

Several samples to run an openplugin can be found in the examples folder

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

openplugin_sdk-0.1.5.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

openplugin_sdk-0.1.5-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

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