Added
- Python Bindings: Introduced official Python bindings via PyO3. The
mpatchpackage is now available on PyPI!- Exposes a rich, object-oriented, and fully typed API (with
.pyistubs) for tool builders and AI agent frameworks. - Provides high-level convenience functions (
patch_content,apply_directory) and granular control over patches and hunks. - Includes pre-compiled wheels for Linux, macOS, and Windows, with support for Python 3.8+ and Python 3.13 free-threaded builds.
- Implements Pythonic paradigms like slicing, unary inversion (
~patch), and native exceptions (ParseError,PathTraversalError).
- Exposes a rich, object-oriented, and fully typed API (with