An open API service indexing awesome lists of open source software.

https://github.com/abe-winter/groundling

starlette helpers for auth, orm + declarative routing
https://github.com/abe-winter/groundling

declarative starlette

Last synced: about 2 months ago
JSON representation

starlette helpers for auth, orm + declarative routing

Awesome Lists containing this project

README

          

# groundling - starlette helpers and declarative routing

Kitchen sink package for ramping up my small starlette projects.

## Declarative routing

In the declaroute module this has wrappers for declarative routing. They're verbose and not documented, and won't save you any lines of code, but they work.

'declarative routing' means that path parameters and json body params are unpacked automatically into database queries, executed, and their results are returned.

There are no docs for this, but there are untested, possibly-wrong examples in `test_decl.py`. More TBD.

## Other stuff

* a micro-orm on asyncpg
* routes, helpers + middleware for user management / authentication
* httpx (async) clients for postmark (email) + mixpanel
* stackdriver error formatter
* flash message
* some json parser / serializer stuff for types
* symlink-aware version of starlette's static files middleware to support frontend watch builds

You **must** set `DEBUG=1` if you're not on https or else sessions won't work.