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.1.tar.gz
(3.8 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.1.tar.gz.
File metadata
- Download URL: usageflow_flask-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b4ff3cef07a3b2e639b801f86cef6935de0f9ddcb1f524434823d61effc92a9
|
|
| MD5 |
5a1d1da3d3938b104214fb88ec049205
|
|
| BLAKE2b-256 |
85e9a41c43c860434c19c4ea062bf7b022e23bb83e7db851d9b22b25739dd914
|
File details
Details for the file usageflow_flask-0.1.1-py3-none-any.whl.
File metadata
- Download URL: usageflow_flask-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 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 |
b22e81ec8e5f2e2eb5acced6a57fb8ac9f8aec05947bfe7cf2624ebaa1d61daf
|
|
| MD5 |
539627658725512be382cbdc70c9d305
|
|
| BLAKE2b-256 |
9a96ad4513f638d891a0ac926ea24c563bf1697af981a84efceb887e807eebf7
|