-
python3-flask-marshmallow-1.2.1-1.lbn36.noarch
Flask + marshmallow for beautiful APIs
Flask-Marshmallow is a thin integration layer for Flask (a Python web framework) and marshmallow (an object serialization/deserialization library) that adds additional features to marshmallow, including URL and Hyperlinks fields for HATEOAS-ready APIs. It also (optionally) integrates with Flask-SQLAlchemy.
Get it now
pip install flask-marshmallow
Create your app.
from flask import Flask
from flask_marshmallow import Marshmallow
app = Flask(__name__)
ma = Marshmallow(app)
Write your models.
from your_orm import Model, Column, Integer, String, DateTime
class User(Model):
email = Column(String)
password = Column(String)
date_created = Column(DateTime, auto_now_add=True)
Define your output format with marshmallow.
class UserSchema(ma.Schema):
class Meta:
fields = ("email", "date_created", "_links")
_links = ma.Hyperlinks(
{
"self": ma.URLFor("user_
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-flask-migrate-4.0.7-2.lbn36.noarch
SQLAlchemy database migrations for Flask applications using Alembic.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36