Skip to main content

Connect plugins to AI

Project description

🎸 Plug and PLAI

Plug and PlAI is an open source library that allows you to manage AI plugins. It provides utility functions to load available plugins, get plugin manifests, and extract OpenAPI specifications.

Installation

You can install Plug and PlAI using pip:

pip install plugnplai

Usage

Utility Functions

The following utility functions are available in the library:

  • get_plugins(endpoint): Get a list of available plugins from a plugins repository.
  • get_plugin_manifest(url): Get the AI plugin manifest from the specified plugin URL.
  • get_openapi_url(url, manifest): Get the OpenAPI URL from the plugin manifest.
  • get_openapi_spec(openapi_url): Get the OpenAPI specification from the specified OpenAPI URL.
  • from_url(url): Returns the Manifest and OpenAPI specification from the plugin URL.

Example

Here is an example of how to use the utility functions:

import plugnplai

# Get a list of available plugins
plugins = plugnplai.get_plugins()

# Get the Manifest and the OpenAPI specification from the plugin URL 
manifest, openapi_spec = spec_from_url(plugins[0])

Links

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

plugnplai-0.0.4.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

plugnplai-0.0.4-py3-none-any.whl (8.3 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