Python modules can be used as command-line tools by running them with the -m command-line argument. For example, the webbrowser module can open URLs in your default browser, the json.tool module formats JSON data, and the calendar module displays a calendar. Some modules have fun Easter eggs, like the antigravity module opening an XKCD comic. Python also includes tools like sqlite3 and gzip for tasks commonly done on Linux. Other tools analyze Python code, such as the tokenize, ast, and dis modules. There are even advanced tools like asyncio for async/await and cProfile for profiling code. Ultimately, running Python modules as command-line scripts can be powerful and fun.
https://www.pythonmorsels.com/cli-tools/#cheat-sheet