Python: Difference between revisions

From miki
Jump to navigation Jump to search
(Python tutorial)
 
No edit summary
Line 1: Line 1:
== References ==
== References ==
* [http://docs.python.org/tutorial/ The Python Tutorial]
* [http://docs.python.org/tutorial/ The Python Tutorial]

== Tips ==

=== Simple HTTP Server ===
It's very easy to setup an ad-hoc HTTP server with Python. Just open a shell in a folder with some contents to share, and type:

<source lang=bash>
python -m SimpleHTTPServer
</source>

More available at http://docs.python.org/2/library/internet.html (see ''BaseHTTPServer'' and ''CGIHTTPServer'').

Revision as of 12:53, 30 April 2013

References

Tips

Simple HTTP Server

It's very easy to setup an ad-hoc HTTP server with Python. Just open a shell in a folder with some contents to share, and type:

python -m SimpleHTTPServer

More available at http://docs.python.org/2/library/internet.html (see BaseHTTPServer and CGIHTTPServer).