Shell for foxtrot


Keywords
shell, foxtrot, cli, flipkart, shell-prompt
License
Other
Install
pip install pyfox==0.17

Documentation

pyfox

Shell for Foxtrot

Build Status PyPI version

Installation

pip install pyfox --ignore-installed six

Usage

Shell

$ foxtrot --help
Usage: commands.py [OPTIONS] HOST

  Use FQL to query foxtrot

  Options:
    --evaluate TEXT  Query to be evaluated
      --help           Show this message and exit.

$ foxtrot <endpoint>
> select * from analytics_event
Ctrl-D to exit or type exit

Client

from pyfox import Foxtrot
client = Foxtrot(host)
result = client.select("select * from test_db")
for event in result.rows():
    print event['id']