flask_classful support
See original GitHub issueI use flask_classful in some of my projects, and it would be great if it was supported.
I’ll need to dig into the code a bit more, but I’m fairly certain flask_classful’s main export, FlaskView
, is fairly similar in implementation to the now standard Flask.MethodView
(which is already supported).
Would this be something that could be integrated into the project?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Flask-Classful — Flask Classful 0.15.0-b1 documentation
Flask -Classful is an extension that adds class-based views to Flask. ... FlaskView , it doesn't quite complete the picture by supporting methods...
Read more >teracyhq/flask-classful: Class based views for Flask - GitHub
FlaskView it doesn't quite complete the picture by supporting methods that aren't part of the typical CRUD operations for a given resource, or...
Read more >Flask-Classful - PyPI
Class based views for Flask. ... Flask-Classful 0.14.2. pip install Flask-Classful Copy PIP instructions. Latest version. Released: Jan 23, 2019.
Read more >Subroutes in Flask-Classy / Flask-Classful - Stack Overflow
It seems to work though. Maybe it's just splitting hairs, but I would think something like this would have built-in support in Flask-Classful?...
Read more >Flask Classy: Class Based Views for Flask and Python - Morioh
It does help a bit with some other things. For example, Flask-Classy will automatically generate routes based on the methods in your views,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did not find a solution on my own, for a while I just stopped using
@blp.response
for marshalling and did it manually within request bodies.However, I’ve just gone back and ran some samples using
@blp.response
against my tests and it seems to be working, so not sure what changed but it works now!Thanks again for all the work you’ve put into this lib.
Thanks for the suggestion! Yes, as both
flask_rest_api
andflask_classful
are defining their ownroute
functions, I’ll need to figure out which to use / how I can combine the functionality of both.Might need to create a
flask_classful_rest_api
package, haha.Regardless, I’ll keep you updated with any progress I make on this front.