Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

StatHat extension for Flask

Project description


StatHat extension for Flask


pip install Flask-StatHat


from flask_stathat import StatHat
stathat = StatHat()
stathat.init_app(app)  # or stathat = StatHat(app)


def index():
    stathat.count('some_stat', 1)
    stathat.value('some_value', 9001)
    # The stathat requests won't be sent until the flask request
    # has been processed and no exceptions were raised




Flask-StatHat will use grequests if it’s installed

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-StatHat-0.1.2.tar.gz (2.2 kB) Copy SHA256 hash SHA256 Source None Jul 31, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page