Skip to main content

A cli-based python tool designed to merge 2 files together interactively (using python's difflib)

Project description

mergepy

[!important] TODO: Implement compatibility with git so it can be used as a mergetool

ℹ️ About

Mergepy is a cli-based python tool designed to merge 2 files together interactively by segmenting the 2 files into parts that are different and common. You easily select, then choose to keep or replace the conflicts by jumping between 2 panes and pressing enter (which will always replace a different part of the file and keep a common part) which will insert the selected text into a third pane which can be also used to edit the result. Mergepy uses python's standard 'difflib' to segment the files and uses textual, uses a rich renderable to highlight the syntax for the 2 file panes and uses treesitter to highlight the syntax in the editor pane.

Project details


Download files

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

Source Distribution

mergepy-1.2.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

mergepy-1.2.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file mergepy-1.2.1.tar.gz.

File metadata

  • Download URL: mergepy-1.2.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for mergepy-1.2.1.tar.gz
Algorithm Hash digest
SHA256 1f19e0c76f28179c1eb635159e74366862e58aa505420810161967b50b0be4f7
MD5 cec81a6f65f1bff3b7690cb916806fcf
BLAKE2b-256 f929168a6cbb040f582b9042688063441183a03ce5b9a291bc2455b71fdd68b4

See more details on using hashes here.

File details

Details for the file mergepy-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: mergepy-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for mergepy-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16026f707ee72f9d623cfdca5525dda2f2e72d62a948c8fecbbcdd0f64ad9507
MD5 3735a0bd37e225f5bef797b48e7edfce
BLAKE2b-256 9196554e6a807243971d30cf1e43b87cddc5039f597b12c6290cd53e449debf4

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