Skip to content

Abra19/gendiff-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests, Developer tests, Linter status, Maintainability, Test Coverage:

Actions Status Python CI Maintainability Test Coverage

Descriptions

This project implements a function gendiff that compare two configuration files and show a difference.

To compare files, you need to pass to the function gendff two args: ../path/to/file1, ../path/to/file2.

The path to the file can be either relative: ../somefile or absolute /somedir/somefile.

The function can be used as a library or as a console utility

Requirements

  1. Python >=3.11
  2. pip >= 19
  3. poetry >= 1.2.0

To get started

  1. Clone git repo: git clone git@github.com:Abra19/gendiff-python.git
  2. Go to directory gendiff-python: cd gendiff-python
  3. Configuring poetry to create a virtual environment: poetry config virtualenvs.in-project true
  4. Create virual environment and Install dependencies make install
  5. Build package make build
  6. Publish package: make publish
  7. Installing the package in the user's environment: make package-install
  8. If you receive a tracking warning at step 7: WARNING: The script gendiff is installed in 'path/to/your/executable' which is not on PATH. Add this directory to PATH: export PATH=$PATH:'path/to/your/executable'

To Run

Stylish formatter(default) for plain trees:

asciicast

Stylish formatter(default) for nested trees:

asciicast

Plain formatter for nested trees:

asciicast

Json formatter for nested trees:

asciicast

About

This project implements a function gendiff that compare two configuration files and show a difference.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published