Skip to main content

Automatically generate and apply patches to fix installed packages

Project description

patch-package

PyPI - Python Version PyPI

patch-package is a Python library to automatically create and apply patches from changes made in installed packages. It is heavily inspired by patch-package which is the equivalent for Node packages.

Features

  • Compatible with Python 2.7 and Python 3.5+
  • Automatic code change detection between installed package and package source from pip
  • Prevent patching when version or code are mismatching

Usage

Install the library from PyPI

pip install patch-package

Make a change in one of your installed package and then generate the corresponding patch

patch-package <package-name>

Then when reinstalling the package you can apply back your patches

patch-package

All patches are contained in the patches/ folder so it can be commited to git and reapply whenever you want

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

patch_package-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

patch_package-0.1.1-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file patch_package-0.1.1.tar.gz.

File metadata

  • Download URL: patch_package-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.11.1-arch1-1

File hashes

Hashes for patch_package-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ea11814837534f008eca3f40ee4f7710ee6183049843b8f37ae9edb17611194d
MD5 ada983a04b1517cde5fd794fa86b1090
BLAKE2b-256 e49fa9c4ce94fc93be8c317fb1016bcb7dfcb38e9283ecda3b6e39b46b7fcfb7

See more details on using hashes here.

File details

Details for the file patch_package-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: patch_package-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.11.1-arch1-1

File hashes

Hashes for patch_package-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b2d84d582f64297b26aa55f8510f8b49f557b8c0af8d4f58ef85f3a74c760fa
MD5 7320669dd3daa5319173abc544c13257
BLAKE2b-256 96dfcad930669651afb0220d28e6dd3ef5f17bb349303912dc253526abd8c2f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page