I2P socket module
Project description
Requirements:
Python 2.7 or 3.x
Java I2P 0.9.14 and higher or i2pd 2.4.0 and higher
Installing:
pypi:
pip install i2p.socket
git:
git clone https://github.com/majestrate/i2p.socket/
cd i2p.socket
python setup.py install
Usage:
from i2p import socket
# i2p socket
sock = socket.socket()
sock.connect(("i2p-projekt.i2p", 80))
sock.send(b"GET /\r\n\r\n")
print (sock.recv(1024))
sock.close()
# also works as 'regular' socket
sock = socket.socket(socket.AF_INET)
sock.connect(("geti2p.net", 80))
sock.send(b"GET /\r\n\r\n")
print (sock.recv(1024))
sock.close()
Caveats:
Probably contains bugs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
i2p.socket-0.2.2.tar.gz
(18.9 kB
view hashes)
Built Distributions
i2p.socket-0.2.2-py3-none-any.whl
(22.1 kB
view hashes)
i2p.socket-0.2.2-py2-none-any.whl
(22.2 kB
view hashes)
Close
Hashes for i2p.socket-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c094c8ee256c070a38c950b100320e50ed2b91334eaa8061cd8ada6d36f81fcb |
|
MD5 | 9c55379fcb7787d0099e572ab4fe50aa |
|
BLAKE2b-256 | b96e193bef739d7d03e1ef18d68f9d7b4a3ed8b3b210a6696293dd7d5de8aa5a |
Close
Hashes for i2p.socket-0.2.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9be1e193815f11f18f8ad95166661747c6312ec3fda196968b12c4e9870c8f |
|
MD5 | b3cf6ef54599078d0b7a596346d49ad8 |
|
BLAKE2b-256 | d7a3ca8db134f65d4f95f60d7eb0b33fb44db16acc93c6ad6da1c5f4538f8eb2 |