Shell for Foxtrot
pip install pyfox --ignore-installed six
$ 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
from pyfox import Foxtrot
client = Foxtrot(host)
result = client.select("select * from test_db")
for event in result.rows():
print event['id']