{"repo":"pallets-eco/flask-classful","free":true,"listed":false,"github":"https://github.com/pallets-eco/flask-classful","clone":"git clone https://github.com/pallets-eco/flask-classful.git","description":"Class based views for Flask","language":"Python","stars":235,"topics":["python","flask"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"Flask-Classful ============== Flask-Classful is an extension that adds class-based views to [Flask][]. Class-based views are a way to encapsulate specific context and behavior for routes and methods, complementing Flask's blueprints. They provide a more powerful system than Flask's own MethodView . Read the documentation at . [Flask]: https://flask.palletsprojects.com Pallets Community Ecosystem --------------------------- [!IMPORTANT]\\ This project is part of the Pallets Community Ecosystem. Pallets is the organization that maintains Flask; Pallets-Eco enables community maintenance of Flask extensions. If you are interested in helping maintain this project, please reach out on the Pallets Discord server. A Basic Example --------------- This example defines a few routes by defining methods on a subclass of flask classful.FlaskView . - http://127.0.0.1:5000/quotes/ shows all the quotes. - http://127.0.0.1:5000/quotes/1/ shows a single quote. - http://127.0.0.1:5000/quotes/random/ shows a random quote. Forked from Flask-Classy ------------------------ [!NOTE]\\ This is a fork of Flask-Classy to continue development after it was not updated for a long time.","default_branch":null,"files":null,"tree":[],"storefront":"/r/pallets-eco","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pallets-eco/flask-classful/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}