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.

Files for annotation-validation, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size annotation_validation-0.1.1-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size annotation_validation-0.1.1.tar.gz (9.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page