Skip to content

GeVhoo/python-project-lvl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Difference calculator

Maintainability Test Coverage Build Status

Hello World!

This is my second project that i do in Hexlet course. In this project I made a utility to find differences in two configuration files.

This utility works with JSON and YAML files and can provide output in three ways: string (look like JSON), plain and JSON. Default output in 'string' format. Command for example:

gendiff before.json after.json

To select the output format, you must specify the key. For example:

gendiff -f plain before.json after.json

or

gendiff -f json before.json after.json

Hope you enjoy it!

Direct install:

pip install -i https://test.pypi.org/simple/ gevhoo-diff-calc --extra-index-url https://pypi.org/simple/

asciicast

Comparing two flat JSON files

gendiff before.json after.json

asciicast

Comparing two flat YAML files

gendiff before.yml after.yml

asciicast

Comparing two files with nested structures

gendiff before_complex.json after_complex.json

asciicast

Comparison output of two files in plain format

gendiff -f plain before_complex.json after_complex.json

asciicast

Comparison output of two files in JSON format

gendiff -f json before_complex.json after_complex.json

asciicast

Links

This project was built using these tools:

Tool Description
poetry "Python dependency management and packaging made easy"
Flake8 "Linter"
CodeClimate "Verifying code quality in automatic mode"
Travis-ci "Continuous Integration"
pytest "For test coverage"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published