Skip to content

A simpler type validator based on jsonschema.

License

Notifications You must be signed in to change notification settings

tcard/typeschema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages