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

To use the callcount script you will need to define your own runnable Python script. In that script will setup your callables.

Command Line Options

tm_callcount includes a default_args that you will need to use for your Python script. You can see the options by running –help.

Creating CountCases

This example assumes you have defined a custom TimerMiddleware for your application and that you have set a stats.sample_rate config value. See:

We do our extra setup outside of our count_ methods. This ensures that any setup we do is not included in the counts.

from myapp import db from myapp.tests import TestController

from twm_callcount import (
default_args, CountRunner, CountCase, )
class CountAppURL(CountCase):
def setUp(self):
self.test = TestController() self.create_test_data()
def tearDown(self):
def create_test_data(self):
db.add_page(‘Test Wiki’, ‘content’) db.add_ticket(‘Test Ticket’, ‘content’)
def count_wiki_page(self):‘wiki’, extra_environ=self.environ)
def count_ticket_page(self):‘ticket’, extra_environ=self.environ)
def main(args):
runner = CountRunner(args) runner([CountAppURL])
if __name__ == ‘__main__’:
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tmw-callcount-0.1.3.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Feb 26, 2014

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting