Skip to main content

Pythonic type checking

Project description

https://travis-ci.org/Zaab1t/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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datatyping-0.6.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

datatyping-0.6.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for datatyping-0.6.0.tar.gz
Algorithm Hash digest
SHA256 6a13174699c1c3ab009dcd4c00d6dce18a3ddc86105ece8ae27e33da4ef7547a
MD5 b4448cbcd20fe99f20efe40fd5dac7ee
BLAKE2b-256 424b83f349434205d096ba427277e4059b11a8c441b2b4c6586980ad025302f2

See more details on using hashes here.

File details

Details for the file datatyping-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for datatyping-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06fe2a2e9cbf9c327384350cc0923c9cb4f7ec128477385742126a598ae5d036
MD5 94a9658c9e1fa781e366ced4e9b3a253
BLAKE2b-256 3d6dc6436610c94eb8a858c2098546a469ea34d1810e7c59fde1f961a76e3f21

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page