Python Tricks #29 - Python's built-in HTTP server

in #programming7 years ago

Serve current folder by simply running python command.

# Python has a HTTP server built into the
# standard library. This is super handy for
# previewing websites.

# Python 3.x
$ python3 -m http.server

# Python 2.x
$ python -m SimpleHTTPServer 8000

# (This will serve the current directory at
#  http://localhost:8000)

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.075
BTC 64568.68
ETH 1677.08
USDT 1.00
SBD 0.42