Tools for working with json (especially) json-arrays.
Uses orjson
if present, otherwise standard json
.
pip install sb-json-tools
Allows you to validate iterables of json-objects according to json-schema
Regular and async functions.
Allows you to compare two json-objects and get a report how they differ, if they do.
Command-line tool to validate a json-file with a schema json-schema.
After cloning the repo, just run
make dev
make test
to setup a virtual environment, install dev dependencies and run the unit tests.
Note: If you run the command in a activated virtual environment, that environment is used instead.
-
Make changes and commit.
-
Update CHANGELOG.md:
-
If git-cliff is installed, run
make prepare-release
and then manually update the CHANGELOG.md. Commit the changes. (If the commit message start withchore(release): prepare for
, git-cliff will ignore the commit.) -
Without
git-cliff
add the relevant information with format below, above the latest release.## [unreleased] ### Added - new features ### Fixed - fixed a bug
Commit the changes. (If the commit message start with
chore(release): prepare for
, git-cliff will ignore the commit.)
-
-
Bump the version:
# Install dependencies for bumping the version make install-dev-release # Bump the version, choose what part by giving part= at command line # Bump the patch part [X.Y.Z -> X.Y.(Z+1)] make bumpversion # bump the minor part [X.Y.Z -> X.(Y+1).0] make bumpversion part=minor # bump the major part [X.Y.Z -> (X+1).0.0] make bumpversion part=major
bump-my-version
will commit and tag the bumping. -
Push the tag to GitHub for the release workflow to build and publish the release to PyPi.
- Either by running
make publish
(ormake publish branch=<BRANCH_NAME>
if not on main) - Or by running
git push origin main --tags
- Either by running