Skip to main content
http://i.imgur.com/YuqGF.png

Flask-StatHat

http://img.shields.io/pypi/v/Flask-StatHat.png

StatHat extension for Flask

Install

python
pip install Flask-StatHat

Setup

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

Usage

@app.route('/')
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
    ...

Configuration

app.config.update(STATHAT_EZ_KEY='STAHAT_EZ_KEY')

Async

Flask-StatHat will use grequests if it’s installed

License

http://marksteve.mit-license.org

Metadata

Release files for Flask-StatHat 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-StatHat 0.1.2
File Size Uploaded
Flask-StatHat-0.1.2.tar.gz 2.2 kB Details

Release files / Flask-StatHat-0.1.2.tar.gz

Download URL Flask-StatHat-0.1.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1d143f52816676c46edb98d8976d83e5e4e39c068a9c190222ab41bfe8a0603b
BLAKE2b-256 checksum
How to use checksums
35c969bc1ebbe3fc86eab842a50f2d121b40143bae795c96a41f0777715d77c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page