{"id":15493808,"url":"https://github.com/peter554/jsonsqlquery","last_synced_at":"2026-06-10T17:31:30.803Z","repository":{"id":216201078,"uuid":"609628169","full_name":"Peter554/jsonsqlquery","owner":"Peter554","description":"Query JSON with SQL","archived":false,"fork":false,"pushed_at":"2023-03-06T09:58:07.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T10:35:46.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Peter554.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-03-04T18:50:20.000Z","updated_at":"2025-05-30T21:58:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"e433470b-7458-4eec-8530-6158b98e792b","html_url":"https://github.com/Peter554/jsonsqlquery","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"db3036d1cba6e05b5a56141d13ca89e4fa042f37"},"previous_names":["peter554/jsonsqlquery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Peter554/jsonsqlquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fjsonsqlquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fjsonsqlquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fjsonsqlquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fjsonsqlquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter554","download_url":"https://codeload.github.com/Peter554/jsonsqlquery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fjsonsqlquery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34163253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-02T08:09:27.723Z","updated_at":"2026-06-10T17:31:30.786Z","avatar_url":"https://github.com/Peter554.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonsqlquery\n\n[![CI](https://github.com/Peter554/jsonsqlquery/actions/workflows/ci.yml/badge.svg)](https://github.com/Peter554/jsonsqlquery/actions/workflows/ci.yml)\n\nQuery JSON using SQL.\n\n```\npip install jsonsqlquery\n```\n\n## Examples\n\n```\n# students.jsonl\n{\"name\": \"Alvin\", \"age\": 25, \"major\": \"Literature\"}\n{\"name\": \"Kathy\", \"age\": 31, \"major\": \"Literature\"}\n{\"name\": \"Pauline\", \"age\": 11, \"major\": \"Mathematics\"}\n{\"name\": \"Nora\", \"age\": 27, \"major\": \"Mathematics\"}\n{\"name\": \"Martin\", \"age\": 54, \"major\": \"Geology\"}\n```\n\nInline SQL query:\n\n```\ncat students.jsonl | jsonsqlquery --query 'select name, age from data where age \u003e 30'\n```\n\nSQL query from a file:\n\n```\ncat students.jsonl | jsonsqlquery --query-file query.sql\n```\n\nCreate a SQLite database:\n\n```\ncat students.jsonl | jsonsqlquery --create-db students.db\n```\n\nPython API:\n\n```py\nimport jsonsqlquery\n\nstudents = [...]\nolder_students = jsonsqlquery.query(students, \"select name, age from data where age \u003e 30\")\n```\n\n## Caveats\n\n* Data is cast to SQLite data types.\n* Data is assumed to fit in memory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fjsonsqlquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter554%2Fjsonsqlquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fjsonsqlquery/lists"}