Run console with Python application context (Like bundle exec console)

Viewed 27

In Ruby (bundler) we can run an IRB console with the application context loaded. This allows us to interact with the ORM, or other application objects.

Is there an equivalent way of doing this in Python (i.e. uvicorn/fastapi/sqlalchemy)?

My goal is to interact with the ORM programatically from a console.

0 Answers
Related