{"id":15432924,"url":"https://github.com/simonw/sqlite-utils-jq","last_synced_at":"2025-04-19T17:50:29.877Z","repository":{"id":187546431,"uuid":"677187897","full_name":"simonw/sqlite-utils-jq","owner":"simonw","description":"Plugin adding a jq() SQL function to sqlite-utils","archived":false,"fork":false,"pushed_at":"2023-08-11T00:53:58.000Z","size":3,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T07:53:18.340Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonw.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}},"created_at":"2023-08-11T00:45:35.000Z","updated_at":"2023-12-31T15:57:19.000Z","dependencies_parsed_at":"2023-08-11T02:43:02.223Z","dependency_job_id":null,"html_url":"https://github.com/simonw/sqlite-utils-jq","commit_stats":null,"previous_names":["simonw/sqlite-utils-jq"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fsqlite-utils-jq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fsqlite-utils-jq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fsqlite-utils-jq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fsqlite-utils-jq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/sqlite-utils-jq/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249753001,"owners_count":21320644,"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":[],"created_at":"2024-10-01T18:29:22.326Z","updated_at":"2025-04-19T17:50:29.856Z","avatar_url":"https://github.com/simonw.png","language":"Python","readme":"# sqlite-utils-jq\n\n[![PyPI](https://img.shields.io/pypi/v/sqlite-utils-jq.svg)](https://pypi.org/project/sqlite-utils-jq/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/sqlite-utils-jq?include_prereleases\u0026label=changelog)](https://github.com/simonw/sqlite-utils-jq/releases)\n[![Tests](https://github.com/simonw/sqlite-utils-jq/workflows/Test/badge.svg)](https://github.com/simonw/sqlite-utils-jq/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/sqlite-utils-jq/blob/main/LICENSE)\n\nPlugin adding a `jq()` SQL function to [sqlite-utils](https://sqlite-utils.datasette.io/).\n\n## Installation\n\nInstall this plugin in the same environment as `sqlite-utils`:\n```bash\nsqlite-utils install sqlite-utils-jq\n```\n\n## Usage\n\nThis plugin adds a `jq()` function for executing [jq](https://jqlang.github.io/jq/) programs against JSON values.\n\n```bash\nsqlite-utils memory \"select jq(:doc, :expr) as result\" \\\n  -p doc '{\"foo\": \"bar\"}' \\\n  -p expr '.foo' \\\n  --table\n```\nOutput:\n```\nresult\n--------\n\"bar\"\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n    cd sqlite-utils-jq\n    python3 -m venv venv\n    source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fsqlite-utils-jq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fsqlite-utils-jq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fsqlite-utils-jq/lists"}