Skip to main content

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>

Metadata

Release files for withcd 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for withcd 1.0.2
File Size Uploaded Provenance Actions
withcd-1.0.2.tar.gz 2.2 kB Without provenance Details for withcd-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for withcd 1.0.2
File Interpreter ABI Platform Actions
withcd-1.0.2-py3-none-any.whl Python 3 none any Details for withcd-1.0.2-py3-none-any.whl

Total release size: 4.7 kB

Release files / withcd-1.0.2.tar.gz

Download URL withcd-1.0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8ac2e43a6a053a7cb8c9bc40e899f6268ce8f1ff701654dd22360c7232e00f3
BLAKE2b-256 checksum
How to use checksums
d65f2a32746db4df568ddea33232e3fbe9ca5c961e5d6987d708f8a04682e768
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / withcd-1.0.2-py3-none-any.whl

Download URL withcd-1.0.2-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a08b9716e0eb45b376b79b537c1ff1a1dae4d9ee33693cce3389a05c9d52a0a
BLAKE2b-256 checksum
How to use checksums
52cd9d57623bcbc3b02a88cce1b0e37c4fcf2c2f857437c3e1366e35e0931833
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for withcd 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page