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.3.dev0-cp314-cp314-win_amd64.whl (391.6 kB view details)

Uploaded CPython 3.14Windows x86-64

fabricatio_diff-0.2.3.dev0-cp314-cp314-manylinux_2_34_x86_64.whl (519.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.3.dev0-cp314-cp314-manylinux_2_34_aarch64.whl (482.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.3.dev0-cp314-cp314-macosx_11_0_arm64.whl (465.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fabricatio_diff-0.2.3.dev0-cp313-cp313-win_amd64.whl (391.6 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_diff-0.2.3.dev0-cp313-cp313-manylinux_2_34_x86_64.whl (519.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.3.dev0-cp313-cp313-manylinux_2_34_aarch64.whl (482.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.3.dev0-cp313-cp313-macosx_11_0_arm64.whl (465.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_diff-0.2.3.dev0-cp312-cp312-win_amd64.whl (391.6 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_diff-0.2.3.dev0-cp312-cp312-manylinux_2_34_x86_64.whl (519.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.3.dev0-cp312-cp312-manylinux_2_34_aarch64.whl (482.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.3.dev0-cp312-cp312-macosx_11_0_arm64.whl (466.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 391.6 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 870ec230c4272c62b66410ea7540c95fac4686bb7f45546609859d9e17e8aec2
MD5 ddccbbbbd6c8e657de942f26770b43b5
BLAKE2b-256 5b068550cd3b9afab68b5c00a384677546ec9f214766b2a088b57b4d9fcac96e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 519.7 kB
  • Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6bd65489bafcf52d588904069a486185791f549ee5fd4a0470cc19ae5f6e412d
MD5 c9354d76848b97355d4f3d8e798dcd6b
BLAKE2b-256 3a24bf02724b40edd7eb1bc6b911ebd41858b30f2e75146590048d3ac6cca9d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 482.4 kB
  • Tags: CPython 3.14, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 54f7daf39385f6ea4f2ea9ab4227c2307406f43dfc1eaed3271cce6086ac93e6
MD5 04bb294a69782a4ddba6714268d595eb
BLAKE2b-256 365e221f0c452c8871b8cfebb9c8d1b7ebc8e934ba24a04d21a07d17e536c8c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 465.3 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc2af46f3635ceefd3ce326129c5ad45f7528cdb02ad9ed519390b1fbb468b5a
MD5 d1aa7e365f3aa1b99be433a062f8ec8e
BLAKE2b-256 9dfcf758cb3d584e37e745eba8531fa22eb82545e17ab8931b0ffb032b4cf5af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 391.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8a119b0df5e8f888459fd4d9e68f5a274d5f487fecdfd9bac3e4ddd9aaf247bf
MD5 fb49e32464d857ba3266bd45eb4a90a9
BLAKE2b-256 ed9bbfd5219e46ad1240987c1deb427c494139416cd8298cc85a4f3ed47e5027

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 519.6 kB
  • Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0fa6b414fca4ca0be42479430035f53b84e8c21dfeb4a0aa35ed20e308799103
MD5 58643788b0051c9993e9646c2b905fab
BLAKE2b-256 0ad9598fe228dae4aa2455d0ced819771edeb750bd8b347d5b8501226eccb963

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 482.8 kB
  • Tags: CPython 3.13, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 2718f61e22ff47e680305fcfcf2244aca7196e52a2a90424c90d1e70a2980599
MD5 284dc395ca6572a3009bdfc22dff7b87
BLAKE2b-256 ac8e83816b7513c92c9ba0c8ba14313385163cb33cd9c086df5a8a989858b733

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 465.9 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e74881e347198329a1a476dff980fe376ef5b1398ca8070973865b3f48b79d32
MD5 fb9988107c4b8ee417896c03e27913b2
BLAKE2b-256 4933d9c5726d0829d96773315a097d8f67dc3ee46c64a10e842b655a41570b3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 391.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 030b8e2a30acf0c2ad39459dfedd2e234b6603c80cb1f707a2c7c43cbd921a88
MD5 280e4b2e5a9481fb6790ecd03ae64f4a
BLAKE2b-256 4daa180549cb15454ab332e173f9a84edc70affe87d8cad72ca73a076d5423f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 519.8 kB
  • Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9af27ac5390a5c9a7d2cdf9744ef8d307314ee62664e6566a4fa83d270ab60cf
MD5 ec1eba2c3473113fb9eb384a96bad050
BLAKE2b-256 e0e1eec9b33f36a0c4eb070e05e7ab732e510b4c8a2adc37feda14994d557f0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 482.2 kB
  • Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 cd41a3992f4efc9c122e10f867f9b607cc2c06397c5c4efa370bbcbb161527c4
MD5 e571504637f51da42e2bec31cfc43522
BLAKE2b-256 7fae918f7860faa31b8e8f2867d4895331a6b066ae908c9222f14c9739dc4f5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.3.dev0-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 466.0 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.3.dev0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d47b2111318ed4c475185a6c7985b6889e23dc92fe3fdf9d88aa516e655e32c0
MD5 12b81992ec2c59336cd698520a2a2467
BLAKE2b-256 facdcb4598d14538eb624b65a5c83d8563892f25a0e8ebd80c52f034e7fa8151

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