dripolles / typeschema

A simpler type validator based on jsonschema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typeschema image Build Status

Packages

  • typeschema
  • typeschema.decorators
  • typeschema.types.time
  • typeschema.types.location
  • typeschema.properties
  • typeschema.properties.time
  • typeschema.properties.location

Compatibility

This library is developed and tested for Python 2.7. It is not compatible with Python 3 at the moment.

Installation

### From PyPI

pip install typeschema

Development mode

Clone this repository, cd to it, and then:

pip install -e .

Makes the package available on sys.path symlinked so that it can be edited directly from its source checkout.

Caveats: If any other package install this one as dependency the link will be removed, and the command must be executed again.

Production mode

sudo pip install .

As a dependency

At your setup.py add:

setup(
    ...
    install_requires=[
        ...
        'typeschema==<version>'
        ...
    ]
)

Documentation

cd docs
sudo pip install -r requirements.txt
sphinx-build -b html . build

After running those commands, the documention can be find at docs/build/index.html.

Tests

Tests are in the tests folder. Run them with nosetests or py.test.

About

A simpler type validator based on jsonschema.

License:MIT License


Languages

Language:Python 100.0%