{"id":21996930,"url":"https://github.com/spraakbanken/python-json-tools","last_synced_at":"2025-04-30T21:02:38.832Z","repository":{"id":57464065,"uuid":"152029577","full_name":"spraakbanken/python-json-tools","owner":"spraakbanken","description":"Tools for working with json, for instance validating with json-schema (https://json-schema.org)","archived":false,"fork":false,"pushed_at":"2025-01-08T09:07:12.000Z","size":5257,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-14T05:47:02.158Z","etag":null,"topics":["json","python"],"latest_commit_sha":null,"homepage":"","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/spraakbanken.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-08T06:34:09.000Z","updated_at":"2025-01-08T09:06:20.000Z","dependencies_parsed_at":"2025-01-08T09:44:38.805Z","dependency_job_id":null,"html_url":"https://github.com/spraakbanken/python-json-tools","commit_stats":{"total_commits":182,"total_committers":5,"mean_commits":36.4,"dds":"0.34065934065934067","last_synced_commit":"4312dd32e2b1e9f03b2e8836a17f34b4049fc721"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spraakbanken%2Fpython-json-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spraakbanken%2Fpython-json-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spraakbanken%2Fpython-json-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spraakbanken%2Fpython-json-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spraakbanken","download_url":"https://codeload.github.com/spraakbanken/python-json-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251782736,"owners_count":21642983,"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":["json","python"],"created_at":"2024-11-29T22:13:33.377Z","updated_at":"2025-04-30T21:02:38.779Z","avatar_url":"https://github.com/spraakbanken.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sb-json-tools\n\n[![PyPI version](https://badge.fury.io/py/sb-json-tools.svg)](https://pypi.org/project/sb-json-tools/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sb-json-tools)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/sb-json-tools)](https://pypi.org/project/sb-json-tools/)\n\n[![Maturity badge - level 3](https://img.shields.io/badge/Maturity-Level%203%20--%20Stable-green.svg)](https://github.com/spraakbanken/getting-started/blob/main/scorecard.md)\n[![Stage](https://img.shields.io/pypi/status/sb-json-tools)](https://pypi.org/project/sb-json-tools/)\n\n[![Code Coverage](https://codecov.io/gh/spraakbanken/python-json-tools/branch/main/graph/badge.svg)](https://codecov.io/gh/spraakbanken/python-json-tools/)\n\n[![CI(check)](https://github.com/spraakbanken/python-json-tools/actions/workflows/check.yml/badge.svg)](https://github.com/spraakbanken/python-json-tools/actions/workflows/check.yml)\n[![CI(release)](https://github.com/spraakbanken/python-json-tools/actions/workflows/release.yml/badge.svg)](https://github.com/spraakbanken/python-json-tools/actions/workflows/release.yml)\n[![CI(scheduled)](https://github.com/spraakbanken/python-json-tools/actions/workflows/scheduled.yml/badge.svg)](https://github.com/spraakbanken/python-json-tools/actions/workflows/scheduled.yml)\n[![CI(test)](https://github.com/spraakbanken/python-json-tools/actions/workflows/test.yml/badge.svg)](https://github.com/spraakbanken/python-json-tools/actions/workflows/test.yml)\n\nTools for working with json (especially) json-arrays.\n\nUses `orjson` if present, otherwise standard `json`.\n\n## Usage\n\n### Installation\n\n```bash\npip install sb-json-tools\n```\n\n## json-val (`lib: sb_json_tools.jt_val`)\n\nAllows you to validate iterables of json-objects\naccording to [json-schema](https://wwww.json-schema.org)\n\nRegular and async functions.\n\n## json-diff (`lib: sb_json_tools.jsondiff`)\n\nAllows you to compare two json-objects and get a report\nhow they differ, if they do.\n\n## json-val\n\nCommand-line tool to validate a json-file with a schema [json-schema](http://json-schema.org).\n\n## Development\n\nAfter cloning the repo, just run\n\n```bash\nmake dev\nmake test\n```\n\nto setup a virtual environment,\ninstall dev dependencies\nand run the unit tests.\n\n_Note:_ If you run the command in a activated virtual environment,\nthat environment is used instead.\n\n### Make a release\n\n1. Make changes and commit.\n2. Update CHANGELOG.md:\n   1. If [git-cliff](https://git-cliff.org) is installed, run `make prepare-release` and then manually update the CHANGELOG.md. Commit the changes. (If the commit message start with `chore(release): prepare for`, git-cliff will ignore the commit.)\n   2. Without `git-cliff` add the relevant information with format below, above the latest release.\n\n      ```markdown\n      ## [unreleased]\n\n      ### Added\n      - new features\n\n      ### Fixed\n      - fixed a bug\n      ```\n\n      Commit the changes. (If the commit message start with `chore(release): prepare for`, git-cliff will ignore the commit.)\n3. Bump the version:\n\n   ```bash\n   # Install dependencies for bumping the version\n   make install-dev-release\n   # Bump the version, choose what part by giving part= at command line\n   # Bump the patch part [X.Y.Z -\u003e X.Y.(Z+1)]\n   make bumpversion\n   # bump the minor part [X.Y.Z -\u003e X.(Y+1).0]\n   make bumpversion part=minor\n   # bump the major part [X.Y.Z -\u003e (X+1).0.0]\n   make bumpversion part=major\n   ```\n\n   [`bump-my-version`](https://callowayproject.github.io/bump-my-version/) will commit and tag the bumping.\n4. Push the tag to GitHub for the [release](.github/workflows/release.yml) workflow to build and publish the release to [PyPi](https://pypi.org).\n   1. Either by running `make publish` (or `make publish branch=\u003cBRANCH_NAME\u003e` if not on main)\n   2. Or by running `git push origin main --tags`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspraakbanken%2Fpython-json-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspraakbanken%2Fpython-json-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspraakbanken%2Fpython-json-tools/lists"}