Metadata-Version: 2.4
Name: logsentinel
Version: 0.1.2
Summary: AI-powered log monitoring SDK for Python applications
Project-URL: Homepage, https://github.com/inctifra/logsentinel
Project-URL: Documentation, https://pypi.org/project/logsentinel
Project-URL: Source, https://github.com/inctifra/logsentinel
Author-email: Jeckonia Kwasa <inctifra@gmail.com>
License: MIT
Requires-Python: >=3.9
Requires-Dist: aiohttp>=3.13.2
Requires-Dist: backoff>=2.2.1
Requires-Dist: django-environ>=0.12.0
Requires-Dist: fastapi[all]>=0.121.1
Requires-Dist: httpx>=0.28.1
Requires-Dist: requests>=2.32.3
Requires-Dist: rich>=14.2.0
Description-Content-Type: text/markdown

# 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

```bash
pip install logsentinel
```

## Setup

1. Go to the [LogSentinel Dashboard](https://sentinel.ivps.cloud) and create an API key.
2. Add it to your environment variables:

```bash
export LOGSENTINEL_API_KEY="your_api_key_here"
```

## Example (FastAPI)

```python
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
