MistQL is a miniature language for performing computations on JSON-like structures.
npm install --save mistql
The Python implementation of MistQL is installed via the following:
pip install mistql
MistQL's primary interface is through programatic access:
# Pythonimport mistql query = 'events | filter type == "purchase" | groupby email | keys'purchaserEmails = mistql.query(query, data)
MistQL exposes a command line interface under the name
mq can be installed globally via
npm install -g mistql.
The CLI can be used via
mq <query> [file]
If file is not provided,
mq defaults to
stdin. An example usage might be the following:
$ echo "" | mq "count @"> 0