This is, to a Python project / module, what if __name__ == '__main__
is to an individual Python file.
Other articles
A nice workflow for creating Python projects with AI
First, create a new project using poetry
read moreDebugging Python programs that require CLI arguments in VSCode
Command Palette (CTRL+SHIFT+P): Debug: Add Configuration
read moreDebugging Python Tests in VSCode
VSCode offers native test capabilities that are quite useful. Testing Python in Visual Studio Code
read moreSuppressing Rich Tracebacks in Typer Apps
This must be applied to the configuration of the Typer object created for the CLI.
read moreUninstalling Poetry Completions for zsh
Here’s how to enable: https://python-poetry.org/docs/#enable-tab-completion-for-bash-fish-or-zsh
read moreLaunching a Web App from Stream Deck
This is actually much more of a hassle than I’d have expected …
read more