Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Send runtime measurements of your code to InfluxDB

Project Description

Timekeeper is a library for instrumentation of live Python code by sending measurements to InfluxDB.

Requires Python 2.7 or 3.2+, and InfluxDB 0.9.0+.


You can use a context manager or decorate a function to record the wall clock time of how long it took that function or block of code to complete:

from timekeeper import TimeKeeper

tk = TimeKeeper(
prefix="", # if you prefer Graphite style over tags
tags={"host": ""},

@tk.decorate("some_slow_function", tags={"foo": "bar"})
def slowpoke():

def slowpoke2():
with tk.context("some_other_slow_function", tags={"foo": "baz"}):


pip install timekeeper


![PyPI downloads](   ![PyPI version](   ![Python 2.7](   ![Python 3.2+](   ![License](

Release History

This version
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
(3.0 kB) Copy SHA256 Hash SHA256
Wheel 2.7 May 31, 2015
(2.9 kB) Copy SHA256 Hash SHA256
Source None May 31, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers