Skip to content

This project is a Flask extension that builds on Flask-RESTful resources with a datacentric version.

License

Notifications You must be signed in to change notification settings

sidorof/flask-restful-dbbase

Repository files navigation

Introduction

This package extends Flask-RESTful by implementing datacentric Web API Resources using DBBase for enabling the use of SQLAlchemy.

DBBase enables the same coding of database models to be used within Flask or without, such as from message queues.

Creating a website can result in a fair amount of boilerplate code as the same characteristics for table models are recreated at each layer. Then, the boilerplate code must be tested as well, resulting in boilerplate testcode.

Using this package, the database models are introspected and applied to the API, resulting in less code over all.

This package should be thought of as a tool rather than a framework. It can coexist with other Flask packages. A framework can get awkward on edge cases as a seemingly straight-forward idea turns out to be very difficult due to trying to fit it into the framework design.

Inherent in the design is an understanding that the simplest cases can be done simply, but that there are additional ways to open up the functionality to accommodate more complex issues.

And, if the issue encountered does not fit this package's approach, the original resource classes can be used with no loss of functionality.

About

This project is a Flask extension that builds on Flask-RESTful resources with a datacentric version.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages