Pythonic type checking
Project description
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
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 need help (read: I messed up).
Suggest anything you want to see support for!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datatyping-0.6.0.tar.gz
.
File metadata
- Download URL: datatyping-0.6.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a13174699c1c3ab009dcd4c00d6dce18a3ddc86105ece8ae27e33da4ef7547a |
|
MD5 | b4448cbcd20fe99f20efe40fd5dac7ee |
|
BLAKE2b-256 | 424b83f349434205d096ba427277e4059b11a8c441b2b4c6586980ad025302f2 |
File details
Details for the file datatyping-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: datatyping-0.6.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fe2a2e9cbf9c327384350cc0923c9cb4f7ec128477385742126a598ae5d036 |
|
MD5 | 94a9658c9e1fa781e366ced4e9b3a253 |
|
BLAKE2b-256 | 3d6dc6436610c94eb8a858c2098546a469ea34d1810e7c59fde1f961a76e3f21 |