Skip to content

Need IPython Shell #4

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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