I2P socket module
Project description
Requirements:
Python 2.7 or >= 3.4
Java I2P 0.9.14 and higher or i2pd 2.17.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.4.0.tar.gz
(20.8 kB
view details)
File details
Details for the file i2p.socket-0.4.0.tar.gz.
File metadata
- Download URL: i2p.socket-0.4.0.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4926c17c4d863293a28c8831944d0447fd571275182ce004d3955f45b5fe4cf0
|
|
| MD5 |
557bf32e56d71f0a30a09c40ddb71daf
|
|
| BLAKE2b-256 |
c40fc64a8314dfc455d9c20c27c066dea184a522c12ad8db57850e2820428471
|