Skip to main content

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


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)

Uploaded Source

Built Distribution

withcd-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for withcd-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b8ac2e43a6a053a7cb8c9bc40e899f6268ce8f1ff701654dd22360c7232e00f3
MD5 ca53f91ab9afd6d8dabea4f3096647d9
BLAKE2b-256 d65f2a32746db4df568ddea33232e3fbe9ca5c961e5d6987d708f8a04682e768

See more details on using hashes here.

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

Hashes for withcd-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a08b9716e0eb45b376b79b537c1ff1a1dae4d9ee33693cce3389a05c9d52a0a
MD5 52af6cf767f15854c1ac3097c70a3809
BLAKE2b-256 52cd9d57623bcbc3b02a88cce1b0e37c4fcf2c2f857437c3e1366e35e0931833

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page