Skip to content

carlbordum/datatyping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datatyping

https://travis-ci.org/carlbordum/datatyping.svg?branch=master https://readthedocs.org/projects/datatyping/badge/?version=latest

datatyping is a pure Python library with no dependencies that you can use to verify whether elements in a data structure have the expected types. Great for incoming JSON.

import datatyping
datatyping.validate([int], [1, 2, 3])

Check out the documentation for more usage examples.

Installation

$ pip install datatyping

Develop with me :)

Fork the repository first. Then use the following lines to setup:

$ git clone https://github.com/YOUR_USERNAME/datatyping
$ cd datatyping
$ virtualenv venv
$ . venv/bin/activate
$ python setup.py develop

Run tests:

$ pip install pytest hypothesis
$ python -m pytest

Build documentation:

$ make -C docs/ html

Notes