Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/majestrate/i2p.socket
drop in python socket module that uses i2p
https://github.com/majestrate/i2p.socket
Last synced: about 2 months ago
JSON representation
drop in python socket module that uses i2p
- Host: GitHub
- URL: https://github.com/majestrate/i2p.socket
- Owner: majestrate
- License: mit
- Created: 2016-02-19T12:13:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T21:48:56.000Z (over 6 years ago)
- Last Synced: 2024-04-25T15:02:02.451Z (5 months ago)
- Language: Python
- Size: 79.1 KB
- Stars: 16
- Watchers: 7
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-i2p - i2p.socket - drop in python socket module that uses i2p. (Libraries / I2Pd)
README
==========
i2p.socket
==========Requirements:
* Python 2.7 or >= 3.4
* Java I2P 0.9.14 and higher or i2pd 2.17.0 and higher
Installing:
pypi:
.. code:: bash
pip install i2p.socketgit:
.. code:: bash
git clone https://github.com/majestrate/i2p.socket/
cd i2p.socket
python setup.py installUsage:
.. code:: python
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