full-apply
Apply commands to both file contents and paths.
Installation
pip3 install full-apply
Usage
$ full-apply --help
Usage: full-apply [OPTIONS] CMD PATHS...
Apply commands to both file contents and paths.
File paths and contents will be piped into the given shell command's
standard input and replaced with its output.
Examples:
Replace all occurrences of "foo" with "bar" in both paths and file contents
within the current directory and sub-directories (will prompt for
confirmation before actually making any changes):
$ full-apply -r "sed s/foo/bar/g" .
Arguments:
CMD shell command to apply [required]
PATHS... paths to apply to (recursively) [required]
Options:
-y, --yes apply changes without asking (dangerous!)
-n, --no don't apply changes and don't even ask
-H, --hidden go through "hidden" (dot-prefixed) files
--binary go through the contents of binary files
-r, --recursive recurse into directories
--move / --no-move move files [default: move]
--git-stage stage changes to files tracked by Git (NOTE: only works
when run within the Git repo, otherwise undefined
behavior)
--help Show this message and exit.
Changelog
0.7.3
- Introduced
--git-stageoption to automatically add changes to files to Git's index
0.7.2
- Introduced
--no-moveoption to disable moving files
0.7.0
- Now defaults to not going through the contents of binary files.
- Introduced
--binaryoption to re-enable the old behavior of doing so. - Fixed crash on diff output for files with non-UTF-8 contents.
Metadata
Release files for full-apply 0.7.4
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 |
|---|---|---|---|---|
| full_apply-0.7.4.tar.gz | 6.2 kB | Without provenance | Details for full_apply-0.7.4.tar.gz |
Release files / full_apply-0.7.4.tar.gz
| Download URL | full_apply-0.7.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b50e98beaa6dfa2526596acf78b373d109d4c8e638005162cfda2785005bb783
|
|
BLAKE2b-256 checksum How to use checksums |
33596d16a7fcc4399b6ca4b8fd520b7691bae9f3763e5224ef8c5d113d74286b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for full-apply 0.7.4
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.