Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?

  • Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days ago

    Most contemporary python tools like flask or uvicorn do exactly this and require an explicit entry point