Metadata-Version: 1.1
Name: accepts
Version: 0.0.10
Summary: @accepts decorator to check arguments types
Home-page: https://github.com/russianidiot/accepts.py
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: .. image:: https://img.shields.io/badge/language-python-blue.svg
        
        .. image:: https://img.shields.io/pypi/pyversions/accepts.svg
           :target: https://pypi.python.org/pypi/accepts
        
        |codacy| |landscape| |codeclimate| |scrutinizer|
        
        .. |scrutinizer| image:: https://scrutinizer-ci.com/g/russianidiot/accepts.py/badges/quality-score.png?b=master
           :target: https://scrutinizer-ci.com/g/russianidiot/accepts.py/
           :alt: scrutinizer-ci.com
        
        .. |codacy| image:: https://api.codacy.com/project/badge/Grade/5b2185bc4a0343d7a1b9564457b2b8e3
           :target: https://www.codacy.com/app/russianidiot-github/accepts-py/dashboard
           :alt: codacy.com
        
        .. |codeclimate| image:: https://codeclimate.com/github/russianidiot/accepts.py/badges/gpa.svg
           :target: https://codeclimate.com/github/russianidiot/accepts.py
           :alt: codeclimate.com
        
        .. |landscape| image:: https://landscape.io/github/russianidiot/accepts.py/master/landscape.svg?style=flat
           :target: https://landscape.io/github/russianidiot/accepts.py/master/landscape.svg?style=flat
           :alt: landscape.io
        
        Install
        ```````
        
        :code:`[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,...)
        
        Example
        ```````
        
        .. code:: shell
        	
        	>>> @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,None))
        
        `Examples/`_
        
        .. _Examples/: https://github.com/russianidiot/accepts.py/tree/master/Examples
        
        Sources:
        
        *	`py_modules/accepts.py`_
        
        .. _`py_modules/accepts.py`: https://github.com/russianidiot/accepts.py/blob/master/py_modules/accepts.py
        
        Feedback |github_issues| |gitter| |github_follow|
        
        .. |github_issues| image:: https://img.shields.io/github/issues/russianidiot/accepts.py.svg
        	:target: https://github.com/russianidiot/accepts.py/issues
        
        .. |github_follow| image:: https://img.shields.io/github/followers/russianidiot.svg?style=social&label=Follow
        	:target: https://github.com/russianidiot
        
        .. |gitter| image:: https://badges.gitter.im/russianidiot/accepts.py.svg
        	:target: https://gitter.im/russianidiot/accepts.py
        
        ----
        
        `russianidiot.github.io/python/`_  - Python packages
        
        .. _russianidiot.github.io/python/: http://russianidiot.github.io/python/
        
        `russianidiot.github.io/cli/`_  - command line scripts
        
        .. _russianidiot.github.io/cli/: http://russianidiot.github.io/cli/
        
        `README.rst`_  - generated with `readmemako.py`_ (python+ `mako`_ templates) and `.README`_ dotfiles
        
        .. _README.rst: https://github.com/russianidiot/accepts.py/blob/master/README.rst
        .. _readmemako.py: http://github.com/russianidiot/readmemako.py/
        .. _mako: http://www.makotemplates.org/
        .. _.README: https://github.com/russianidiot-dotfiles/.README
        
Keywords: type decorator
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
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.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries :: Python Modules
