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.4.dev1-cp314-cp314-win_amd64.whl (427.8 kB view details)

Uploaded CPython 3.14Windows x86-64

fabricatio_diff-0.2.4.dev1-cp314-cp314-manylinux_2_34_x86_64.whl (579.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.4.dev1-cp314-cp314-manylinux_2_34_aarch64.whl (515.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.4.dev1-cp314-cp314-macosx_11_0_arm64.whl (502.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fabricatio_diff-0.2.4.dev1-cp313-cp313-win_amd64.whl (428.1 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_diff-0.2.4.dev1-cp313-cp313-manylinux_2_34_x86_64.whl (579.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.4.dev1-cp313-cp313-manylinux_2_34_aarch64.whl (515.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.4.dev1-cp313-cp313-macosx_11_0_arm64.whl (502.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_diff-0.2.4.dev1-cp312-cp312-win_amd64.whl (428.0 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_diff-0.2.4.dev1-cp312-cp312-manylinux_2_34_x86_64.whl (579.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.4.dev1-cp312-cp312-manylinux_2_34_aarch64.whl (515.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.4.dev1-cp312-cp312-macosx_11_0_arm64.whl (502.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 427.8 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7447e0d72af7337e37daef3a02e64bff5375e41066df8019970467b593c7c89c
MD5 d97cca160cdacc05321c6a4a9985aea3
BLAKE2b-256 7e0ebe150eb399e9ba23679b679981c66284ec116f4c3992335949db44487854

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp314-cp314-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 579.3 kB
  • Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 36a85be8097afe2de60bfc7fd1101f6662a9887a9fe5e313b4b722ce389e56a1
MD5 02912496cd3e49d11ff0be9378e824dc
BLAKE2b-256 2c1330d8f33c0c8f1f92997076264827f6281910dfeadb20e7c0a802396487d7

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp314-cp314-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 515.5 kB
  • Tags: CPython 3.14, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 7e82b4705fc5587f42d5650438db3f65e8cf2025a8c0fc0dfd4caaf13267bb3f
MD5 01fa8ec66bee20361b29a09adabb2aa3
BLAKE2b-256 606a3d79c712abc763738ef61b6d8b6b167745f2a296e78e2a33509c4dd7b92b

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 502.7 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76cca0b69a177d834315689d50876dec43d2f2293bb2909e1a17eaf75329a9c9
MD5 db4dc01c61d8778e2cf9f747c3eaf3b4
BLAKE2b-256 a49ef7839437667185fece38b2e3e9744697ef25e130c965f7f40ecadf53bc77

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 428.1 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 af86fc5eda40e9e7d4d93baf7078415d77ae781bfa058b58b3802e46d04921d1
MD5 19929173d8590e6dfc64917849e37ab3
BLAKE2b-256 a49b67c0c639adc3c8e042cbca8ae53e9eba53b156fa275b73e352c9419a026b

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp313-cp313-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 579.0 kB
  • Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 33e245fee1c3ca533fc0002ec58fc90dac73fd82611ed6972f9f4392c800bb75
MD5 461431dc1eba3ed5285f43f99401509c
BLAKE2b-256 f2f8b6287ea9b26174ccf5ba5ebbe534873d69385d6f29e641f0e531d60b2c31

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp313-cp313-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 515.8 kB
  • Tags: CPython 3.13, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 7f3d025389d34ae36ca3c6356f2bd5ac7d977a045e2e913f52c76cfa3b13da53
MD5 37bae44808d66817fa07676597642485
BLAKE2b-256 81e21a8a8dd253a3f1c762def3ecb685f8c621513d3fa3223a0f4eb35ebd137d

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 502.4 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cae4b177fe2644d8657472c80c5d24983d7b2decd521f8a8d1e7b303be9b92ba
MD5 1f8a29eca2d905cb75f377296932585f
BLAKE2b-256 f2e4ce617c2f9c2a0631c55e6e6692acf01be8c585c7391e511eac7b557b3949

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 428.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35b8b00c292e862d772b69be7d4a3e1ca388e6376d07db86e73378a8715a7f5e
MD5 00740534c467034fcfee977d00d5f233
BLAKE2b-256 5e53c37534dbbd48ccf20df371ddfdb8de4cfaae9cb95a963eb3677f761afcaf

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp312-cp312-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 579.4 kB
  • Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a2cfc6f9f61ac5f795bedf63ed1a7e30a6909c251b8b126cc4d5f5aae8680b43
MD5 5544c50d418e600bbfe952397bcb0ce3
BLAKE2b-256 21c33b6ac089b1ebb0d326db1cd25df49e9a71c0aa4138dfc6b108944bc368e5

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp312-cp312-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 515.5 kB
  • Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 faa96d248019f9d3fc674721b5546bf80811cccd2db8eb17d938bee671ad8fb4
MD5 42084ba3e169c3a25bb2248df02080cb
BLAKE2b-256 7bd9f5bcdb359d9ff93cc920c796a5947139e9e5e462e225258c0cb1caeda25c

See more details on using hashes here.

File details

Details for the file fabricatio_diff-0.2.4.dev1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev1-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 502.1 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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.4.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 397b8f4def1d8279e1c03c69da34708e36e38ce44a787a0bfc7f458f0110d513
MD5 cfd1e26a02d82bf7bb72ed1809926b8f
BLAKE2b-256 67d90edccc4387ad515995a7dc267b418407360f7d2532dc690d73b466499911

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