semirook / flask-kit Goto Github PK
View Code? Open in Web Editor NEWFlexible microkit for Flask microframework
License: Other
Flexible microkit for Flask microframework
License: Other
in flask-kit/base/forms.py
from flask.ext.wtf import Form
from wtforms import TextField, PasswordField
from wtforms.validators import Email,Required
Hello,
Thanks Roman for this great "backbone". I've been working on extending it for a couple of weeks now (https://github.com/RockyRoad29/flask-kit), including documentation.
Now trying to use Flask-Restless I have a new AppFactory problem.
This extension implements init_app, but it takes extra arguments like 'db' or 'session'.
Should I, as you did for gravatar and toolbar, declare it as lambda at the end of ext.py
?
gravatar = lambda app: Gravatar(app, size=50) # has no init_app()
toolbar = lambda app: DebugToolbarExtension(app) # has no init_app()
from flask.ext.restless import APIManager
api_manager = lambda app: APIManager(app, flask_sqlalchemy_db=db) # needs db as init_app argument
But I realize I don't understand how it is supposed to work. Can you help me about that ?
Another option might be to extend AppFactory._bind_extensions()
to accept extra parameters but I think it might get tricky. Any idea ?
Flask-RestPlus is missing dependency
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.