Skip to main content
Help us improve Python packaging – donate today!

ohconvert integrates ohcount into Jenkins.

Project Description


ohconvert integrates ohcount into Jenkins.

This script invokes ohcount, parses its output and converts it into the format understood by the SLOCCountPlugin for Jenkins. This is equivalent to calling sloccount with the options:

sloccount --duplicates --wide --details path ...


You need to have ohcount 3.0.0 or later installed and it needs to be directly executable from the path. You can check by calling ohcount --help. ohcount can be built manually or is available from some system package management tools. For example it’s available as ohcount in the latest macports.


You can call the script via:

ohconvert path ...

Output Jenkins SLOCCountPlugin compatible data collected with ohcount.


  • -h, –help show this help message and exit
  • -o, – Output filename (instead of stdout)


The source code can be found at:


1.0 - 2011-03-20

  • Fixed reStructuredText and updated code location. [hannosch]

1.0b1 - 2011-03-20

UPGRADE NOTE: ohconvert now outputs to stdout by default.

  • Refer to Jenkins instead of Hudson. [hannosch]
  • A fix for handling empty files turned into a complete refactoring. [lrowe]

1.0a1 - 2010-03-14

  • Initial functional release. [hannosch]

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (7.1 kB) Copy SHA256 hash SHA256 Source None Mar 20, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page