🎸 Plug and Plai
Plug and Plai is an open source library aiming to simplify the integration of AI plugins into open-source language models (LLMs).
It provides utility functions to get a list of active plugins from plugnplai.com directory, get plugin manifests, and extract OpenAPI specifications and load plugins.
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 all plugins from plugnplai.com
urls = plugnplai.get_plugins()
# Get ChatGPT plugins - only ChatGPT verified plugins
urls = plugnplai.get_plugins(filter = 'ChatGPT')
# Get working plugins - only tested plugins (in progress)
urls = plugnplai.get_plugins(filter = 'working')
# Get the Manifest and the OpenAPI specification from the plugin URL
manifest, openapi_spec = spec_from_url(plugins[0])
Contributing
Plug and Plai is an open source library, and we welcome contributions from the entire community. If you're interested in contributing to the project, please feel free to fork, submit pull requests, report issues, or suggest new features.
Links
- Plugins directory: https://plugplai.com/
- API reference: https://plugnplai.github.io/
Metadata
Release files for aiplugins 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiplugins-0.0.4.tar.gz | 7.0 kB | Without provenance | Details for aiplugins-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiplugins-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for aiplugins-0.0.4-py3-none-any.whl |
Total release size: 15.4 kB
Release files / aiplugins-0.0.4.tar.gz
| Download URL | aiplugins-0.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22ec1cc1ce83e5d0967263c822c79e83f755796e5fffb6887d7872a45d04952d
|
|
BLAKE2b-256 checksum How to use checksums |
3268e556ccd14e28db95f042a09bc6d5bcc84b19f2f95032db99d317a55c9190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.13 Linux/5.15.0-67-generic
|
Release files / aiplugins-0.0.4-py3-none-any.whl
| Download URL | aiplugins-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5010acfcd04d0c13e2f3ad92f5dfab9a2bc7be15d65f83c25841eff1145dd1c2
|
|
BLAKE2b-256 checksum How to use checksums |
d736749c8db800ed1b44aacde4e636cd5fd816b62ccbb37e29e07658eb8182b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.13 Linux/5.15.0-67-generic
|
Security for aiplugins 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.