Metadata-Version: 2.1
Name: use-context
Version: 0.0.2
Summary: UNKNOWN
Home-page: https://github.com/Cologler/use-context-python
License: MIT License
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown

# use-context

![GitHub](https://img.shields.io/github/license/Cologler/use-context-python.svg)
[![Build Status](https://travis-ci.com/Cologler/use-context-python.svg?branch=master)](https://travis-ci.com/Cologler/use-context-python)
[![PyPI](https://img.shields.io/pypi/v/use-context.svg)](https://pypi.org/project/use-context/)

use some vars in current context and try rollback state when exit the context.

## Usage

``` py
from use_context import use

ls = [1, 2, 3]
with use(ls):
    ls.append(5)
assert ls == [1, 2, 3]
```


