<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Python on What's done is done</title><link>https://igawa.io/tags/python/</link><description>Recent content in Python on What's done is done</description><generator>Hugo</generator><language>ja</language><lastBuildDate>Mon, 18 Dec 2017 00:00:00 +0900</lastBuildDate><atom:link href="https://igawa.io/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Simple HTTPServer in Python</title><link>https://igawa.io/posts/2017/12/simple-httpserver-in-python/</link><pubDate>Mon, 18 Dec 2017 00:00:00 +0900</pubDate><guid>https://igawa.io/posts/2017/12/simple-httpserver-in-python/</guid><description>&lt;blockquote&gt;
&lt;p&gt;This is an article for &lt;a href="https://adventar.org/calendars/2628"&gt;鰻 Advent Calendar 2017&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;p&gt;Every time I&amp;rsquo;d like to use a http server in development such as
checking generated HTML documentation files, I need to google how to
do it. So I post a blog as a memorandum.&lt;/p&gt;
&lt;h2 id="python2"&gt;&lt;a href="https://docs.python.org/2/library/simplehttpserver.html"&gt;Python2&lt;/a&gt;&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ python -m SimpleHTTPServer [PORT]
# default port is 8000
Serving HTTP on 0.0.0.0 port 8000 ...
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="python3"&gt;&lt;a href="https://docs.python.org/3/library/http.server.html"&gt;Python3&lt;/a&gt;&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ python3 -m http.server [PORT]
# default port is 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Happy Hacking!&lt;/p&gt;</description></item></channel></rss>