A module to compare two lists that complex data in it.
- Install the module
$ pip3 install listcompare
OR
$ pip install listcompare
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
Run this command to install the dependencies
$ sudo pip3 install -r requirements.txt
- 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.
$ cd listcompare
$ python setup.py build_ext --inplace