Skip to main content

A query tool for SON like objects, for example, json/jsonl and bson.

Project description

sonq

sonq means son query, is a tool for querying son like objects, for example, JSON and BSON. You may use sonq to query .bson or newline separated .json files(JSON Lines) directly from the command line.

Install

pip install sonq

Basic Usage

  • List the content of a .bson file
sonq source.bson
  • Query a .bson file
sonq -f '{"name": "Stark"}' source.bson
  • Convert query results to a newline separated .json file
sonq -f '{"name": "Stark"}' -o target.json source.bson
  • Convert json from stdin to .bson
echo '{"name": "Stark"}' | python3 -m sonq.cmd -o target.bson - 

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

sonq-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

sonq-0.1.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file sonq-0.1.3.tar.gz.

File metadata

  • Download URL: sonq-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.5 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for sonq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2cc2b4be76ae4930b086ae2c21486b75c31f8b403799f68e0485d959344dd3e9
MD5 efcd1caa7b0616e86f28f8ffc125ac1e
BLAKE2b-256 9877cd2225242692980796f0be3ac2f5fc149342ce651dfbb8e574864a15f242

See more details on using hashes here.

File details

Details for the file sonq-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sonq-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.5 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for sonq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26e7f17bd3091d1f3ee88bf7c6db3edd6b197aef981e97d64871e961b2fced45
MD5 3971e8d8597b7254ace1c36329f9083f
BLAKE2b-256 8b2757ee9c5cebca999fb815a2224823168f041700c5dbc18e0a52e10d55805d

See more details on using hashes here.

Supported by

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