Tools for working with JSON files.
Project description
# python-json-tools
[![Build Status](https://travis-ci.org/spraakbanken/python-json-tools.svg?branch=master)](https://travis-ci.org/spraakbanken/python-json-tools) [![codecov](https://codecov.io/gh/spraakbanken/python-json-tools/branch/master/graph/badge.svg)](https://codecov.io/gh/spraakbanken/python-json-tools) [![Build Status](https://github.com/spraakbanken/python-json-tools/workflows/Build/badge.svg)](https://github.com/spraakbanken/python-json-tools/actions)
Tools for working with json (especially) json-arrays.
Uses ujson if present, otherwise standard json.
## json-iter (lib: jt_iter)
Allows you to use json.load and json.dump with both json and json-lines files as well as dumping generators.
Regular functions and async functions.
## json-val (lib: jt_val)
Allows you to validate iterables of json-objects according to [json-schema](https://wwww.json-schema.org)
Regular and async functions.
## json-diff (lib: jt_diff)
Allows you to compare two json-objects and get a report how they differ, if they do.
## json-val
Command-line tool to validate a json-file with a schema [json-schema](http://json-schema.org).
# Development
After cloning the repo, just run ` $ 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.
# Installation
If you don’t use pipsi, you’re missing out. Here are [installation instructions](https://github.com/mitsuhiko/pipsi#readme).
Simply run:
$ pipsi install .
# Usage
To use it:
$ json-validator –help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sb_json_tools-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de3acd381ccbf92257cd3af459e57f62923565cdb13510d65674c7c66dd7bfc |
|
MD5 | dbbad80d8c25106e16ca03105fc70cf4 |
|
BLAKE2b-256 | 6de0dec78e04310204222be50c1523c4b7d644f27867e8479bf1ab9e1ea07f27 |