Category Archives: Python

Setting up McCabe Code Complexity reporting for Python in Jenkins (Hudson)

In this post I’m going to explain the steps in order to integrate pycabehtml https://bitbucket.org/jordilin/pycabehtml  into Jenkins using the Html Plugin. Add build step Execute Shell. You’ll see a text box where you will be able to write the shell script … Continue reading

Posted in Continuous Integration, Jenkins, Python | Tagged , , , , , | 3 Comments

Reporting McCabe Code Complexity for Python projects in Jenkins (aka Hudson)

Not long ago, I wrote a parser for Pymetrics to produce an html formatted document designed to be integrated in Jenkins using its Html plugin. In Jenkins CI we have Python support for unit tests, code coverage and lint reporting, … Continue reading

Posted in Continuous Integration, Open Source, programming, Python | Tagged , , , , | 2 Comments

Deploying Django applications in a scalable way

Pip or easy_install inside a virtual environment is great for development purposes when you want all your dependencies isolated from your system. It’s great to manage dependencies and reproduce the same development environment across different developers at any given time. … Continue reading

Posted in Best practices, Deployment, Django, Python, Scalability | Tagged , , | Leave a comment

Log4tailer in its version 2.9 released

Log4tailer 2.9 has been released and it provides a couple of new features that will make monitoring your application logs even better: PrintShot and Poster. PrintShot notification just takes an screenshot of your screen whenever an alertable log trace is … Continue reading

Posted in Linux, Log4tailer, programming, Python | Tagged , , , | Leave a comment

rdiff-backup, Python and Ubuntu.

I’ve been using rdiff-backup for quite a long time now for my backup purposses. rdiff-backup allows me to have my /home folder always in sync with an external usb hard drive. If for some reason I have to re-install operating … Continue reading

Posted in General Blogging, Linux, Open Source, Python, Ubuntu Linux | Tagged , , , , | Leave a comment

Asserting log traces in functional or unittests Python

Sometimes you need to assert log traces while writing tests, mostly functional tests (end to end) after you have setup several components by means of mocks. When executing nosetests it sets up automatically the logging and uses any handler you … Continue reading

Posted in Linux, programming, Python | Tagged , , , , , | Leave a comment

Log4Tailer 2.0 released with SSH tailing capabilities

Log4Tailer 2.0 http://code.google.com/p/log4tailer/ has just been released. It has been a month of some thought and testing the feasability of including tailing over SSH, and this release provides just that. It will open the door for a range of more … Continue reading

Posted in Linux, Python, Ubuntu Linux | Tagged | Leave a comment