<commit_before>[![Build Status](https://travis-ci.org/rob-earwaker/jschema.svg?branch=master)]
(https://travis-ci.org/rob-earwaker/jschema)

[![Coverage Status]
(https://coveralls.io/repos/github/rob-earwaker/jschema/badge.svg?branch=master)]
(https://coveralls.io/github/rob-earwaker/jschema?branch=master)

# jschema
Define classes that conform to a [JSON schema](http://json-schema.org/), with
built-in validation and schema generation.

## The JSchema Class
A `jschema.JSchema` object represents an validated JSON schema. Any recognised
JSON schema field can be passed as a keyword argument when initialising a
`jschema.JSchema` object:

```python
>>> import jschema
>>>
>>> jschema.JSchema()
<jschema.JSchema object at 0x...>
>>>
>>> jschema.JSchema(
...     title='First name',
...     type='string',<commit_msg>Inlined badges<commit_after>[![Build Status](https://travis-ci.org/rob-earwaker/jschema.svg?branch=master)]
(https://travis-ci.org/rob-earwaker/jschema)
[![Coverage Status]
(https://coveralls.io/repos/github/rob-earwaker/jschema/badge.svg?branch=master)]
(https://coveralls.io/github/rob-earwaker/jschema?branch=master)

# jschema
Define classes that conform to a [JSON schema](http://json-schema.org/), with
built-in validation and schema generation.

## The JSchema Class
A `jschema.JSchema` object represents an validated JSON schema. Any recognised
JSON schema field can be passed as a keyword argument when initialising a
`jschema.JSchema` object:

```python
>>> import jschema
>>>
>>> jschema.JSchema()
<jschema.JSchema object at 0x...>
>>>
>>> jschema.JSchema(
...     title='First name',
...     type='string',
{'fraction_non_alphanumeric': 0.15892420537897312, 'fraction_numerical': 0.0012224938875305623, 'mean_word_length': 4.996336996336996, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6752824', 'n_tokens_mistral': 539, 'n_tokens_neox': 528, 'n_words': 124}