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
Release files for apistar-ponyorm 0.2.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apistar-ponyorm-0.2.12.tar.gz | 2.2 kB | Details |
Release files / apistar-ponyorm-0.2.12.tar.gz
| Download URL | apistar-ponyorm-0.2.12.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
486c4eea47199849be69eefdcd3e5602986d8d2a0a4b9ffcc8ef3ab2fe3d2cab
|
|
BLAKE2b-256 checksum How to use checksums |
0c0bb6656305a2305f2e90f8041468457608facf9de56f3be570d8a922fe290f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |