j4mie/stathat-async

A simple multithreaded async API wrapper for StatHat.com

★ 14Forks 6PythonGitHub ↗Compare

README

stathat-async

A simple multithreaded async wrapper around Kenneth Reitz's stathat.py

Usage

>>> from stathatasync import StatHat
>>> stats = StatHat('[email protected]')
>>> stats.count('wtfs/minute', 10)
>>> stats.value('connections.active', 85092)

The calls to count and value won't block your program while the HTTP request to the StatHat API is made. Instead, the requests will be made in a separate thread.

Enjoy!

Installation

Installation is simple::

$ pip install stathat-async

Contributors

j4mie

Issues