Skip to main content

An extension of fabricatio, which brings up the diff edit capabilities

Project description

fabricatio-diff

MIT Python Versions PyPI Version PyPI Downloads PyPI Downloads Bindings: PyO3 Build Tool: uv + maturin

An extension of fabricatio.


📦 Installation

This package is part of the fabricatio monorepo and can be installed as an optional dependency using either pip or uv:

pip install fabricatio[diff]
# or
uv pip install fabricatio[diff]

For a full installation that includes this package and all other components of fabricatio:

pip install fabricatio[full]
# or
uv pip install fabricatio[full]

🔍 Overview

Provides intelligent diff-based editing capabilities for fabricatio workflows, enabling precise text modifications through AI-generated search and replace operations. It allows agents to perform targeted edits on source content based on natural language requirements, with configurable match precision for reliable transformations.

🧩 Key Features

  • Intelligent Diff Generation: Generate precise search and replace operations from natural language requirements
  • Precision Control: Configurable match precision for accurate text modifications
  • Template-Driven Processing: Uses configurable prompt templates for consistent diff generation
  • Validation System: Built-in validation to ensure generated diffs are syntactically correct
  • Source Content Analysis: Analyzes source text to create contextually appropriate edits
  • Rust-Accelerated Performance: High-performance diff application using Rust extensions

🔗 Dependencies

Core dependencies:

  • fabricatio-core - Core interfaces and utilities

No additional dependencies required.

📄 License

MIT – see LICENSE

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fabricatio_diff-0.2.7.dev0-cp314-cp314-win_amd64.whl (435.3 kB view details)

Uploaded CPython 3.14Windows x86-64

fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl (591.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl (525.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl (506.5 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fabricatio_diff-0.2.7.dev0-cp313-cp313-win_amd64.whl (435.6 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl (591.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl (524.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl (506.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_diff-0.2.7.dev0-cp312-cp312-win_amd64.whl (435.6 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl (591.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl (525.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl (506.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 435.3 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 55d5455117d81092b3f8de2b3328aafe590c7216939f5339adc6eb2257269cb1
MD5 dffdf89c7c7c7ba423665781998d890e
BLAKE2b-256 4476e945003a1ee0e27742eb1e6f508bc462192ebb837199efd140fa90cf55ff

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 591.3 kB
  • Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1d034e06135fe582fad7e2f5e038e92bea4a0a818196a08a16509138b33db9d9
MD5 8863bd4d63f4dcf4b02a24e1e9e2f4e0
BLAKE2b-256 381422d1fc02aef2b7b544e3b3afac166c1e92ef438daca1abfe80194ad3fe80

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 525.9 kB
  • Tags: CPython 3.14, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b6cd503a4245e1910360e36b089a41bb16f62ea93faedc059af344118975ba45
MD5 7fca0b7e581797bfd2c1ad6a9f332da3
BLAKE2b-256 8ab575aaced5c2e05522fb74b920ead52aeb678bafb7a717e22086112343b24f

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 506.5 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6d2ca055d6a9fbc935266de4899c39470fa2964c14eec70b90c5201908788a5
MD5 62249d61eb3cdb072072fa4b4f589c39
BLAKE2b-256 db34a3e111d18281fb102568e7e3f6db43fb6f7dad347eb6c287e419e6535b59

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 435.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e8cce104834ef11cf94445476dd72c3d9d7ba6718e9de0adfc8fd4cd651cffbd
MD5 4d585e0c4e20d44a168a4f55afd8207a
BLAKE2b-256 03afc03593000c79a87ffc967c654498860a5e25c6ec6ccc7f265e77948944f1

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 591.2 kB
  • Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d13c8e992ba5da3f93d72c3f0e88af02fe5eb6e210aff9f33bc24b4b718b630a
MD5 349813cf39985a4512a465402d2ffcc8
BLAKE2b-256 bef3bf3598b3d94dd76651e5f951d83e6ebb20b162c1ebc1148b50d5df21dd29

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 524.7 kB
  • Tags: CPython 3.13, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 674bb2666154c5dea4e93e5e43567709a654737cb0c4e2c595007e84c6b859b1
MD5 fface0e2bf529d5733daa6cbcd03d837
BLAKE2b-256 3b80e83fe7e76be85c74a92eda4601106aabfeabc6388452c2e4da51a7e94c00

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 506.4 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0de52c824aa26719cb3466dc9b2d567e87eff665a14e81afbc9fba67406e0a7a
MD5 e1bf1d7ac441ed514e6420766e243f7d
BLAKE2b-256 10eedfc21b9dedaace864f826dfcd6bdb8136b63d02d903b6a59cc7c15b5eee3

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 435.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 737cb1d413ff30621a4a21c588d9bdcfd082b6092391d128eef0b4bb13c090be
MD5 2703b01cbbec475211812646a4e84b16
BLAKE2b-256 fb1de4e1a244eb947e39a7dbaff2d070f1473da37c457cd1497e6b76ebf5392c

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 591.7 kB
  • Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 26d281d47747445d8cd70033c44870619bda48419abe36809dbea306e81c8fdd
MD5 8b09d76606f42b74433b5e5ec3b9d311
BLAKE2b-256 910dc514ca08e2291a5d4de86651eee6783d28870bcb207c4310b894fd730543

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 525.0 kB
  • Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 44f1a55972a720c2dc3c57208ad9e778cacf3380d23eb33729dcd662cbbb41a2
MD5 3c03e8e46490b4ec48c4f3290b77c48d
BLAKE2b-256 f6df9542a50abd97e6a246a66a8c7c8699c9a1d887382b2b0d5630152d17bd07

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 506.8 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fabricatio_diff-0.2.7.dev0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa849c9eaeeac7e859ad17e533f8d2ef9baf79c9cb2b71f4ad55579e4790313d
MD5 9f5a1dcf7999ed91662e9c3da69445e3
BLAKE2b-256 eee5afd07bdb431922e0f33d132cb86b3e6f938695761e191460d91e75ce1541

See more details on using hashes here.

Supported by

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