diff --git a/README.md b/README.md index ee9efcd..594e3c1 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ pip install pyfox --ignore-installed six ``` ## Usage +#### Shell + ```sh $ foxtrot --help Usage: commands.py [OPTIONS] HOST @@ -25,4 +27,14 @@ foxtrot Ctrl-D to exit or type exit ``` +#### Client + +```python +from pyfox import Foxtrot +client = Foxtrot(host) +result = client.select("select * from test_db") +for event in result.rows(): + print event['id'] +``` + diff --git a/pyfox/__init__.py b/pyfox/__init__.py index e69de29..aef0fa1 100644 --- a/pyfox/__init__.py +++ b/pyfox/__init__.py @@ -0,0 +1 @@ +from client import Foxtrot diff --git a/setup.py b/setup.py index dd30dfb..020e08f 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( name = 'pyfox', packages = ['pyfox'], - version = '0.2', + version = '0.21', description = 'Shell for foxtrot', author = 'Shubham Sharma', author_email = 'shubham.sha12@gmail.com', url = 'https://github.com/gabber12/pyfox', - download_url = 'https://github.com/gabber12/pyfox/archive/0.2.tar.gz', + download_url = 'https://github.com/gabber12/pyfox/archive/0.21.tar.gz', classifiers = [], entry_points = { 'console_scripts': ['foxtrot=pyfox.commands:main'],