Buildtime Trend Python library
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
buildtimetrend Revert "convert to static method" May 18, 2016
provisioning install g++ when provisioning Mar 5, 2016
.coveragerc ignore test files Oct 28, 2014
.gitignore ignore virtualenv folders Jan 17, 2016
.landscape.yaml update landscape settings Dec 16, 2015
COPYING softlink COPYING to LICENSE [skip ci] Dec 14, 2014
LICENSE change license to GNU Affero General Public License v3 or later (AGPL… Nov 27, 2014 add 'days since last fail' badge Mar 8, 2016
Vagrantfile base vagrant virtual box on Trusty Feb 29, 2016
config_sample.yml add repo specific setting for data_detail in the config file, issue #124 Jan 22, 2016
pylint.rc add rules for pylint Mar 11, 2014
requirements.txt set requirement for configobj, issue #139 May 17, 2016
requirements_test.txt funcsig 1.* breaks build May 18, 2016
setup.cfg use to run nosetests with parameters Nov 26, 2015
shippable.yml remove timestamp generation Jul 23, 2014

Buildtime Trend Python library

Visualise what's trending in your build process

Buildtime Trend Python library Buildtime Trend Python library (dev) PyPI Latest Version PyPI Downloads PyPI Supported Python versions Can I Use Python 3?

Build Status Coverage Status Code Health Scrutinizer Code Quality Codacy Badge Quantified Code Issues

Buildtime trend Total builds Percentage passed build jobs Days since last failed build job

Stack Share status


Visualise trends of build processes on Continuous Integration platforms by gathering and analysing build and timing data:

  • Capture timing data from each stage in a build process
  • Store, analyse and create trends of the build process data
    • keen mode : send timing data to and use the API for analysis and visualisation
    • native mode : store data in xml format and use matplotlib to generate a chart (limited)
  • Available charts and metrics :
    • number of builds, successful and failed
    • average build duration
    • duration of individual build stages
    • builds per branch
    • build duration per time of day/day of week


The Buildtime Trend Python client and Buildtime Trend as a Service depend on this library. It is recommended to use this library with either of them, have a look at their documentation on how to use them.

How to get it?

If you want to use this library directly, there are several ways of getting it.

Buildtimetrend library is registered in PyPI, to install, use :

pip install buildtimetrend

The latest version is available for download as zip and tarball on GitHub. Unzip and copy to the desired directory.

If you prefer to use git, several options are available :

  • development version : git clone
  • latest release : git clone --branch release
  • a specific release : git clone --branch v0.3


  • python : Python 2.7
  • keen : client for storing build time data as events in
  • python-dateutil : for formatting datetime objects
  • lxml : python wrapper for libxml2 and libxslt
  • pyyaml : for parsing the config file in yaml format
  • native mode :
    • matplotlib (v1.2.0 or higher) : for drawing the native trend graph, can be omitted when only using to generate charts. Stackplot requires version v1.2.0

Dependency installation

  • using the setup script

python install

  • if you want to use native mode to store data or generate charts :

python install -e .[native]

  • install each dependency individually :
pip install keen
pip install python-dateutil
pip install pyyaml
pip install lxml
pip install 'matplotlib>=1.2.0'

Store build time data in xml (native mode)

See wiki for data schema of the xml file.

Store build time data in

See wiki for data schema of data sent to

Bugs and feature requests

Please report bugs and add feature requests in the Github issue tracker.


If you want to contribute to make Buildtime Trend even better, check out the contribution page. We are looking for testers, developers, designers, ... and what more. Contact us if you want to help out.


You can support the project by making a donation. The donations will help pay for the hosting and support further development.


For an overview of who contributed to create Buildtime trend, see Credits.


Website :

Mailinglist : Buildtime Trend Community

Follow us on Twitter, Github and OpenHub.


Copyright (C) 2014-2016 Dieter Adriaenssens

This software was originally released under GNU General Public License version 3 or any later version, all commits contributed from 27th of November 2014 on, are contributed as GNU Affero General Public License. Hence the project is considered to be GNU Affero General Public License from 27th of November 2014 on.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see