Core functionality for UsageFlow - Usage-based pricing made simple
Project description
UsageFlow Core
⚠️ Beta Notice: This package is currently in beta. While we strive to maintain stability, there may be breaking changes as we continue to improve the API.
The core package of UsageFlow provides the fundamental functionality for API usage tracking and management. It contains the base client implementation and shared utilities used by framework-specific packages.
Installation
pip install usageflow-core
Features
- Base client implementation
Usage
While you typically won't use this package directly (instead using framework-specific packages like usageflow-flask or usageflow-fastapi), here's how you can use the core client:
from usageflow.core import UsageFlowClient
client = UsageFlowClient(api_key="your_api_key_here")
# Track a request
client.track_request(
method="GET",
path="/api/v1/users",
identity="user123",
metadata={"user_agent": "Mozilla/5.0"}
)
Development
To contribute to the project:
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]"
- Run tests:
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
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_core-0.3.4.tar.gz.
File metadata
- Download URL: usageflow_core-0.3.4.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29e793a53be67024268c6db8cc790938c2751648a155b46aacc46a95b61fb339
|
|
| MD5 |
367a739c517d9bd6c16dc9f70a7fec2b
|
|
| BLAKE2b-256 |
33e37becaf60603face4ff0f42eb92998d6fd8dcd33c13db770a2c9be0726551
|
File details
Details for the file usageflow_core-0.3.4-py3-none-any.whl.
File metadata
- Download URL: usageflow_core-0.3.4-py3-none-any.whl
- Upload date:
- Size: 10.4 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 |
481e2f9f568c0af3f5a5cbbee84ca455bc9969837f8f98d9ab97259eac11aa3f
|
|
| MD5 |
18f07efa166d76788c85fd9a3dba2766
|
|
| BLAKE2b-256 |
9308a810216850df2a9055351ad7e229b83eef119f688fb2abe40fbc40ff9968
|