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 -

Metadata

Release files for sonq 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonq 0.1.2
File Size Uploaded
sonq-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonq 0.1.2
File Interpreter ABI Platform
sonq-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.7 kB

Release files / sonq-0.1.2.tar.gz

Download URL sonq-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
44bb42bf9f235a04f32bb6183335e3cebdda61ae4f603dfd2dd10b660c0da8eb
BLAKE2b-256 checksum
How to use checksums
b17fe7780671598b6bdcf147c14ddfda7a5a3b5aa4f2a4709702571214e3168e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / sonq-0.1.2-py2.py3-none-any.whl

Download URL sonq-0.1.2-py2.py3-none-any.whl
Size 5.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
911d016718d733f4e0336a05807b0bf7a306e6cbdcb95a7b2dc9975d50f916c0
BLAKE2b-256 checksum
How to use checksums
9b4eb08575ee3276b1b1aa63c64c7c6baef2674b2e4b9b1f0628b611cacba8f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page