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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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