Skip to main content

some handy functions

Project description


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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for r2d2, version 3.0.0
Filename, size File type Python version Upload date Hashes
Filename, size r2d2-3.0.0-py2.py3-none-any.whl (2.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size r2d2-3.0.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page