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.3.0.tar.gz
(20.2 kB
view hashes)
Built Distributions
i2p.socket-0.3.0-py3-none-any.whl
(23.5 kB
view hashes)
i2p.socket-0.3.0-py2-none-any.whl
(23.5 kB
view hashes)
Close
Hashes for i2p.socket-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d320cf96f6ba478aaeb072157bd98050ea82c44bc053707741faa33f32f8f366 |
|
MD5 | 344dbbe2542197d3614c5935ae72d89f |
|
BLAKE2b-256 | e620c4f581d15ed8b2fdef190685e33d4d99a544a85daadf1ad7cca51be1f30f |
Close
Hashes for i2p.socket-0.3.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0634cdd2ae2ce2d602708647ffaff5821f9062a4bd887fa39257d35425897e |
|
MD5 | 5b53d29c18543a90965cf95adfc2a768 |
|
BLAKE2b-256 | 6bdf06536dec2d258aceb99c8e561c71e5040c0efd9867576c850ea5fccd1041 |