aiplugins-0.0.4
توضیحات
Connect plugins to AI
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiplugins-0.0.4 |
| نام | aiplugins |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aiplugins/ |
| مجوز | MIT |
# 🎸 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](https://www.plugplai.com/).
- `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:
```python
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/](https://plugplai.com/)
- API reference: [https://plugnplai.github.io/](https://plugnplai.github.io/)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.2,<3.0.0 | requests |
| >=6.0,<7.0 | pyyaml |
| >=1.10.7,<2.0.0 | pydantic |
| >=1.1.0,<2.0.0 | jsonref |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl aiplugins-0.0.4:
pip install aiplugins-0.0.4.whl
نصب پکیج tar.gz aiplugins-0.0.4:
pip install aiplugins-0.0.4.tar.gz