Files
i2p.itoopie/apps/sam/python/doc/guide/wiki/index.txt

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2004-07-21 12:02:56 +00:00
Title: Main Page
'''Python-I2P''' is a Python interface to [http://www.i2p.net I2P].
== Quick Start ==
Install:
<ul><pre>
python setup.py install
</pre></ul>
Use:
<ul><pre>
2004-08-09 10:01:04 +00:00
>>> from i2p import socket
>>> s = socket.socket('Alice', socket.SOCK_STREAM)
2004-07-21 12:02:56 +00:00
>>> s.connect('duck.i2p')
>>> s.send('GET / HTTP/1.0\r\n\r\n')
>>> s.recv(1000)
(HTTP response from duck.i2p)
</pre></ul>
2004-08-09 10:01:04 +00:00
See the src/examples/ directory for more code examples.
2004-07-21 12:02:56 +00:00
== User's Guide ==
The following modules are available:
<ul>
2004-08-09 10:01:04 +00:00
[[:User's Guide:i2p|i2p]] (Container package)
[[:User's Guide:i2p.BaseHTTPServer|i2p.BaseHTTPServer]] (Emulate Python BaseHTTPServer module)
[[:User's Guide:i2p.CGIHTTPServer|i2p.CGIHTTPServer]] (Emulate Python CGIHTTPServer module)
[[:User's Guide:i2p.eep|i2p.eep]] (Retrieve eepsites)
[[:User's Guide:i2p.router|i2p.router]] (Manage the I2P router)
[[:User's Guide:i2p.select|i2p.select]] (Emulate Python select module)
[[:User's Guide:i2p.SimpleHTTPServer|i2p.SimpleHTTPServer]] (Emulate Python SimpleHTTPServer module)
[[:User's Guide:i2p.socket|i2p.socket]] (Send and receive across the I2P network)
[[:User's Guide:i2p.SocketServer|i2p.SocketServer]] (Emulate Python SocketServer module)
[[:User's Guide:i2p.tunnel|i2p.tunnel]] (Exchange data between I2P and regular sockets)
2004-07-21 12:02:56 +00:00
</ul>