carlbordum / datatyping

Pythonic type checking

Home Page:http://datatyping.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datatyping

image

image

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

http://datatyping.readthedocs.io

License:MIT License


Languages

Language:Python 100.0%