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.1.tar.gz
(20.3 kB
view hashes)
Built Distributions
i2p.socket-0.3.1-py3-none-any.whl
(23.6 kB
view hashes)
i2p.socket-0.3.1-py2-none-any.whl
(23.6 kB
view hashes)
Close
Hashes for i2p.socket-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0410669dcc23b2a455542c77849ebe420f84bb6e31cbe552ca2669f230d481e5 |
|
MD5 | e8dcef43e2a77f6ca5d3e9962e7cba63 |
|
BLAKE2b-256 | dc4226c87af5b9c6f61d7c034ff1585a8042ecd3b9969ae610c9f3c8d137ba06 |
Close
Hashes for i2p.socket-0.3.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7b497a7be322a300fc6092bf7952b22155f3e0170f236bab7690153ff00fb0 |
|
MD5 | b3e6c204ddb54bc7964c6499948e21da |
|
BLAKE2b-256 | 5f59601718001577985c34563dfd4edae47c21a8e90d8cc931738c8f60d730de |