From Python-I2P.
Install:
python setup.py install
Use:
>>> from i2p import sam
>>> s = sam.socket('Alice', sam.SOCK_STREAM)
>>> s.connect('duck.i2p')
>>> s.send('GET / HTTP/1.0\r\n\r\n')
>>> s.recv(1000)
(HTTP response from duck.i2p)
The following modules are available:
i2p (Container package) i2p.sam (Send and receive across the I2P network) i2p.eep (Retrieve eepsites) i2p.router (Manage the I2P router)