Skip to main content

Query JSON using SQL

Project description

jsonsqlquery

Query JSON using SQL.

CI

Examples

Inline SQL query:

cat foo.jsonl | jsonsqlquery --query 'select name, age from data'

SQL query from a file:

cat foo.jsonl | jsonsqlquery --query-file query.sql

Create a SQLite database:

cat foo.jsonl | jsonsqlquery --create-db foo.db

See the examples/ directory.

Caveats

  • Booleans are cast to integers.
  • Data is assumed to fit in memory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonsqlquery-0.1.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

jsonsqlquery-0.1.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page