Skip to content

About

A microframework based on Starlette and marshmallow_jsonapi

Resources

Stars

18 stars

Watchers

2 watching

Forks

Repository files navigation

starlette_jsonapi

A minimal "framework" intended to help write json:api compliant services in async Python, written on top of starlette and marshmallow-jsonapi.

In the maintainer's view, REST frameworks that come with a complete data layer implementation are quite limiting and rarely usable in production systems due to business logic needs or authorization constraints. The default implementation they come with is usually getting in the way, more than helping.

Because of that, starlette_jsonapi does not contain a data layer implementation, so you should be able to pick any available async ORM. This also means that you are going to get a very basic interface for writing a REST resource, with some helpers to make your experience more pleasant, but nothing fancy.

Installing

pip install starlette-jsonapi

Since this project is under development, please pin your dependencies to avoid problems.

Features

  • 100% tests coverage
  • basic json:api serialization
  • including related resources
  • starlette friendly route generation
  • exception handlers to serialize as json:api responses
  • relationship resources
  • sparse fields
  • support for client generated IDs
  • support top level meta objects
  • pagination helpers
  • OpenAPI 3.x (f.k.a Swagger) integration

Todo:

Documentation

Available on