Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install yunomi

How to install yunomi

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install yunomi
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.3.0Never BuiltWhy not?
0.2.1 Available View build log
0.1.1 Available View build log
Linux (64-bit)
0.3.0 Available View build log
0.2.1 Available View build log
0.1.1 Available View build log
0.3.0 Available View build log
Lastest release
version 0.3.0 on Sep 20th, 2013
https://badge.fury.io/py/yunomi.png https://secure.travis-ci.org/dreid/yunomi.png?branch=master

As in:

It has performance implications, Y U NO MEASURE IT!?

Yunomi provides insights to the internal behavior of an application, providing useful statistics and metrics on selected portions of your code. It’s a Python port of the core portion of a Java Metrics library by Coda Hale.

Stop guessing, start measuring:

System Message: ERROR/3 (<string>, line 19)

Unknown directive type "code-block".

.. code-block:: bash

   $ pip install yunomi

Core Features


Simple interface to increment and decrement a value. For example, this can be used to measure the total number of jobs sent to the queue, as well as the pending (not yet complete) number of jobs in the queue. Simply increment the counter when an operation starts and decrement it when it completes.


Measures the rate of events over time. Useful to track how often a certain portion of your application gets requests so you can set resources accordingly. Tracks the mean rate (the overall rate since the meter was reset) and the rate statistically significant regarding only events that have happened in the last 1, 5, and 15 minutes (Exponentially weighted moving average).


Measures the statistical distribution of values in a data stream. Keeps track of minimum, maximum, mean, standard deviation, etc. It also measures median, 75th, 90th, 95th, 98th, 99th, and 99.9th percentiles. An example use case would be for looking at the number of daily logins for 99 percent of your days, ignoring outliers.


A useful combination of the Meter and the Histogram letting you measure the rate that a portion of code is called and a distribution of the duration of an operation. You can see, for example, how often your code hits the database and how long those operations tend to take.



The simplest and easiest way to use the yunomi library.


You can use the count_calls decorator to count the number of times a function is called.

System Message: ERROR/3 (<string>, line 68)

Unknown directive type "code-block".

.. code-block:: pycon

    >>> from yunomi import counter, count_calls
    >>> @count_calls
    ... def test():
    ...     pass
    >>> for i in xrange(10):
    ...     test()
    >>> print counter("test_calls").get_count()


You can use the time_calls decorator to time the execution of a function and get distributtion data from it.

System Message: ERROR/3 (<string>, line 86)

Unknown directive type "code-block".

.. code-block:: pycon

    >>> import time
    >>> from yunomi import timer, time_calls
    >>> @time_calls
    ... def test():
    ...     time.sleep(0.1)
    >>> for i in xrange(10):
    ...     test()
    >>> print timer("test_calls").get_mean()


Yunomi has no external dependencies and runs on PyPy and Python 2.6, 2.7, and 3.3.


0.3.0 (2013-07-27)
  • Python 3.3 is now supported additionally to 2.6 and 2.7.
  • Decorators don’t eat return values anymore.
  • Meters can be reset now.

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.