Skip to main content

Third-party for apistar using pony orm

Project description

https://travis-ci.org/jgirardet/apistar-ponyorm.svg?branch=master https://coveralls.io/repos/github/jgirardet/apistar-ponyorm/badge.svg Pypi package

Third-party for apistar using pony orm

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apistar-ponyorm-0.2.12.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file apistar-ponyorm-0.2.12.tar.gz.

File metadata

File hashes

Hashes for apistar-ponyorm-0.2.12.tar.gz
Algorithm Hash digest
SHA256 486c4eea47199849be69eefdcd3e5602986d8d2a0a4b9ffcc8ef3ab2fe3d2cab
MD5 b9298489a87559e07ae1d58f8f3a9c46
BLAKE2b-256 0c0bb6656305a2305f2e90f8041468457608facf9de56f3be570d8a922fe290f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page