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
Metadata
Release files for logsentinel 0.1.2
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 |
|---|---|---|---|---|
| logsentinel-0.1.2.tar.gz | 188.4 kB | Without provenance | Details for logsentinel-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logsentinel-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for logsentinel-0.1.2-py3-none-any.whl |
Total release size: 198.6 kB
Release files / logsentinel-0.1.2.tar.gz
| Download URL | logsentinel-0.1.2.tar.gz |
|---|---|
| Size | 188.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
328857fcac0db6172b49179dc56d9478fb7b5065c2a77048aa808401a6f5af0d
|
|
BLAKE2b-256 checksum How to use checksums |
fb3c26846655e53051d1d3fca6aff572a05d8b1adf529dd6720b6a909f2b5860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.8
|
Release files / logsentinel-0.1.2-py3-none-any.whl
| Download URL | logsentinel-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeccb13442d2ea5bde3214e5b2afe717755d57cc21f0c7d2cab2169f2a78766a
|
|
BLAKE2b-256 checksum How to use checksums |
7943f08784fd734df1584c953460123766e046cd687f30877aaaf3edf466cec1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.8
|
Security for logsentinel 0.1.2
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.