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!
- Install the package from pypi:
pip install openplugin-sdk
Note: You need openplugin service API to run openplugin sdk
- Setup openplugin service:
remote_server_endpoint = "...."
openplugin_api_key = "...."
svc = OpenpluginService(
remote_server_endpoint=remote_server_endpoint, api_key=openplugin_api_key
)
- 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}")
- Install the package from pypi:
pip install openplugin
- Start openplugin service
export OPENAI_API_KEY=<your key>
openplugin start-server
Note: Learn more about openplugin at: https://openplugin.org/
Several samples to run an openplugin can be found in the examples folder