Skip to content

gabber12/pyfox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']