Flask-RESTy

Flask-RESTy provides building blocks for creating REST APIs with Flask, SQLAlchemy, and marshmallow.
from flask_resty import Api, GenericModelView
from . import app, models, schemas
class WidgetViewBase(GenericModelView):
model = models.Widget
schema = schemas.WidgetSchema()
class WidgetListView(WidgetViewBase):
def get(self):
return self.list()
def post(self):
return self.create()
class WidgetView(WidgetViewBase):
def get(self, id):
return self.retrieve(id)
def patch(self, id):
return self.update(id, partial=True)
def delete(self, id):
return self.destroy(id)
api = Api(app, "/api")
api.add_resource("/widgets", WidgetListView, WidgetView)
Documentation
Documentation is available at https://flask-resty.readthedocs.io/.
License
MIT Licensed. See the bundled LICENSE file for more details.
Release files for Flask-RESTy 6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_resty-6.0.0.tar.gz | 53.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_resty-6.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 95.2 kB
Release files / flask_resty-6.0.0.tar.gz
| Download URL | flask_resty-6.0.0.tar.gz |
|---|---|
| Size | 53.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
024575d74acf3e2ef84e85ad10814072988aa457fabb20737e23ab15778f3f40
|
|
BLAKE2b-256 checksum How to use checksums |
95ec906d1cfdf70b314fc5d16607366d152967846d24a0794e6d365d76b5415d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / flask_resty-6.0.0-py3-none-any.whl
| Download URL | flask_resty-6.0.0-py3-none-any.whl |
|---|---|
| Size | 42.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86bbadf14b5704e9c760ca7c9a0dfdc3a8325ffa6ddf017adece4381a8798729
|
|
BLAKE2b-256 checksum How to use checksums |
8b7f1c3afad9d19508309468eba089573c1c0d196ede33a593c16e0b478ca61f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|