Forked from nepsilon/3-python-module-you-can-use-on-cli.md
Created
April 27, 2016 19:02
-
-
Save sergiogarciadev/f9d0522f280ea3979afdeca23a610003 to your computer and use it in GitHub Desktop.
3 Python modules you can use directly on the CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start a local webserver to serve the file of your current directory on the LAN: | |
# Python version 2.x: | |
python -m SimpleHTTPServer | |
# Python version 3.x: | |
python3 -m http.server | |
#Start a local SMTP server to debug your app emails. Emails will be printed on stdout: | |
python -m smtpd -c DebuggingServer -n | |
#Parse and prettify a JSON string with: | |
cat mydata.json | python -m json.tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment