mirror of
https://github.com/kennethreitz-archive/stathat.py.git
synced 2026-06-16 21:30:59 +00:00
23 lines
375 B
ReStructuredText
23 lines
375 B
ReStructuredText
stathat.py
|
|
==========
|
|
|
|
A minimalistic API wrapper for StatHat.com, powered by Requests.
|
|
|
|
Usage::
|
|
|
|
>>> from stathat import StatHat
|
|
>>> stats = StatHat('me@kennethreitz.com')
|
|
>>> stats.count('wtfs/minute', 10)
|
|
True
|
|
>>> stats.count('connections.active', 85092)
|
|
True
|
|
|
|
Enjoy.
|
|
|
|
|
|
Installation
|
|
------------
|
|
|
|
Installation is simple::
|
|
|
|
$ pip install stathat |