Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (19 sloc) 1.46 KB


PyPI CircleCI License

Datasette plugin that adds custom SQL functions for executing jq expressions against JSON values.

Install this plugin in the same environment as Datasette to enable the jq() SQL function.


select jq(
    "{top_3: .classifiers[:3], v: .version}"

See the jq manual for full details of supported expression syntax.

Interactive demo

You can try this plugin out at

Sample query:

select package, "" || package || "/" as url,
jq(info, "{summary: .info.summary, author:, versions: .releases|keys|reverse}")
from packages

Try this query out in the interactive demo.

You can’t perform that action at this time.