semvec/pypi-packages huggingface dataset:
ujs-jsonvalidate 0.1.0
JSON validation utility
License: MIT
Keywords: bookujs json json-schema

=====================
JSON Validate Utility
=====================

Part of the
`Using JSON Schema <http://usingjsonschema.github.io>`_
project.

``jsonvalidate`` is a command line and library utility allowing JSON content
to be validated using JSON Schema content from local or remote sources, and
use of custom schema storage and URI access.

The utility uses the
`jsonschema <https://pypi.python.org/pypi/jsonschema>`_
library for the schema validation processing
(`GitHub repo <https://github.com/Julian/jsonschema>`_).

For command line/script use, a console message is displayed and the process
exits with 0 for success, 1 for failure.

.. image:: https://travis-ci.org/usingjsonschema/ujs-jsonvalidate-python.svg?branch=master
    :target: https://travis-ci.org/usingjsonschema/ujs-jsonvalidate-python

Command Line / Script Use
-------------------------

To run the validation (command line or script), use the ``validate``
command with a file name (path optional). For example, to check the file
``example.json`` against the schema ``example_schema.json``, use,

.. code:: bash

    validate example.json example_schema.json

Library Function Use
--------------------

**validate** (dataFile, schemaFile, refFiles, jsdbFile, callback)

| Arguments:
|     dataFile *String* File name of JSON data file (path optional)
|     schemaFile *String* File name of JSON Schema file (path optional)
|     refFiles *String[]* Array of file names for $ref files (path optional)
|     jsdbFile *String* File name for JSDB file (path optional)
|
| Returns:
|     code, data, message
|
|     - *code* is the validation result
|     - *data* is the validated JSON content from dataFile
|     - *message* is text message associated with the *code*

For example,

.. code:: python

    from jsonvalidate import validate, VALID

    dataFile = "example.json"
    schemaFile = "example_schema.json"
    refFiles = ["ref1_schema.json", "ref2_schema.json"]
    jsdbFile = None

    code, data, message = validate (dataFile, schemaFile, refFiles, jsdbFile)
    if code == VALID:
        print ("Valid JSON content");
    else:
        print ("Error: " + str (message))

Installation
------------

The program can be installed using ``pip``, with the command,

.. code:: bash

    pip install ujs-jsonvalidate

License
-------

MIT
ujs-jsonsyntax 0.1.0
JSON syntax checker
License: MIT
Keywords: bookujs json

=================
JSON Syntax Check
=================

Part of the
`Using JSON Schema <http://usingjsonschema.github.io>`_
project.

The 'hello world' of JSON processing, check the syntax of a JSON file.

For command line/script use, a console message is displayed and the process
exits with 0 for success, 1 for failure.

.. image:: https://travis-ci.org/usingjsonschema/ujs-jsonsyntax-python.svg?branch=master
    :target: https://travis-ci.org/usingjsonschema/ujs-jsonsyntax-python

Command Line / Script Use
-------------------------
Usage: jsonsyntax filename
- filename name of file to check (path optional)

To run the syntax checker (command line or script) against the file
``example.json`` use,

.. code-block:: bash

    jsonsyntax example.json

Library Function Use
--------------------
To use the syntax checker as a library function, call the ``syntaxCheck``
function in a try/except block. For example,

.. code-block:: python

    from jsonsyntax import checkSyntax
    try :
        checkSyntax ("example.json")
        print ("Valid JSON file")
    except as e:
        print ("Error: " + e.message);

Install
-------
Installation using pip for Python 2 (2.7) or Python 3.

.. code-block:: bash

    pip install ujs-jsonsyntax

License
-------
MIT
py-configurator 0.0.3
Tiny configuration wrapper module
License: MIT

py-configurator
===============

.. image:: https://badge.fury.io/py/py-configurator.svg
   :target: http://badge.fury.io/py/py-configurator

.. image:: https://travis-ci.org/ryankanno/py-configurator.png?branch=master
   :target: https://travis-ci.org/ryankanno/py-configurator

.. image:: https://coveralls.io/repos/ryankanno/py-configurator/badge.png?branch=master
   :target: https://coveralls.io/r/ryankanno/py-configurator?branch=master

Just a tiny configuration library I tend to use a lot.

Docs
----
They will end up somewhere.

License
-------
MIT