This commit is contained in:
sunshine
2004-08-02 14:07:30 +00:00
committed by zzz
parent 3f6e7cb84c
commit f2cadb7278
2 changed files with 8 additions and 7 deletions

View File

@ -1,13 +1,12 @@
---------------------------------------- ----------------------------------------
Python-I2P v0.9 Python-I2P v0.91
---------------------------------------- ----------------------------------------
Python-I2P is a Python interface to I2P. Python-I2P is a Python interface to I2P.
All files in this directory and subdirectories All files in this directory and subdirectories
have been placed in the public domain by have been placed in the public domain.
Connelly Barnes.
---------------------------------------- ----------------------------------------
Quick Start Quick Start
@ -19,13 +18,14 @@ Install:
Use: Use:
>>> from i2p import sam >>> from i2p import socket
>>> s = sam.socket('Alice', sam.SOCK_STREAM) >>> s = socket.socket('Alice', socket.SOCK_STREAM)
>>> s.connect('duck.i2p') >>> s.connect('duck.i2p')
>>> s.send('GET / HTTP/1.0\r\n\r\n') >>> s.send('GET / HTTP/1.0\r\n\r\n')
>>> s.recv(1000) >>> s.recv(1000)
(Response from duck.i2p) (Response from duck.i2p)
See the src/examples/ directory for more code examples.
---------------------------------------- ----------------------------------------
Full Start Full Start

View File

@ -1,3 +1,4 @@
#! /usr/bin/env python
from distutils.core import setup from distutils.core import setup
import os import os
@ -5,10 +6,10 @@ import os
os.chdir('./src') os.chdir('./src')
setup(name="Python I2P API", setup(name="Python I2P API",
version="0.9", version="0.91",
description="Python Interface to I2P", description="Python Interface to I2P",
author="Connelly Barnes", author="Connelly Barnes",
author_email="'Y29ubmVsbHliYXJuZXNAeWFob28uY29t\n'.decode('base64')", author_email="'Y29ubmVsbHliYXJuZXNAeWFob28uY29t\n'.decode('base64')",
url="http://www.i2p.net/", url="http://www.i2p.net/",
packages=['i2p'], packages=['i2p', 'i2p.pylib'],
) )