Skip to content

Commit

Permalink
Exported Foxtrot client
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber12 committed Jul 4, 2017
1 parent 9a3b02e commit ff7a50b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pip install pyfox --ignore-installed six
```

## Usage
#### Shell

```sh
$ foxtrot --help
Usage: commands.py [OPTIONS] HOST
Expand All @@ -25,4 +27,14 @@ foxtrot <endpoint>
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']
```
1 change: 1 addition & 0 deletions pyfox/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from client import Foxtrot
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit ff7a50b

Please sign in to comment.