-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Milestone
Description
Want to run ./uvicore shell and get an ipython shell with many things pre-imported and app bootstrapped.
Example of what I currently do manually
cd ~/Code/mreschke/python/uvicore/uvicore
PYTHONPATH=./tests/apps ipython
import uvicore
from app1.services import bootstrap
app = bootstrap.application(is_console=True)
from uvicore.support.dumper import dump, dd
from app1 import models
dump( await models.Post.query().include('creator', 'comments', 'tags').find(1) )
provider = uvicore.config.app.auth.providers.users
dump( await models.User.userinfo(provider, username='manager1@example.com') )