hashin 0.7.0 and multiple packages

30 August 2016   0 comments   Python

My colleague Andrew Halberstadt stepped up with a great contribution on hashin (on PyPI). Now you can install multiple packages in one sweep. Like this:

$ hashin requests Django premailer mincss

And if you need to specify a different requirements file than the default (./requirements.txt) or a different algorithm than the default (sha256) you can do that like this:

$ hashin requests Django premailer mincss --algorithm=sha512 --requirements-file=dev/reqs.txt


$ hashin requests Django premailer mincss -a sha512 -r dev/reqs.txt

This is an important change if you were used to typing:

$ hashin somepackage dev/reqs.txt

...because if you continue to do that it's going to try to fetch the hash for a PyPI package supposedly called "dev/reqs.txt".

Thanks @ahal!

Note! The operation is not atomic. So if you do hashin requests somejunk it will hash in the latest requests to your requirements.txt and error on the second one.


Your email will never ever be published

Related posts

django-html-validator - now locally, fast! 12 August 2016
Django test optimization with no-op PIL engine 27 October 2016
Related by Keyword:
hashin 0.12.0 is much much faster 20 March 2018
hashin 0.5.0 bug fix 17 May 2016
Bestest and securest way to handle Python dependencies 01 February 2016
hashin - a replacement for peepin 26 January 2016
Best Atom packages of 2015 22 January 2016
Related by Text:
jQuery and Highslide JS 08 January 2008
I'm back! Peterbe.com has been renewed 05 June 2005
Anti-McCain propaganda videos 12 August 2008
I'm Prolog 01 May 2007
Ever wondered how much $87 Billion is? 04 November 2003