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.
Release files for usageflow-core 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| usageflow_core-0.3.4.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usageflow_core-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.8 kB
Release files / usageflow_core-0.3.4.tar.gz
| Download URL | usageflow_core-0.3.4.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29e793a53be67024268c6db8cc790938c2751648a155b46aacc46a95b61fb339
|
|
BLAKE2b-256 checksum How to use checksums |
33e37becaf60603face4ff0f42eb92998d6fd8dcd33c13db770a2c9be0726551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / usageflow_core-0.3.4-py3-none-any.whl
| Download URL | usageflow_core-0.3.4-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
481e2f9f568c0af3f5a5cbbee84ca455bc9969837f8f98d9ab97259eac11aa3f
|
|
BLAKE2b-256 checksum How to use checksums |
9308a810216850df2a9055351ad7e229b83eef119f688fb2abe40fbc40ff9968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|