Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
i2p.socket-0.4.0.tar.gz (20.8 kB) Copy SHA256 hash SHA256 Source None Dec 12, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page