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.2.tar.gz (25.8 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.2-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mergepy-1.2.2.tar.gz
  • Upload date:
  • Size: 25.8 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.2.tar.gz
Algorithm Hash digest
SHA256 b61df4d68cb0105f858196417a78be3d329501c599aea70a2a0b7922de755603
MD5 5fcd7999c2e7510ada84689d02182abe
BLAKE2b-256 37601011ac41e291f71ab2946b7b9b43620f344e286a184a5cb10361dded83cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mergepy-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 25.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06ace227fe8d913288f4b3e150b382ff391a0423eb820d75a9718770586056a3
MD5 b490620526265e845b6b343f97a7bee2
BLAKE2b-256 192bc34a4fde063e096c767c338cf8468bfd90874098fa0888bb23038c31e191

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