<commit_before>Schema validation just got Pythonic
===============================================================================

**schema** is a library for validating Python data structures, such as those
obtained from config-files, forms, external services or command-line
parsing, converted from JSON/YAML (or something else) to Python data-types.

Here is a quick example to get a feeling of **schema**:
validation of [*create a gist*](http://developer.github.com/v3/gists/)
request from github API.

```python
>>> from schema import Schema, And, Or, Use, Optional

>>> gist_schema = Schema({Optional('description'): str,<commit_msg>Remove unused imports.<commit_after>Schema validation just got Pythonic
===============================================================================

**schema** is a library for validating Python data structures, such as those
obtained from config-files, forms, external services or command-line
parsing, converted from JSON/YAML (or something else) to Python data-types.

Here is a quick example to get a feeling of **schema**:
validation of [*create a gist*](http://developer.github.com/v3/gists/)
request from github API.

```python
>>> from schema import Schema, Optional

>>> gist_schema = Schema({Optional('description'): str,
{'fraction_non_alphanumeric': 0.2164705882352941, 'fraction_numerical': 0.001568627450980392, 'mean_word_length': 6.291428571428572, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '6550208', 'n_tokens_mistral': 319, 'n_tokens_neox': 300, 'n_words': 132}