Skip to main content

Annotation Validation ensures type checking for function annotations.

Project description

Annotation Validation

https://img.shields.io/pypi/v/annotation_validation.svg https://img.shields.io/travis/szuckerman/annotation_validation.svg Documentation Status Updates

Annotation Validation ensures type checking for function annotations.

Features

  • Validates input to match data types of annotations of function arguments

  • Validates output to match data type of annotation of return argument

  • Used as a decorator!

Possible Improvements

  • Validation of ranges of input

  • Throw warnings instead of errors

  • Logging

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Inspiration is from this blog post.

History

0.1.1 (2019-02-05)

  • Adding caching to getfullargspec and get_type_hints.

0.1.0 (2019-02-04)

  • First release on PyPI.

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

annotation_validation-0.1.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

annotation_validation-0.1.1-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file annotation_validation-0.1.1.tar.gz.

File metadata

  • Download URL: annotation_validation-0.1.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for annotation_validation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8003630b978ff42943fc859e1a578e24291b4a5ffc93ad12111aecf734038fd6
MD5 8cfc93857c91707092b45df277a814f1
BLAKE2b-256 2855ce694f71480194b6c63eafa1b29f8de9c833612ee7f41dc52c7d2051cc68

See more details on using hashes here.

File details

Details for the file annotation_validation-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: annotation_validation-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for annotation_validation-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 88e746c22aea3a469af934310b44c635a0d6d990ee58cc2cbb17b4b592052512
MD5 0b5a33dddb3f005a5ba7572d8dd07329
BLAKE2b-256 7ae6c215e7a53701ff2d9e4470aa40fb981853fef0ff0539571b88d5af4ee0a4

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