Metadata-Version: 2.1
Name: suppress
Version: 0.1.0
Summary: A simple wrapper around contextlib.suppress
Author-email: j0hntv <j0hntvdesign@gmail.com>
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Project-URL: Home, https://github.com/j0hntv/suppress

# Suppres

Decorator to ignore exceptions in functions. A simple wrapper around contextlib.suppress.

## Install

```
pip install suppress
```

## Usage

```python
from suppress import suppress


@suppress(ZeroDivisionError)
def zero_error_function():
    1/0


def main():
    print('First print')
    zero_error_function()
    print('Second print')


if __name__ == '__main__':
    main()
```
Output:

```
First print
Second print
```

