Third-party for apistar using pony orm
Project description
Third-party for apistar using pony orm
License : GNU General Public License v3
Documentation: https://apistar_ponyorm.readthedocs.org/en/latest/
Features
Apistar Hook : PonyDBSession which give auto apply db_session to views.
Usage
This should be added in App declaration :
app = App(routes=[route], event_hooks=[PonyDBSession()])
# main app.py file
from apistar_ponyorm import PonyDBSession
# ...
app = App(routes=[route], event_hooks=[PonyDBSession()])
# myviews.py
from myproject import db # PonyORM Database Instance
def myviews():
retun db.MyEntity.to_dict()
# No need to add @db_session
Changelog
- 0.2.10 :
use poetry
- 0.2.0 :
add PonyDBSession
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file apistar-ponyorm-0.2.12.tar.gz
.
File metadata
- Download URL: apistar-ponyorm-0.2.12.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 486c4eea47199849be69eefdcd3e5602986d8d2a0a4b9ffcc8ef3ab2fe3d2cab |
|
MD5 | b9298489a87559e07ae1d58f8f3a9c46 |
|
BLAKE2b-256 | 0c0bb6656305a2305f2e90f8041468457608facf9de56f3be570d8a922fe290f |