Metadata-Version: 2.4
Name: securelayerx
Version: 0.1.0
Summary: Production-ready application and AI security SDK for FastAPI.
Author: SecureLayerX Maintainers
Maintainer: SecureLayerX Maintainers
License-Expression: MIT
Keywords: security,application-security,ai-security,fastapi,middleware,rate-limiting,prompt-injection
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi<1.0.0,>=0.110.0
Requires-Dist: httpx<1.0.0,>=0.27.0
Requires-Dist: uvicorn<1.0.0,>=0.29.0
Requires-Dist: PyYAML<7.0,>=6.0
Dynamic: license-file

# SecureLayerX

SecureLayerX is a production-ready application and AI security SDK for FastAPI.

It provides layered protection for web apps, APIs, and LLM-powered workflows with:

- request inspection and validation
- adaptive rate limiting
- behavior analysis and risk scoring
- execution guards for protected routes
- AI prompt and output guardrails
- structured security logging and metrics
- a local dashboard, self-test, attack simulator, and playground

## Installation

```bash
pip install securelayerx
```

## Quick Start

```python
from fastapi import FastAPI
from securelayerx import Shield

app = FastAPI()
shield = Shield(app, mode="strict")
```

## CLI

```bash
securelayerx playground
securelayerx dashboard
securelayerx self-test
securelayerx test-attacks
```

## Highlights

- layered security for request, behavior, execution, and AI safety
- local-first operation with no paid services required
- explainable block responses with reason and remediation guidance
- plugin rules and policy engine support
- response redaction for secrets and sensitive values

## License

MIT
