r/FastAPI • • Aug 21 '21

Question Shell for Fast api ?

There is shell in django , My teams wants the same for Fast api. I tried with IPython but the problem is I can't use Tortoise orm Queries as it says database has no connection and other stuff. My question : Is there any way to make or install a shell for fast api project.

11 Upvotes

12 comments sorted by

View all comments

2

u/wrtbwtrfasdf Aug 22 '21

Ipython will work just fine for running orm commands. All you need is a file that properly sets up the connection and models.

1

u/Impressive-Hat1494 Aug 22 '21

can you tell me little more how to do it for tortoise orm ?