Coder Social home page Coder Social logo

staugur / flask-pluginkit Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 5.0 918 KB

Web program plugin development kit based on Flask.

Home Page: https://flask-pluginkit.rtfd.vip

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.06% Python 85.81% HTML 13.13%
flask flask-pluginkit

flask-pluginkit's Introduction

Hi!

I'm staugur, SA.

  • 🌱 I’m currently learning Golang & k8s

  • ⚡ Sys / Python / JavaScript / Golang

  • ✍️ I regulary write articles on Blog

  • 📫 How to reach me with Email

flask-pluginkit's People

Contributors

gitter-badger avatar pc-coholic avatar staugur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flask-pluginkit's Issues

看了您的代码。有点疑惑啊

插件中 蓝图已经具备钩子功能。但是在目前的代码逻辑上,你把插件的钩子给注册成全局的了
,导致 项目启动的时候 所有注册的钩子都会使用

Utilizing code from main app within plugin

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

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)

FR: Add Plugin inheritance

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.