Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Flask REST API without the cruft

This packages builds upon 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 file for more details.

Metadata

Release files for flask-smorest-sqla 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-smorest-sqla 0.2.2
File Size Uploaded
flask_smorest_sqla-0.2.2.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-smorest-sqla 0.2.2
File Interpreter ABI Platform
flask_smorest_sqla-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / flask_smorest_sqla-0.2.2.tar.gz

Download URL flask_smorest_sqla-0.2.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cec18c2dbecb53f773a0aebe62be404314ec46204854839cb9d1d007ae0b9291
BLAKE2b-256 checksum
How to use checksums
e1f5b62cac3a550364afbb1ddb88d9f97e33b8730ac6371893eacab9459dcb63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / flask_smorest_sqla-0.2.2-py3-none-any.whl

Download URL flask_smorest_sqla-0.2.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef7790ac682dcc38926a5d12a246c75a62beed19f17df45b63c1bace9b4ead37
BLAKE2b-256 checksum
How to use checksums
fbc3866fb1a602b398c09ca96dc8b5626ba880f40bbb893946cd0a395f26e00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page