AI-powered log monitoring SDK for Python applications
Project description
LogSentinel Python SDK
LogSentinel is a lightweight SDK for monitoring and analyzing logs in Python applications. It automatically captures request and response data, builds detailed metadata, and sends them to the LogSentinel AI platform for analysis.
Installation
pip install logsentinel
Setup
- Go to the LogSentinel Dashboard and create an API key.
- Add it to your environment variables:
export LOGSENTINEL_API_KEY="your_api_key_here"
Example (FastAPI)
from fastapi import FastAPI
from logosentinel import LogSentinelASGIMiddleware
app = FastAPI()
app.add_middleware(LogSentinelASGIMiddleware)
@app.post("/hello")
async def hello(data: dict):
return {"message": "Hello, world!", "received": data}
Logs will automatically be captured and sent to your LogSentinel dashboard for AI analysis.
License
MIT License
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
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 logsentinel-0.1.1.tar.gz.
File metadata
- Download URL: logsentinel-0.1.1.tar.gz
- Upload date:
- Size: 188.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d7a4eac11cf046a1c34e157f2ae053cdb106a149502274b13471cd0ebdc8189
|
|
| MD5 |
99d874e627edea99f5e05b10bff7da55
|
|
| BLAKE2b-256 |
6cc38e8d3917589f672068da42a23915860d03f37b61af9682f6951a0ef9f469
|
File details
Details for the file logsentinel-0.1.1-py3-none-any.whl.
File metadata
- Download URL: logsentinel-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d9ab7de01a2842eed11334242663d9792c5458935ff5d3588013a35eaec7e1
|
|
| MD5 |
64f380dbf73a2f01546ab858d7427f7b
|
|
| BLAKE2b-256 |
cbdfcc3d441f891b33bf9eef75251332e0e22f665eca61ba5a287bd946b887f8
|