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.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-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mergepy-1.2.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.tar.gz
Algorithm Hash digest
SHA256 9a1ab6d52522687b23a030d5714c89c4e60c3c4d729a8fe41296fca42c488fd2
MD5 b85f9ad2995aaec52e1e2fc9f5c09dc0
BLAKE2b-256 f2032a6978d6ab92c18d72e66b4a471548b07881dfbd3570436a733d3cb1c2ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mergepy-1.2-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-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc5816667278d56805d462222278419aa7c633759976eba2a02fb526ca1f5cb
MD5 1bbc98df5d102b513d357f421a14eece
BLAKE2b-256 80ae4f76ed531d3408fe27d85f63b798bb091ca3fccc87a76d8b7db81ee8aae2

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