patch-path
Run a command with patched executables on the path
This is vibe coded but I am using it.
Alternatives and prior work
This is encouraged by patching frameworks like mock in python and the LD_PRELOAD environment variable.
You could patch your PATH directory and have it point at a directory containing patching programs
Usage
Patch fzf with a program that returns an empty string and log calls to fzf along with their input
patch-path --fzf program
Patch fzf and have it return hello
patch-path --fzf=hello program
Metadata
Release files for patch-path 1.0.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 |
|---|---|---|---|---|
| patch_path-1.0.0.tar.gz | 2.4 kB | Without provenance | Details for patch_path-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| patch_path-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for patch_path-1.0.0-py3-none-any.whl |
Total release size: 5.2 kB
Release files / patch_path-1.0.0.tar.gz
| Download URL | patch_path-1.0.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de6cce0d723b317bdc5af4c51d213a2ba37c9318df18a0ec3b4bdc2c66654fb8
|
|
BLAKE2b-256 checksum How to use checksums |
3a8d83d044ba0eafe3def3a9b7184b187ac1a33b45725c3d0843406ccdfb9fc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / patch_path-1.0.0-py3-none-any.whl
| Download URL | patch_path-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc8494e79e254f54e9e57721963519fae116938cf0918f25a98b83334ffdb7da
|
|
BLAKE2b-256 checksum How to use checksums |
583b398aa379350dfb8a3728798af7c2c929723f91ad7b742c42ac1dbb95da00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for patch-path 1.0.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.