Skip to content

A Helper Library for the Built in Diff Library of Python3

License

Notifications You must be signed in to change notification settings

btr1975/difflibhelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Script: difflibhelper

Written By: Benjamin P. Trachtenberg

If you have any questions e-mail me

Contact Information: e_ben_75-python@yahoo.com

Docker Hub: Docker Hub

PyPi Page for difflibhelper

Requirements

  • Nothing Specific besides Python 3.3 and above

Installation

  • From source "setup.py install"
  • From pip "pip install difflibhelper"

About

This script expands on the standard difflib library

Features

  1. Function to take a pre_list, and a post_list, and diff them with real line numbers
  2. Function to add line numbers to a list
  3. Function to get only a list of changed line numbers
  4. Function to get + or - and line numbers
  5. Function to build a csv of pre and post files