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
- GitHub Repository: https://github.com/edreisMD/plugnplai
- Plugins database: https://plugplai.com/
- Database API: https://plugnplai.github.io/
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file plugnplai-0.0.4.tar.gz
.
File metadata
- Download URL: plugnplai-0.0.4.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.9.13 Linux/5.15.0-67-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b40d2d453ee65cc717147a95e6eba29caad0af8137ad3950f89e1fb675649439 |
|
MD5 | 848fea6a15d27602264534290e6c5963 |
|
BLAKE2b-256 | 9c598140c2acfea6eae07e5857895737b366fbd777c6df029f80f8e906c0cb2b |
File details
Details for the file plugnplai-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: plugnplai-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.9.13 Linux/5.15.0-67-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 619e9cac8847aa0e4ebfb6c95b3f64b0217797f00044cae10ddd2455b3a2eb3f |
|
MD5 | 5199e2572f3f444ee9437e8f793381d4 |
|
BLAKE2b-256 | cfb7ccefc8386cc4cca506528c4f2b8bedef13e54e39ce092254a309989f1da7 |