Skip to content

best practise when I want to have a uvicorn server besides with tkinter gui #72

Answered by insolor
wanghaisheng asked this question in Q&A
Discussion options

You must be logged in to vote

I'd suggest you not to put everithing in one application. Just make the server a separate application and run it from the GUI using subprocess (asyncio subprocess in this case). When the gui app shut down, also shut down the fastapi service.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@insolor
Comment options

@wanghaisheng
Comment options

@insolor
Comment options

@wanghaisheng
Comment options

@insolor
Comment options

Answer selected by insolor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #71 on December 06, 2023 08:42.