Fabric Monitor
🔍 Lightweight Python Backend Service Monitoring Framework
Features • Installation • Quick Start • Documentation • Contributing
Features
- 🚀 Zero-Intrusion Integration - Integrates via middleware with minimal impact on existing code
- 📊 Real-time Monitoring - Real-time collection of request data, response times, error rates, and more
- 📝 Auto Documentation - Automatically extracts API documentation from code
- 🎨 Visual Dashboard - Modern monitoring dashboard built with Vue3
- 🔌 Extensible Architecture - Plugin-based design supporting FastAPI, Flask, and more frameworks
- 💾 Multiple Storage Backends - Supports memory, SQLite(in dev), Redis(in dev), and other storage options
Installation
# Using uv
uv pip install fabric-monitor
# Using pip
pip install fabric-monitor
# Install with FastAPI support
uv pip install "fabric-monitor[fastapi]"
# Install with Flask support
uv pip install "fabric-monitor[flask]"
# Install all optional dependencies
uv pip install "fabric-monitor[all]"
Quick Start
FastAPI
from fastapi import FastAPI
from fabric import Fabric, FabricConfig
app = FastAPI()
# Initialize Fabric
fabric = Fabric(FabricConfig(app_name="My API"))
fabric.setup(app)
@app.get("/users")
async def get_users():
return [{"id": 1, "name": "Alice"}]
# Visit http://localhost:8000/fabric to view the monitoring dashboard
Configuration Options
from fabric import FabricConfig
config = FabricConfig(
app_name="My API", # Application name
prefix="/fabric", # Dashboard route prefix
enabled=True, # Enable monitoring
storage_type="memory", # Storage type: memory | sqlite | redis
max_requests=10000, # Maximum request records
retention_hours=24, # Data retention time
sample_rate=1.0, # Sampling rate (0.0-1.0)
exclude_paths=["/health"], # Excluded paths
enable_auth=False, # Enable authentication
auth_token=None, # Authentication token
)
Documentation
For detailed documentation, see Development Documentation
Supported Frameworks
| Framework | Status |
|---|---|
| FastAPI | ✅ Supported |
| Flask | ✅ Supported |
| Django | 📋 Planned |
Supported Storage
| Storage | Status |
|---|---|
| Memory | ✅ Supported |
| SQLite | 🚧 In Development |
| Redis | 🚧 In Development |
| MySQL | 📋 Planned |
License
MIT License
Metadata
Release files for fabric-monitor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fabric_monitor-0.1.0.tar.gz | 282.9 kB | Without provenance | Details for fabric_monitor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fabric_monitor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fabric_monitor-0.1.0-py3-none-any.whl |
Total release size: 576.7 kB
Release files / fabric_monitor-0.1.0.tar.gz
| Download URL | fabric_monitor-0.1.0.tar.gz |
|---|---|
| Size | 282.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85042ad488cd42d52aada8b7f9a250265cb83e704f08d9f19bf8f2e2d781c5f4
|
|
BLAKE2b-256 checksum How to use checksums |
408a8a2e4d5bc2640e36b8ece5dbded2faf34f0593ac7368f934e852ce349490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / fabric_monitor-0.1.0-py3-none-any.whl
| Download URL | fabric_monitor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 293.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc5e19a895764f7e8cb685a19584f4a5e68c25568995571e44e820e3856f0843
|
|
BLAKE2b-256 checksum How to use checksums |
aea9765e7679550b51c6f21caf3b558820008c0fb54439775edb35c22124cef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for fabric-monitor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.