A simple multithreaded async API wrapper for StatHat.com
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
requirements.txt
setup.py
stathatasync.py

README.md

stathat-async

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

Usage

>>> from stathatasync import StatHat
>>> stats = StatHat('email@example.com')
>>> 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