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

Uploaded CPython 3.14Windows x86-64

fabricatio_diff-0.2.4.dev0-cp314-cp314-manylinux_2_34_x86_64.whl (580.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.4.dev0-cp314-cp314-manylinux_2_34_aarch64.whl (516.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.4.dev0-cp314-cp314-macosx_11_0_arm64.whl (501.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fabricatio_diff-0.2.4.dev0-cp313-cp313-win_amd64.whl (424.7 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_diff-0.2.4.dev0-cp313-cp313-manylinux_2_34_x86_64.whl (579.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.4.dev0-cp313-cp313-manylinux_2_34_aarch64.whl (516.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.4.dev0-cp313-cp313-macosx_11_0_arm64.whl (501.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_diff-0.2.4.dev0-cp312-cp312-win_amd64.whl (425.5 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_diff-0.2.4.dev0-cp312-cp312-manylinux_2_34_x86_64.whl (580.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_diff-0.2.4.dev0-cp312-cp312-manylinux_2_34_aarch64.whl (515.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_diff-0.2.4.dev0-cp312-cp312-macosx_11_0_arm64.whl (500.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 425.6 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.dev0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 03c9924d88637453e33d1a38734475e67150865d839b60088ad0fdcefba02734
MD5 8fcbd15472ff021329ac9068dcc043e2
BLAKE2b-256 85124d4723cb48d26c38d6d7dcb3e966ec3bc0a2cc96fc89a2dbb020775e27e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 580.2 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.dev0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4c78a1a1b60a43586e9af86deba66e08f66fec7cbcbd844c3abf9e2798f215a8
MD5 8feb21d75f9c0f03729f23e1eab3383d
BLAKE2b-256 e051684aab759b7fc327ff54aaf16a594198b9a57496e6a660a9ec10cdc91a21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 516.1 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.dev0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 8d48d3e8a9e5d0641e7307d2ea8475ac8df25543c04cba3f333f35f6919582c9
MD5 0ce6af5f9a7f14fc235c89ea8f169875
BLAKE2b-256 9c0373c98358693c2fb4b0d07891cc8541b6d22fcf7b5c62f7acbcab0737e890

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 501.2 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.dev0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56c3ca8b69c1c791f09894f209161016f4fd591584c0ff80cc7e94fa41ce64d3
MD5 adf0ecbc23e63c80a43fee863d30e79b
BLAKE2b-256 c515d3fd66d6cd9548fe018ebba5ef403566a37ac9fba019ad28e898264e324e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 424.7 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.dev0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bf35c894bfdc56a204ffc3e41d1b29bef87053952ab388cbddfb454ab9528e1d
MD5 24c8e5cc5d6fc68436986661c9f3ef4d
BLAKE2b-256 967419384be35f9e0267ab04906a8300ce30cdb5c0c773b5cb93506f2853fd58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 579.8 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.dev0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 68e12173f19acc1bb790781e107fa559617890158397c29786ab7e64131ab9fa
MD5 5f96a8f01790d31d3fade94ee95d1e22
BLAKE2b-256 e6882bcdfb715fc44e2b7e40fde030147eb9e1cf6f01419916f8ca58ffb5ef75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 516.4 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.dev0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 da88161667e16deb0acd444583fede0a151d46cca09650678208c1d0f6a141e9
MD5 62b566457c1eb036a287a84c8d31a07b
BLAKE2b-256 291fdcb1d6fe956154c328bda438703cb6221abc1be8d1d1e7570c0cf3808432

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 501.0 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.dev0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f00598813e9222da527b42a6887ef78ce702596bf67e057270cfdea3bd12f2f0
MD5 f884dd4c48729b80f19a6eb357c01f3f
BLAKE2b-256 39d0169965c9a9fddac98ed1376d333fe0c26bff76e005ae1b1db10bf19d0971

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 425.5 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.dev0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 deaea59fd21dc3eaf3aed53d1d740bc99bf5ed2169c8ccbe7db4b95e9af40a5c
MD5 760913f43f17fa5696360755f9046ff1
BLAKE2b-256 04152d833504dd605f3993d66dc863512e5598cfbc009d5df9c051fdca64a0ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 580.0 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.dev0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3f9161c961a3f913f66fc86be182fc9afdc9ea0e1c6e4626cdb2c2e6cfe2a3f4
MD5 68d083dc86cda1bdcb9303d077e415da
BLAKE2b-256 be1826892f4b58097ea13e46022f1edd53eccb5e3a7920179c6af967b7d22c6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 515.9 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.dev0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 38ac3a745e7eeec8d368de65b8d9ebfd70817f04352d1c7f3ed1bccc1f24c835
MD5 d0cebf6280e20160370b3a5713da62bd
BLAKE2b-256 5ddbc8a4bad3b288c2367d6753973386a6d1d0794bd4faf6e841f53e4db77e44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabricatio_diff-0.2.4.dev0-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 500.6 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.dev0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a512f49501bdfe843404115814086f1dcccaf4f7525bcbc398807e60d081ef02
MD5 279b80ae1ee77be33dd13dce80430f50
BLAKE2b-256 357383981de5d4d9b513112ab445829348983f706fd1c8af673488053ff15d55

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