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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file openplugin_sdk-0.1.5.tar.gz.

File metadata

  • Download URL: openplugin_sdk-0.1.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for openplugin_sdk-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c3626c9429bf2eca35c85fbe72c9214bc7ce7dfe8a1cc518b563530318f4320e
MD5 ef1c47fae39f27472047991176305b47
BLAKE2b-256 c2b273d03a08fd0849498fa2a42a08ba4990c35a46d0fff0cfe642d258b71a81

See more details on using hashes here.

File details

Details for the file openplugin_sdk-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: openplugin_sdk-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for openplugin_sdk-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9af0e597012a90099537c417569e109824ab2513c9bfc57d8f8cd872e4e399a1
MD5 10f4e5970b3192d1fa7757b6387a90a1
BLAKE2b-256 6f1f626049e65a23b9c3e018e5caa6fb2129354da236c8983b5bd3b10e620e9e

See more details on using hashes here.

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