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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mergepy-1.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9e8c8a16acd851c8e971eb16de983e0af9e336d0696c27470f5589489acded1c
MD5 08c8b7634bbc0e4c56738d5e93689860
BLAKE2b-256 d1ee040c403194cc108a7ccac593ba50681cede120dfdb56bb804e0e8536ea9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mergepy-1.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b59952a7678057065a7f2f38502c5e622612d7f6bb83492f4277674535f663
MD5 ec35a56bd7fc86b8d7d073f4f2fba82e
BLAKE2b-256 ef60e797a2911878b534206db1ddab347c9e4cc63a8e6f89bcbe99a53fa95f08

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