Lightricks/pyformance is a Python project with 14 stars. Performance metrics, based on Coda Hale's Yammer metrics
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A Python port of the core portion of a Java Metrics library by Coda Hale, with inspiration by YUNOMI - Y U NO MEASURE IT?
PyFormance is a toolset for performance measurement and statistics, with a signaling mechanism that allows to issue events in cases of unexpected behavior
Core Features
Gauge
A gauge metric is an instantaneous reading of a particular value.
Counter
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.
Meter
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 (Exponentally weighted moving average).
Histogram
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.
Timer
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.
Regex Grouping
Useful when working with APIs. A RegexRegistry allows to group API calls and measure from a single location instead of having to define different timers in different places.
>>> from pyformance.registry import RegexRegistry
>>> reg = RegexRegistry(pattern='^/api/(?P<model>)/\d+/(?P<verb>)?$')
>>> def rest_api_request(path):
... with reg.timer(path).time():
... # do stuff
>>> print reg.dump_metrics()
Reporters
Hosted Graphite Reporter
A simple call which will periodically push out your metrics to Hosted Graphite
using the HTTP Interface.
registry = MetricsRegistry()
#Push metrics contained in registry to hosted graphite every 10s for the account specified by Key
reporter = HostedGraphiteReporter(registry, 10, "XXXXXXXX-XXX-XXXXX-XXXX-XXXXXXXXXX")
# Some time later we increment metrics
histogram = registry.histogram("test.histogram")
histogram.add(0)
histogram.add(10)
histogram.add(25)
Carbon Reporter
A simple call which will periodically push out your metrics to graphite using the Carbon TCP Interface (line protocol).
registry = MetricsRegistry()
#Push metrics contained in registry to graphite every 10s
reporter = CarbonReporter(registry, reporting_interval=10, prefix="my-host", server="graphite-host", port=2003)
reporter.start()
# Some time later we increment metrics
histogram = registry.histogram("test.histogram")
histogram.add(0)
histogram.add(10)
histogram.add(25)
OpenTSDB Reporter
Declare a reporter to push your metrics to the OpenTSDB API
Does Lightricks/pyformance have a project website?
No homepage URL was recorded for Lightricks/pyformance in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does Lightricks/pyformance have any tags?
TopGit's last sync did not record any GitHub topics for Lightricks/pyformance. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on Lightricks/pyformance?
The most recent commit recorded on Lightricks/pyformance was 1 month ago, based on the GitHub push timestamp. The repository has 5 forks — one of the better signals of community interest.
How many stars does Lightricks/pyformance have?
Lightricks/pyformance has 14 GitHub stars — refresh the page for the live number, or check github.com/Lightricks/pyformance. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is Lightricks/pyformance written in?
Lightricks/pyformance is written primarily in Python. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about Lightricks/pyformance?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/Lightricks/pyformance is the definitive source.
Read full README in the tab above.
Is pyformance worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of pyformance.