I'm staugur, SA.
staugur / flask-pluginkit Goto Github PK
View Code? Open in Web Editor NEWWeb program plugin development kit based on Flask.
Home Page: https://flask-pluginkit.rtfd.vip
License: BSD 3-Clause "New" or "Revised" License
Web program plugin development kit based on Flask.
Home Page: https://flask-pluginkit.rtfd.vip
License: BSD 3-Clause "New" or "Revised" License
插件中 蓝图已经具备钩子功能。但是在目前的代码逻辑上,你把插件的钩子给注册成全局的了
,导致 项目启动的时候 所有注册的钩子都会使用
Hi there,
I'm looking at this project to possibly use for integrating with an existing Flask application. It seems pretty robust, but I do have a question tho.
It's going to be a bit difficult to explain as it's mostly theoretical, just thinking about ways I can utilize this. Lets say that the main program has a service that plugins should be able to access. For example, a background task runner. The main Flask application can, on startup, spin up a background task service (a singleton), and accept request to run tasks. A plugin could then send data to this background task runner.
This could be fairly easy with local plugins, since you can import directly from the parent application and module. What I'm interested in learning more about is how one might do this for a third party plugin that is on pypi. How would that plugin, which is more or less isolated from the main application, access things from the main application? Is having a third party plugin not feasible in this situation, and a local plugin should be pursued?
Sorry if this doesn't make any sense. If not, let me know, maybe I can stand up a simple example :)
Thanks!
Flask-PluginKit 非常好用,正在测试验证中,对程序结构来说非常方便。
在使用过程中,发现了flask-classful ,作者可以考虑一下两者的结合。(业务逻辑比blueprint, Viewfunc 方便很多)
https://github.com/teracyhq/flask-classful
"vepclass": self._vepclass_handler,
for vep in self.get_enabled_vepClass:
classview = vep.pop("classview")
# objlist = dir(classview)
classview.register(app=app, **vep)
Hi,
I know is it maybe big change but it will help me a lot.
I need to add possibility add some endpoints to existing plugin without need to modify it...
Example:
i have plugin for HR like list of employe
and i want extend this plugin by another plugin with require HR plugin to be installed.
Thank you
semver recently released version 3.0 which changed Version().isvalid()
to is_valid()
: https://github.com/python-semver/python-semver/blob/92276867422b70bbb67fdd258eed7dd3f5888237/src/semver/version.py#L684-L696
We should probably either pin semver to 2.* or change the function call too and pin semver to 3.*
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.