Skip to content

aliartiza75/python-list-comparison

Repository files navigation

SonarCloud CircleCI Bugs Lines of Code Maintainability Rating Reliability Rating Security Rating Vulnerabilities

pylistcompare

A module to compare two lists that complex data in it.

Installation guidelines

  • Install the module
$ pip3 install listcompare

OR

$ pip install listcompare

Usage guidelines

Import the module in your file or ipython3 shell

$ import listcompare

$ lis1 = [1, 2, 3]
$ lis2 = [2, 1, 3]

$ listcompare.compare_list(lis1, lis2)
$[output] True


$ lis1 = [1, 2, "3"]
$ lis2 = [2, 1, 3]

$ listcompare.compare_list(lis1, lis2)
$[output] False

Project dependencies installation guidelines

Run this command to install the dependencies

$ sudo pip3 install -r requirements.txt

Project distribution pusblishing guidelines

  • Update the setup.py file in the root directory.
  • To create source distribution run the command given below:
$ python3 setup.py sdist
  • I will use twine to publish my package distribution
$ pip3 install twine
$ sudo twine upload dist/* # it will ask for username and password

Sometime twine can publish the distribution because of authentication issue but mostly works on 2nd or 3rd retry.

Guidelines for cythonizing the project

$ cd listcompare
$ python setup.py build_ext --inplace 

Project distribution page of pypi

Link to the pypi module page Link to module webpage page