Skip to main content

A cli-based python tool designed to merge 2 files together interactively (using textual and 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.4.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.4-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mergepy-1.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 0df69e46951230c1048e98034cdb8ac728ceb7ddbdd338aec9a0470fc3237098
MD5 16454434176c5c22af2eef55438d4e11
BLAKE2b-256 5fa074c02d0dd9601e143077fc02548852ac1212f4056951a887cdad94abd7d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mergepy-1.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb62005c78bd02b98939ce7d191a0e07870e128e4b15852031a6c3ca084febde
MD5 e66e12061ab78fd715a369f31ce1c26f
BLAKE2b-256 632af938a7cbde68c91593747cec415ebc983420f15462871b92583602228db4

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