PYTHON Commands Cheat Sheet

Here is a cli commands cheat sheet for PYTHON command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is PYTHON command?

Add some data here

        # Basic example of server with python
# Will start a Web Server in the current directory on port 8000
# go to http://127.0.0.1:8000

# Python v2.7
python -m SimpleHTTPServer
# Python 3
python -m http.server 8000

# SMTP-Server for debugging, messages will be discarded, and printed on stdout.
python -m smtpd -n -c DebuggingServer localhost:1025

# Pretty print a json
python -m json.tool foo.json
    

Check out the PYTHON command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list