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 details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file i2p.socket-0.3.1.tar.gz.
File metadata
- Download URL: i2p.socket-0.3.1.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccd6398068f90771a51a4c34b63473d3d3b426e816dd4d998fcb8ce86ffccbd6
|
|
| MD5 |
623cb0449f149f5185b30b05dd2d6ca5
|
|
| BLAKE2b-256 |
63f1602989104fdd5201744efb2886c266347a3ec72e802b3b20f262c05a6d60
|
File details
Details for the file i2p.socket-0.3.1-py3-none-any.whl.
File metadata
- Download URL: i2p.socket-0.3.1-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0410669dcc23b2a455542c77849ebe420f84bb6e31cbe552ca2669f230d481e5
|
|
| MD5 |
e8dcef43e2a77f6ca5d3e9962e7cba63
|
|
| BLAKE2b-256 |
dc4226c87af5b9c6f61d7c034ff1585a8042ecd3b9969ae610c9f3c8d137ba06
|
File details
Details for the file i2p.socket-0.3.1-py2-none-any.whl.
File metadata
- Download URL: i2p.socket-0.3.1-py2-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee7b497a7be322a300fc6092bf7952b22155f3e0170f236bab7690153ff00fb0
|
|
| MD5 |
b3e6c204ddb54bc7964c6499948e21da
|
|
| BLAKE2b-256 |
5f59601718001577985c34563dfd4edae47c21a8e90d8cc931738c8f60d730de
|