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!
Release files for datatyping 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datatyping-0.6.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datatyping-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / datatyping-0.6.0.tar.gz
| Download URL | datatyping-0.6.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a13174699c1c3ab009dcd4c00d6dce18a3ddc86105ece8ae27e33da4ef7547a
|
|
BLAKE2b-256 checksum How to use checksums |
424b83f349434205d096ba427277e4059b11a8c441b2b4c6586980ad025302f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / datatyping-0.6.0-py3-none-any.whl
| Download URL | datatyping-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06fe2a2e9cbf9c327384350cc0923c9cb4f7ec128477385742126a598ae5d036
|
|
BLAKE2b-256 checksum How to use checksums |
3d6dc6436610c94eb8a858c2098546a469ea34d1810e7c59fde1f961a76e3f21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |