Modern Patch in Python
Project description
Patche
Modern patch, written in Python.
Usage
The following commands are supported:
apply
Apply a patch to target files.
patche apply <patch-file>
Options:
-R, --reverse: Assume patches were created with old and new files swapped-F, --fuzz LINES: Set the fuzz factor to LINES for inexact matching
show
Show details of a patch file.
patche show <patch-file>
settings
Display current configuration.
patche settings
Config
patche loads the configuration from a file named .patche.env in $HOME.
max_diff_lines = 3
Development
patche uses pdm as package manager. To install the dependencies in your workspace, run:
pdm install --prod
# If you want to trace patche execution
pdm install
ref: PDM Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patche-0.0.2b1.tar.gz.
File metadata
- Download URL: patche-0.0.2b1.tar.gz
- Upload date:
- Size: 167.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.0 CPython/3.10.12 Linux/6.4.0-060400rc1-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96f7e3674ab5035f45eef77660ac297c4934ceeb7e8e1ac0d175651b1e08c4e5
|
|
| MD5 |
654efc832b00565db2baedc85aa8527a
|
|
| BLAKE2b-256 |
b4860e9225a1e508b1dc90ad3af133451ceb9815cedce4a6f5f4cb9f2a31b0c9
|
File details
Details for the file patche-0.0.2b1-py3-none-any.whl.
File metadata
- Download URL: patche-0.0.2b1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.0 CPython/3.10.12 Linux/6.4.0-060400rc1-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8ec6cd9cf4d9e7cb7da1e3c9b9dab9d4a0f1294f878bb41bb5a790a8e8d8d95
|
|
| MD5 |
5981c80478dc83b3063b89023a05aee8
|
|
| BLAKE2b-256 |
5b7c5201b62b6e5d9410ce122408cfc5d9749ae2262e92e2d75301ff3882b224
|