An extension to hug that adds clean integration with the peewee ORM:
import hug_peewee
db = hug_peewee.connection.manage(__name__, 'sqlite', 'my.db')
Works with hug 2.1.0 or greater.
Installing hug_peewee is as simple as:
pip3 install hug_peewee --upgrade
Ideally, within a virtual environment.
An extension to hug that adds clean integration with the peewee ORM
Thanks and I hope you find hug_peewee helpful!
~Timothy Crosley