Metadata-Version: 2.1
Name: r2d2
Version: 3.0.0
Summary: some handy functions
Home-page: https://github.com/clumsyme/r2d2
Author: Li Yan
Author-email: me@imliyan.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0


# r2d2

some handy functions

## APIS:

### `goto(directroy: str)`

进入目标目录 `directroy` -> 操作 -> 返回之前目录。

用于临时进入目标目录进行操作，如果目标目录不存在，则会被创建。

```py
os.getcwd()
# /current/directory

with goto('/my/directory'):
    os.getcwd()
    # /my/directory

    process()

os.getcwd()
# /current/directory
```


