annotation-validation-0.1.1
توضیحات
Annotation Validation ensures type checking for function annotations.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | annotation-validation-0.1.1 |
| نام | annotation-validation |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sam Zuckerman |
| ایمیل نویسنده | sam.p.zuckerman@gmail.com |
| آدرس صفحه اصلی | https://github.com/szuckerman/annotation_validation |
| آدرس اینترنتی | https://pypi.org/project/annotation-validation/ |
| مجوز | MIT license |
=====================
Annotation Validation
=====================
.. image:: https://img.shields.io/pypi/v/annotation_validation.svg
:target: https://pypi.python.org/pypi/annotation_validation
.. image:: https://img.shields.io/travis/szuckerman/annotation_validation.svg
:target: https://travis-ci.org/szuckerman/annotation_validation
.. image:: https://readthedocs.org/projects/annotation-validation/badge/?version=latest
:target: https://annotation-validation.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/szuckerman/annotation_validation/shield.svg
:target: https://pyup.io/repos/github/szuckerman/annotation_validation/
:alt: Updates
Annotation Validation ensures type checking for function annotations.
* Free software: MIT license
* Documentation: https://annotation-validation.readthedocs.io.
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`_.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _this blog post: https://aboutsimon.com/blog/2018/04/04/Python3-Type-Checking-And-Data-Validation-With-Type-Hints.html
=======
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.
نحوه نصب
نصب پکیج whl annotation-validation-0.1.1:
pip install annotation-validation-0.1.1.whl
نصب پکیج tar.gz annotation-validation-0.1.1:
pip install annotation-validation-0.1.1.tar.gz