Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.47 KB

README.rst

File metadata and controls

61 lines (39 loc) · 1.47 KB

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