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.

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

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: sonq-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 44bb42bf9f235a04f32bb6183335e3cebdda61ae4f603dfd2dd10b660c0da8eb
MD5 6663c5f0f20d986258cb85d0a384d61e
BLAKE2b-256 b17fe7780671598b6bdcf147c14ddfda7a5a3b5aa4f2a4709702571214e3168e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sonq-0.1.2-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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 911d016718d733f4e0336a05807b0bf7a306e6cbdcb95a7b2dc9975d50f916c0
MD5 3952d8e15bd5516747a199998bf13f39
BLAKE2b-256 9b4eb08575ee3276b1b1aa63c64c7c6baef2674b2e4b9b1f0628b611cacba8f3

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