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.0.tar.gz
(3.7 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.0.tar.gz.
File metadata
- Download URL: usageflow_flask-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
292fe8b7ea41a29d38cbd9d61bae6d6b4412f069936f13fa8ae8189b1d18bd07
|
|
| MD5 |
54f3d158d9456f2c4b68d96f6823c579
|
|
| BLAKE2b-256 |
55af9180a5f527f9a5bee9628f603b433c0b4cd19afdb868213b91fcc07a222e
|
File details
Details for the file usageflow_flask-0.1.0-py3-none-any.whl.
File metadata
- Download URL: usageflow_flask-0.1.0-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 |
3e6838dae6e79142ce844cab83ac08d04765ac90eee0805f6bd5219c953d7732
|
|
| MD5 |
9089cf62cb1df0e7c108bb75df5b4c90
|
|
| BLAKE2b-256 |
2450cf3009af1dae4bd984870e25d9e17140e79739c6b631812a2c113183bced
|