Query JSON using SQL
Project description
jsonsqlquery
Query JSON using SQL.
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for jsonsqlquery-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb085d15301dc091d648d04a781dab122c3bdd067ba8a5e056c06b9f3bad996 |
|
MD5 | cb8b149b0564c35b10712e2a29dd02a3 |
|
BLAKE2b-256 | 79939b72e1663b45ec37d980315748b4f8cba9482ef2418b4a1b62b46f6e73eb |