Not a complete list ...
Encoding
Base64 en / decoding:
python -m base64 -d [file] python -m base64 -e [file]
ROT-13 ru / decoder:
python -m encodings.rot_13
Macintosh BinHex:
# binhex <file> to <file>.hqx, and unbinhex <file>.hqx to <file>.viahqx python -m binhex <file>
UUencode / Decoding:
python -m uu [infile [outfile]] # encode python -m uu -d [infile [outfile]] # decode
MIME quoted-printable en / decoding:
python -m mimify -e [infile [outfile]] # encode python -m mimify -d [infile [outfile]] # decode
Available for encoding / decoding:
python -m quopri [file] # encode python -m quopri -d [file] # decode
Compression
Gzip:
python -m gzip [file] # compress python -m gzip -d [file] # decompress
extract zipfile etc:
python -m zipfile -l <file> # list python -m zipfile -t <file> # test python -m zipfile -e <file> <dir> # extract python -m zipfile -c <file> sources... # create
the Internet
HTTP servers:
python -m BaseHTTPServer python -m CGIHTTPServer python -m SimpleHTTPServer
Simple FTP client:
python -m ftplib host [-l<dir-to-list>] [-d<dir-to-cwd>] [-p] [file-to-retrieve]
HTML text highlighting:
python -m htmllib <file>
JSON Validator and Pretty-Printer:
python -m json.tool [infile [outfile]]
List of POP3 Mailboxes:
python -m poplib <server> <username> <password>
SMTP server:
python -m smtpd
Send email (to localhost):
python -m smtplib
Telnet Client:
python -m telnetlib [host [port]]
MIME Database / Extension:
python -m mimetypes file.ext
Open web browser:
python -m webbrowser -n <url> # new window python -m webbrowser -t <url> # new tab
Antigravity :
python -m antigravity
Python
Pure-Python REPL:
python -m code
Python Bytecode Batch Compiler:
python -m compileall
Python Code Profiler:
python -m cProfile <script> python -m profile <script> python -m pstats <filename> # print profiling statistics
Python Release Artist:
python -m doctest <script>
Python test:
python -m test.pystone [iterations] python -m hotshot.stones
Python Interactive Debugger:
python -m pdb
Extract Python classes and methods from the module:
python -m pyclbr <script>
Python documentation browser:
python -m pydoc <topic> python -m pydoc -g # graphical browser python -m pydoc -p <port> # start HTTP docs server on port
Python snippet timer:
python -m timeit
Miscellaneous
Calendar (e.g. cal , but can do HTML and various fancy formatting):
python -m calendar
Directories:
python -m filecmp [-r] dir1 dir2
Paragraph formatting:
python -m formatter [file]
Show current platform (e.g. uname , but simpler):
python -m platform