vinschess / datatyping

Pythonic type checking

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 has the expected types. Great for incomming json.

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

Check out the documentation for examples, installation instructions and usage.

Develop with me :)

Fork the repo first. Use the following lines to setup

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

Run tests

$ pip install pytest
$ 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%