Metadata-Version: 2.4
Name: infralayer-sdk
Version: 0.3.0
Summary: Python SDK for local and remote InfraLayer pre-LLM sanitization
Author: InfraLayer
License: MIT
Keywords: llm,prompt-injection,sanitization,sdk,security
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
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 :: Security
Requires-Python: >=3.9
Requires-Dist: httpx<1,>=0.27
Requires-Dist: infralayer-core<0.4.0,>=0.3.0
Description-Content-Type: text/markdown

# InfraLayer Python SDK

Async Python client for local, zero-network security filtering or remote API sanitization.

```bash
pip install infralayer-sdk
```

```python
from infralayer_core import UserContext
from infralayer_sdk import create_local_infralayer

infra = create_local_infralayer()
user = UserContext("u1", "tenant-a", "employee", permissions=["read:docs"])
result = await infra.sanitize("Contact jane@example.com", user)
print(result.sanitized_context.text)
```

Local mode delegates to `infralayer-core`; the HTTP client dependency is used only for remote mode. Remote mode accepts `api_url`, `api_key`, `default_user_context`, timeout and retry configuration. Use `await client.close()` or `async with client` to release the HTTP connection pool.
