Skip to main content

Change working directory utility compatible with with statements

Project description

withcd

Change working directory utility compatible with "with" statement

It changes the working directory while inside the "with", then it changes back to where it was originally

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.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file withcd-1.0.0.tar.gz.

File metadata

  • Download URL: withcd-1.0.0.tar.gz
  • Upload date:
  • Size: 2.1 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.0.tar.gz
Algorithm Hash digest
SHA256 13af26e5272a8f50428021af71e7abb5612ecec05cf7ea47285768f3d45a3216
MD5 d0de1d56d3dc760ab2bb9d09ddc542ac
BLAKE2b-256 5f338042793f1af910dc79f6a97f4c441bbff8b0a6e58173c4405e57043113ef

See more details on using hashes here.

File details

Details for the file withcd-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: withcd-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64886afd5ba430b8f35f4c6603ec8dc4e6599533a3ddaa3c8ac8bb7923cf449a
MD5 f677ee62ebd8f6c88b05607e63d100a2
BLAKE2b-256 0e37748c58e540f01876a611fcc002222bd0f59db892937c5c97c256c56ee40d

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