A copy & paste backport of Python 3.3’s shutil.which function.
Usage
First, install the package: pip install shutilwhich
Importing the package:
import shutilwhich
will monkey-patch the shutil package, so from that point on you can simply import the which function:
from shutil import which
To keep things a little more concise, you can also import which directly from shutilwhich:
from shutilwhich import which
This will still monkeypatch the shutil module. On Python 3.3 and above, the module never do anything but return the stdlib shutil.which function.
Metadata
Release files for shutilwhich 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shutilwhich-1.1.0.tar.gz | 2.3 kB | Without provenance | Details for shutilwhich-1.1.0.tar.gz |
Release files / shutilwhich-1.1.0.tar.gz
| Download URL | shutilwhich-1.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db1f39c6461e42f630fa617bb8c79090f7711c9ca493e615e43d0610ecb64dc6
|
|
BLAKE2b-256 checksum How to use checksums |
66be783f181594bb8bcfde174d6cd1e41956b986d0d8d337d535eb2555b92f8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for shutilwhich 1.1.0
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.