Skip to content

About

Pythonic type checking

Topics

Resources

Stars

35 stars

Watchers

4 watching

Forks

Latest commit

 

History

135 Commits

Folders and files

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

About

Pythonic type checking

Topics

Resources

Stars

35 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages