> Flask-PluginKit - 基于Flask的插件式开发工具 [![PyPI](https://img.shields.io/pypi/v/Flask-PluginKit.svg?style=popout)](https://pypi.org/project/Flask-PluginKit/) 程序地址:[https://github.com/staugur/Flask-PluginKit](https://github.com/staugur/Flask-PluginKit) 详细文档:[https://flask-pluginkit.readthedocs.io/](https://flask-pluginkit.readthedocs.io/) 功能说明: * Flask扩展,以支持应用插件式开发 * 支持上下文扩展点、模板扩展点、蓝图扩展点、静态扩展点 * 模板扩展点支持HTML代码和文件 * 插件支持添加静态文件 * 插件安装管理(从url或local安装插件zip、gz包) * 插件存储数据等 ## Source [https://blog.saintic.com/blog/231.html](https://blog.saintic.com/blog/231.html "https://blog.saintic.com/blog/231.html") ## 使用概述(Overview) 安装(Installation) ```bash $ pip install -U Flask-PluginKit 或(or) $ pip install -U https://github.com/staugur/Flask-PluginKit/archive/master.tar.gz ``` 测试用例(TestCase) ```bash $ make test 或(or) $ python setup.py test ``` 普通模式(Usage) ```python from flask_pluginkit import PluginManager plugin = PluginManager(app) ``` 工厂模式(The factory pattern) ```python from flask_pluginkit import PluginManager plugin = PluginManager() plugin.init_app(app) ``` ## 术语表(Glossary) * tep - 模板扩展点 * bep - 蓝图扩展点 * hep - 钩子扩展点 * yep - CSS样式扩展点 * sep - 信号扩展点 ## 资源(Resources) * `GitHub` <https://github.com/staugur/Flask-PluginKit> * `Author` <https://www.saintic.com> * `Issues` <https://github.com/staugur/Flask-PluginKit/issues> ## 文档(Documentation) [点击这(Click here)](https://flask-pluginkit.readthedocs.io) ## LICENSE [MIT LICENSE](http://flask.pocoo.org/docs/license/#flask-license)