question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

flask_classful support

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
acnebscommented, Sep 21, 2019

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.

1reaction
acnebscommented, Sep 7, 2018

Thanks for the suggestion! Yes, as both flask_rest_api and flask_classful are defining their own route 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found