https://github.com/carlbordum/datatyping
Pythonic type checking
https://github.com/carlbordum/datatyping
check pythonic type typing use-protection
Last synced: 4 months ago
JSON representation
Pythonic type checking
- Host: GitHub
- URL: https://github.com/carlbordum/datatyping
- Owner: carlbordum
- License: mit
- Created: 2017-07-22T02:18:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T18:45:57.000Z (over 6 years ago)
- Last Synced: 2025-02-12T21:47:56.642Z (4 months ago)
- Topics: check, pythonic, type, typing, use-protection
- Language: Python
- Homepage: http://datatyping.readthedocs.io
- Size: 78.1 KB
- Stars: 35
- Watchers: 4
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
datatyping
==========.. image:: https://travis-ci.org/carlbordum/datatyping.svg?branch=master
:target: https://travis-ci.org/carlbordum/datatyping.. image:: https://readthedocs.org/projects/datatyping/badge/?version=latest
:target: http://datatyping.readthedocs.io`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... code-block:: python
import datatyping
datatyping.validate([int], [1, 2, 3])Check out the `documentation `_ for more usage examples.
Installation
------------.. code-block:: bash
$ pip install datatyping
Develop with me :)
------------------Fork the repository first. Then use the following lines to setup:
.. code-block:: bash
$ git clone https://github.com/YOUR_USERNAME/datatyping
$ cd datatyping
$ virtualenv venv
$ . venv/bin/activate
$ python setup.py developRun tests:
.. code-block:: bash
$ pip install pytest hypothesis
$ python -m pytestBuild documentation:
.. code-block:: bash
$ make -C docs/ html
Notes
-----
* Inspired by `"How Python Makes Working With Data More Difficult in the Long Run" `_.
* Any and all contributions are welcome.
* Please open an issue if you think we can help.
* Suggest anything you want to see support for!