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 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.0.tar.gz.
File metadata
- Download URL: i2p.socket-0.3.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a8bcc68dccc56b25aec1b060fc81dfe1db215b48595622f7c832ae87465c0ef
|
|
| MD5 |
aa046231eb3e4c5b08b06d54b083dddf
|
|
| BLAKE2b-256 |
2fd9e4e47a9cbec847c6d9ffd21df5f6438e50b0d1f26a5bdf89d22923f27634
|
File details
Details for the file i2p.socket-0.3.0-py3-none-any.whl.
File metadata
- Download URL: i2p.socket-0.3.0-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d320cf96f6ba478aaeb072157bd98050ea82c44bc053707741faa33f32f8f366
|
|
| MD5 |
344dbbe2542197d3614c5935ae72d89f
|
|
| BLAKE2b-256 |
e620c4f581d15ed8b2fdef190685e33d4d99a544a85daadf1ad7cca51be1f30f
|
File details
Details for the file i2p.socket-0.3.0-py2-none-any.whl.
File metadata
- Download URL: i2p.socket-0.3.0-py2-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c0634cdd2ae2ce2d602708647ffaff5821f9062a4bd887fa39257d35425897e
|
|
| MD5 |
5b53d29c18543a90965cf95adfc2a768
|
|
| BLAKE2b-256 |
6bdf06536dec2d258aceb99c8e561c71e5040c0efd9867576c850ea5fccd1041
|