python3 -m module_name

Category: Python & pip

python3 -m module_name

Run a library module as a script (e.g. http.server, json.tool)

Runs a Python library module as a script. -m lets you run things like http.server or json.tool without writing a file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.