flask-classy
flask-classy copied to clipboard
Class based views for Flask
Python 3 requires to use flask_classy
according to the the documentation of [inspect](https://docs.python.org/3.6/library/inspect.html#inspect.getargspec) you should use getfullargspec, which is a drop-in replacement for getargspec
In the following `View`, the rules of the URL will be `/foobar/`. ```py import flask_classy class FooBarView(flask_classy.FlaskView): def post(self): pass ``` However, I think that it is more intuitive to...
I tried to adapt http://flask.pocoo.org/snippets/106/ to flask_classy. But an exception is raised when implementing the werkzeug converter. (TypeError: 'ObjectId' object is not callable) ``` class CView(flask_classy.FlaskView): @flask_classy.route('/') def get(self, c_id):...
If I add type hints to `get` or `post` etc like, ``` python class API(FlaskView): def get(self) -> str: return "OK" ``` it gives the following error. ``` ValueError: Function...
I've worked on larger projects utilizing both frameworks and I'm quite tired of flask-restful's stringent adherence to only-one-GET/PUT/POST method per resource class. It produces an abundance of classes. RESTful is...
Hello guys, flask-classy is awesome, however, I don't know why @apiguy haven't responded for a while with PR and issues. So I forked the project and add more features, supports...
Added 1 optional instance parameter in function register and make_proxy_method in order to let the user parse an instance of the class. In this way the user can parse an...
If @apiguy don't have time then you could add me as co maintainer of the package.