Skip to content

Instantly share code, notes, and snippets.

@vnvmar
vnvmar / __main__.py
Last active April 25, 2026 10:16
A simple __main__.py file to turn any folder into an autodiscovering typer app composer
from pathlib import Path
import importlib
import typer
app = typer.Typer(
no_args_is_help=True
)
parent_dir = Path(__file__).parent
for file in parent_dir.glob("*.py"):