StatHat extension for Flask
Project description
Flask-StatHat
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-StatHat-0.1.0.tar.gz
(2.1 kB
view details)
File details
Details for the file Flask-StatHat-0.1.0.tar.gz
.
File metadata
- Download URL: Flask-StatHat-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585e15ed433c016859578b9e21d0bd9f7c4c912b92f04e5771a100568859fabb |
|
MD5 | 2a2c83bb3974a9fc4f9db919fd056139 |
|
BLAKE2b-256 | a9434eb3200d8f7f97ad0bee6ad0b106181a63e123d231fe0acc4dcf99a8d4fe |