{"id":19069266,"url":"https://github.com/socrateslee/sonq","last_synced_at":"2025-04-28T14:10:08.417Z","repository":{"id":57469328,"uuid":"138874646","full_name":"socrateslee/sonq","owner":"socrateslee","description":"A query tool for son like objects, for example, json and bson.","archived":false,"fork":false,"pushed_at":"2024-04-28T07:35:17.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T14:10:00.310Z","etag":null,"topics":["bson","json","mongodb","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/socrateslee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-27T11:51:06.000Z","updated_at":"2024-06-27T07:54:51.000Z","dependencies_parsed_at":"2024-04-28T08:34:47.940Z","dependency_job_id":null,"html_url":"https://github.com/socrateslee/sonq","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"a32c0a213eb12a0d5ee4fb3bd9b69dc609220cb7"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrateslee%2Fsonq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrateslee%2Fsonq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrateslee%2Fsonq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socrateslee%2Fsonq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socrateslee","download_url":"https://codeload.github.com/socrateslee/sonq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251326849,"owners_count":21571636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bson","json","mongodb","python"],"created_at":"2024-11-09T01:13:50.432Z","updated_at":"2025-04-28T14:10:08.381Z","avatar_url":"https://github.com/socrateslee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sonq\n\n__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.\n\n\n## Install\n\n```\npip install sonq\n```\n\n## Basic Usage\n\n- List the content of a .bson file\n```\nsonq source.bson\n```\n- Query a .bson file\n```\nsonq -f '{\"name\": \"Stark\"}' source.bson\n```\n- Convert query results to a newline separated .json file\n```\nsonq -f '{\"name\": \"Stark\"}' -o target.json source.bson\n```\n- Convert json from stdin to .bson\n```\necho '{\"name\": \"Stark\"}' | python3 -m sonq.cmd -o target.bson - \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocrateslee%2Fsonq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocrateslee%2Fsonq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocrateslee%2Fsonq/lists"}