Flask middleware for UsageFlow - Usage-based pricing made simple
Project description
UsageFlow Flask
Flask middleware for UsageFlow - Usage-based pricing made simple.
Installation
pip install usageflow-flask
Usage
from flask import Flask
from usageflow.flask import UsageFlowMiddleware
app = Flask(__name__)
# Initialize UsageFlow middleware
UsageFlowMiddleware(app, api_key="your-api-key")
@app.route("/")
def home():
return {"message": "Hello World!"}
if __name__ == "__main__":
app.run()
Features
- Automatic usage tracking
- Request/response logging
- Rate limiting
- User identification
- Custom metadata support
Documentation
For full documentation, visit https://docs.usageflow.io
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
usageflow_flask-0.1.2.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file usageflow_flask-0.1.2.tar.gz.
File metadata
- Download URL: usageflow_flask-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3eff45e2918642bd509ad01f96921e64031993a50d7da5dc3db2a82100c3d1a
|
|
| MD5 |
0b9afa38d20f1c0500be312baa2f54c7
|
|
| BLAKE2b-256 |
1e5318e0ac8a420387acd6ef595e82343b3fd97366332a7fcefbc7a56bc6957e
|
File details
Details for the file usageflow_flask-0.1.2-py3-none-any.whl.
File metadata
- Download URL: usageflow_flask-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89cea69ec04e8e3c394456d0a355181de7857bf64ca220c9798e1bd4f75dcba6
|
|
| MD5 |
02a1831d528086b3ea1c8d719593f871
|
|
| BLAKE2b-256 |
d0fcbad94b5063d8c5e362bfc74744de6c7c301565a101f2018c9237f5de8e8b
|