Metadata-Version: 2.1
Name: accepts
Version: 1.0.4
Summary: @accepts decorator to check arguments types
Home-page: https://github.com/looking-for-a-job/accepts.py
License: UNKNOWN
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: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
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
Description-Content-Type: text/markdown
Requires-Dist: public
Requires-Dist: setuptools

[![](https://img.shields.io/pypi/pyversions/accepts.svg?longCache=True)](https://pypi.org/pypi/accepts/)

### Install
```bash
$ [sudo] pip install accepts
```

### Features
*	support **multiple types** argument
*	support **None** argument
*	human readable detailed exception message

### Examples
```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)))
```

