Skip to content

Need IPython Shell #4

@mreschke

Description

@mreschke

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') )

Metadata

Metadata

Assignees

Labels

cliConsole packageenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions