flask-smorest-sqla-0.2.2
توضیحات
Adds SQLAlchemy support to a Flask-Smorest REST API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flask-smorest-sqla-0.2.2 |
| نام | flask-smorest-sqla |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dave |
| ایمیل نویسنده | dave@tenko.ai |
| آدرس صفحه اصلی | https://github.com/zedrdave/flask-smorest-sqla |
| آدرس اینترنتی | https://pypi.org/project/flask-smorest-sqla/ |
| مجوز | MIT |
=======================
flask-smorest-sqla
=======================
Flask REST API without the cruft
==================================
This packages builds upon `flask-smorest <https://github.com/marshmallow-code/flask-smorest>`_ and SQLAlchemy, to provide ORM integration and a boilerplate-free REST implementation with:
- CRUD endpoints
- [To do] Access Authorisation
- [To do] Authentication
Install
============
::
pip install flask-smorest-sql
Quickstart
============
With a Flask-Smorest `api` object registered:
::
class Test(db.Model):
"""Test model."""
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(128))
with app.app_context():
db.create_all()
bp = CRUDBlueprint("Test", __name__, db=db, url_prefix="/test", model_class=TestModel)
api.register_blueprint(bp)
Will create all CRUD endpoints for resource `Test` at URL `/test`.
Documentation
=============
Full documentation is available at http://flask-smorest-sqla.readthedocs.io/.
License
============
MIT licensed. See the `LICENSE <https://github.com/marshmallow-code/flask-smorest/blob/master/LICENSE>`_ file for more details.
نیازمندی
| مقدار | نام |
|---|---|
| <1.0.0 | flask-smorest |
| >=3.0.3,<4.0.0 | flask-sqlalchemy |
| >=0.29.0,<0.30.0 | marshmallow-sqlalchemy |
| >=2.0.7,<3.0.0 | sqlalchemy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl flask-smorest-sqla-0.2.2:
pip install flask-smorest-sqla-0.2.2.whl
نصب پکیج tar.gz flask-smorest-sqla-0.2.2:
pip install flask-smorest-sqla-0.2.2.tar.gz