Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 771 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 771 Bytes

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