Giter Site home page Giter Site logo

compare-requirements's Introduction

Compare Requirements

Python utility to compare requirements files. Very useful for comparing your installed dependencies (pip freeze) vs dependencies in requirements.txt

cmpreqs[ <file 1>[ <file 2>]][ --pipdeptree]

Available arguments:

  • file1: First file to compare. By default requirements.txt
  • file2: Second file to compare. By default pip freeze output.
  • --pipdeptree: Use pipdeptree instead pip freeze and show only dependencies that have not been installed by other dependencies.

Output example:

Different dependencies
======================
Name                  requirements.txt  Input 2
--------------------  ----------------  -------
py3dns                None              3.1.0  
django-reversion      2.0.6             1.10.2 
python-memcached      1.50              1.58   

Equal dependencies
==================
Name                                  Version
------------------------------------  -------
django-hosts                          2.0    
mailgun2                              0.1.4  
django-q                              0.7.15 

Only available on requirements.txt
==================================
Name                              Version                                 
--------------------------------  ----------------------------------------
django-tables2                    0.15.0 
requests                          2.11.1                                  
django_easy_select2-dev           50522d1c71ff19a2124fa735b765ae88f9b859c1
pytz                              2016.6.1

Only available on Input 2
=========================
Name                         Version     
---------------------------  ------------
django-registration-redux    1.1         
ipython                      2.4.0       
Markdown                     2.5.2       
django-phonenumber-field     0.7.1 

compare-requirements's People

Contributors

nekmo avatar rhoog avatar sahithi-rp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.