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.1.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
Built Distribution
Close
Hashes for apistar-ponyorm-0.2.3.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb468fe8b878b76d4d66766a0043ce380bebca4b8f99207362a2b6b2ba0aec6 |
|
MD5 | f9915457b3ae57a04afc49357182f5ec |
|
BLAKE2b-256 | 0b7a0f17226e3729b948f7ba81274932261b2e08f11592799cd1dea5a69d11b0 |
Close
Hashes for apistar_ponyorm-0.2.3.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c16290295d35ad9b1c4157a8b0b1eee103e663c1e8fd5a02f496ea2a5a389a |
|
MD5 | 8bb546255773e68fcaf7b7e609a3a3a0 |
|
BLAKE2b-256 | e231fb3e789c0b250d7f2c1de738d7c7077c192a195587fb5748956f5b794230 |