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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
r2d2-3.0.0.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file r2d2-3.0.0.tar.gz
.
File metadata
- Download URL: r2d2-3.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6fada659e813ae8cf7ac412a8ef8bc8c1c33bbe7f107073904cce92dd2b48a8 |
|
MD5 | 6b70b1c4b6ed742297e5d940f1ae95b8 |
|
BLAKE2b-256 | e225c948dd053fec8099b1c65c405399feeb4ce8aa4b2644739cd5541569544c |
File details
Details for the file r2d2-3.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: r2d2-3.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ffd8aa6316cdd8609ed9c00e60996d38aff404ee08d27d83d3072689cd893aa |
|
MD5 | 0d2818b1321ecfcd43ed662400dce255 |
|
BLAKE2b-256 | 69737b53be292fe5b4acfc8101317b4b01a7573c7f11cf45bebbd021a36d2aa9 |