diff --git a/apps/sam/python/readme.txt b/apps/sam/python/readme.txt index d67dffc2e4a1c33876fc45038b408931c0987e3e..5ab8f9e71f527cbbcc371eb823c7b71cba699146 100644 --- a/apps/sam/python/readme.txt +++ b/apps/sam/python/readme.txt @@ -1,13 +1,12 @@ ---------------------------------------- -Python-I2P v0.9 +Python-I2P v0.91 ---------------------------------------- Python-I2P is a Python interface to I2P. All files in this directory and subdirectories -have been placed in the public domain by -Connelly Barnes. +have been placed in the public domain. ---------------------------------------- Quick Start @@ -19,13 +18,14 @@ Install: Use: - >>> from i2p import sam - >>> s = sam.socket('Alice', sam.SOCK_STREAM) + >>> from i2p import socket + >>> s = socket.socket('Alice', socket.SOCK_STREAM) >>> s.connect('duck.i2p') >>> s.send('GET / HTTP/1.0\r\n\r\n') >>> s.recv(1000) (Response from duck.i2p) +See the src/examples/ directory for more code examples. ---------------------------------------- Full Start diff --git a/apps/sam/python/setup.py b/apps/sam/python/setup.py index e9ef8852aa271100ed1b161f27a555706e3016d3..8e4f04a7ad74e7083094b692f4ff0eb78068cf1a 100644 --- a/apps/sam/python/setup.py +++ b/apps/sam/python/setup.py @@ -1,3 +1,4 @@ +#! /usr/bin/env python from distutils.core import setup import os @@ -5,10 +6,10 @@ import os os.chdir('./src') setup(name="Python I2P API", - version="0.9", + version="0.91", description="Python Interface to I2P", author="Connelly Barnes", author_email="'Y29ubmVsbHliYXJuZXNAeWFob28uY29t\n'.decode('base64')", url="http://www.i2p.net/", - packages=['i2p'], + packages=['i2p', 'i2p.pylib'], )