Change working directory utility compatible with with statements
Project description
withcd
Change working directory utility compatible with "with" statement
Changes the working directory while inside the "with" statement, then it changes the working directory back to where it was originally.
Install
python -m pip install withcd
Usage
from withcd import cd
from os import getcwd
print(getcwd()) #<path>
with(cd('foo')):
print(getcwd()) #<path>/foo
print(getcwd()) #<path>
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
withcd-1.0.2.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file withcd-1.0.2.tar.gz.
File metadata
- Download URL: withcd-1.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8ac2e43a6a053a7cb8c9bc40e899f6268ce8f1ff701654dd22360c7232e00f3
|
|
| MD5 |
ca53f91ab9afd6d8dabea4f3096647d9
|
|
| BLAKE2b-256 |
d65f2a32746db4df568ddea33232e3fbe9ca5c961e5d6987d708f8a04682e768
|
File details
Details for the file withcd-1.0.2-py3-none-any.whl.
File metadata
- Download URL: withcd-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a08b9716e0eb45b376b79b537c1ff1a1dae4d9ee33693cce3389a05c9d52a0a
|
|
| MD5 |
52af6cf767f15854c1ac3097c70a3809
|
|
| BLAKE2b-256 |
52cd9d57623bcbc3b02a88cce1b0e37c4fcf2c2f857437c3e1366e35e0931833
|