Metadata-Version: 1.2
Name: accepts
Version: 1.0.1
Summary: @accepts decorator to check arguments types
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/looking-for-a-job/accepts.py/issues
Project-URL: Homepage, https://github.com/looking-for-a-job/accepts.py
Description-Content-Type: UNKNOWN
Description: .. image:: https://img.shields.io/pypi/pyversions/accepts.svg
            :target: https://pypi.org/pypi/accepts/
        
        |
        
        .. image:: https://www.codefactor.io/repository/github/looking-for-a-job/accepts.py/badge
            :target: https://www.codefactor.io/repository/github/looking-for-a-job/accepts.py
        .. image:: https://codeclimate.com/github/looking-for-a-job/accepts.py/badges/gpa.svg
            :target: https://codeclimate.com/github/looking-for-a-job/accepts.py
        .. image:: https://img.shields.io/scrutinizer/g/looking-for-a-job/accepts.py.svg
            :target: https://scrutinizer-ci.com/g/looking-for-a-job/accepts.py/
        .. image:: https://bettercodehub.com/edge/badge/looking-for-a-job/accepts.py?branch=master
            :target: https://bettercodehub.com/results/looking-for-a-job/accepts.py
        .. image:: https://sonarcloud.io/api/project_badges/measure?project=accepts.py&metric=code_smells
            :target: https://sonarcloud.io/dashboard?id=accepts.py
        
        Install
        ```````
        
        
        .. code:: bash
        
            `[sudo] pip install accepts`
        
        Features
        ````````
        
        *	support **multiple types** argument
        *	support **None** argument
        *	human readable detailed exception message
        
        Usage
        `````
        
        
        .. code:: python
        
            >>> from accepts import accepts
            
            >>> @accepts(arg1type,arg2type,...)
        
        
        Examples
        ````````
        
        
        .. code:: python
        
            >>> @accepts(int)
            def inc(value):
            	return value+1
            
            >>> inc(1) # ok
            >>> inc(1.5) # exception
            TypeError: ....
            
            # multiple types
            >>> @accepts((int,float))
            
            # None
            >>> @accepts((int,float,type(None)))
        
        
        
        ----
        
        .. image:: https://img.shields.io/github/followers/looking-for-a-job.svg?style=social&label=Follow
            :target: https://github.com/looking-for-a-job
        
        .. image:: https://img.shields.io/github/stars/looking-for-a-job/accepts.py.svg?style=social&label=Stars
            :target: https://github.com/looking-for-a-job/accepts.py
        
        .. image:: https://img.shields.io/github/issues/looking-for-a-job/accepts.py.svg
            :target: https://github.com/looking-for-a-job/accepts.py/issues
        
Keywords: type,decorator
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Natural Language :: Russian
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.0
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
