Skip to main content

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.

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 -

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.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonq-0.1.1-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: sonq-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for sonq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 998ff1b3624c2d577d70e485cf9dca4dc474d4ff0a11f1e6e8339a0f1247974e
MD5 a2f5db2c463720754b1c53a18b90a9a3
BLAKE2b-256 6de1f4631de53286a80e96b727fe404f07bd4404fa4c561eb2874036030a1287

See more details on using hashes here.

File details

Details for the file sonq-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: sonq-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for sonq-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1058c5bcc755096a2dd058bb342b01cc186509388b8873748fa92999b9f8adb5
MD5 c8ffad8d63791958da9d8c6ecba14f1e
BLAKE2b-256 54c7046797f87ecbe5c711ed03813cab9920bbd98a184cbb3a864650219044bf

See more details on using hashes here.

Supported by

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