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
- Host: GitHub
- URL: https://github.com/abe-winter/groundling
- Owner: abe-winter
- Created: 2020-12-08T17:58:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-28T18:45:59.000Z (about 5 years ago)
- Last Synced: 2025-12-10T07:43:50.966Z (6 months ago)
- Topics: declarative, starlette
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.