Metadata-Version: 2.1
Name: py-defer
Version: 1.0.0
Summary: Golang-esque defer functionality
Home-page: http://github.com/naphta/with-defer
Author: Jake Hill
Author-email: jake@naphta.uk
License: MIT
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: attr (>=0.3.1)

[![image](https://img.shields.io/pypi/v/py-defer.svg)](https://pypi.org/project/py-defer/)
[![image](https://img.shields.io/pypi/l/py-defer.svg)](https://pypi.org/project/py-defer/)
[![image](https://img.shields.io/pypi/pyversions/py-defer.svg)](https://pypi.org/project/py-defer/)
[![travis-ci.org](https://travis-ci.org/naphta/py-defer.svg?branch=master)](https://travis-ci.org/naphta/py-defer)
[![codecov.io](https://codecov.io/github/naphta/py-defer/coverage.svg?branch=master)](https://codecov.io/github/naphta/py-defer)
[![image](https://img.shields.io/github/contributors/naphta/py-defer.svg)](https://github.com/naphta/py-defer/graphs/contributors)
[![image](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/naphta)

Defer
============
Add a simple golang-esque deferral system for python.

# Usage

```
import defer


@defer.with_defer
def example_function(defer):
    print("Hello")
    defer(print, "!")
    print("World")

example_function()
> Hello
> World
> !
```

