General
API
Language libraries
External Services
Other
Track Stats with Python
1. Download stathat.py and put it in your import path.
2. Put it in your code:
#!/usr/bin/env python from stathat import StatHat
3. Make calls to StatHat. You do not need to create the stats first
using the web interface.
stathat = StatHat() if sender.gender == 'f' and recipient.gender == 'm': stathat.ez_post_count('YOUR_EZKEY', 'messages sent - female to male', 1)
4. Go to the stats page to see your stats!
There are some alternative libraries for python. Check out stathat.py by Kenneth Reitz and stathat-async by j4mie.