Skip to main content

No project description provided

Project description

sonq means son query, is tool for son like objects, for example, json and bson. You may use sonq to query .bson or newline separated .json files directly from command line.


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.

Files for sonq, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size sonq-0.1.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View
Filename, size sonq-0.1.2-py2.py3-none-any.whl (5.8 kB) File type Wheel Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page