Skip to content

AlexAndBear/sqlalchemy-jsonapi

This branch is up to date with ColtonProvias/sqlalchemy-jsonapi:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 8, 2018
Jan 8, 2018
Feb 28, 2017
Apr 6, 2017
Mar 1, 2017
Feb 8, 2017
Jul 6, 2014
Feb 22, 2017
Feb 8, 2017
Aug 26, 2015
Jun 27, 2016
Feb 28, 2017
Apr 6, 2017
Mar 20, 2016
Feb 28, 2017

Repository files navigation

SQLAlchemy-JSONAPI

Build Status

JSON API implementation for use with SQLAlchemy.

SQLAlchemy-JSONAPI aims to implement the JSON API spec and to make it as simple to use and implement as possible.

Installation

pip install sqlalchemy-jsonapi

Quick usage with Flask-SQLAlchemy

# Assuming FlaskSQLAlchemy is db and your Flask app is app:
from sqlalchemy_jsonapi import FlaskJSONAPI

api = FlaskJSONAPI(app, db)

# Or, for factory-style applications
api = FlaskJSONAPI()
api.init_app(app, db)

Quick usage without Flask

# Assuming declarative base is called Base
from sqlalchemy_jsonapi import JSONAPI
api = JSONAPI(Base)

# And assuming a SQLAlchemy session
print(api.get_collection(session, {}, 'resource-type'))

About

JSONAPI implementation for use with SQLAlchemy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%