Metadata-Version: 2.4
Name: clawdstrike
Version: 0.1.2
Summary: Python SDK for clawdstrike security verification
Author: Clawdstrike Contributors
License: Apache-2.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: pycryptodome>=3.19.0
Requires-Dist: pynacl>=1.5.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: wcmatch>=8.5
Provides-Extra: attestation
Requires-Dist: httpx>=0.25; extra == 'attestation'
Provides-Extra: dev
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.1; extra == 'dev'
Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
Description-Content-Type: text/markdown

# clawdstrike

Python SDK for Clawdstrike security verification.

## Installation

```bash
pip install clawdstrike
```

## Usage

```python
from clawdstrike import Policy, PolicyEngine, GuardAction, GuardContext

# Load policy from YAML
policy = Policy.from_yaml_file("policy.yaml")
engine = PolicyEngine(policy)

# Check actions
context = GuardContext(cwd="/app")
result = engine.is_allowed(
    GuardAction.file_access("/app/src/main.py"),
    context,
)
```

## Features

- Pure Python implementation of 5 guards:
  - ForbiddenPathGuard
  - EgressAllowlistGuard
  - SecretLeakGuard
  - PatchIntegrityGuard
  - McpToolGuard
- Policy engine with YAML configuration
- Receipt signing and verification with Ed25519
- Experimental native bindings (not yet published)

## Native bindings (experimental)

This repo includes a Rust/PyO3 module at `packages/sdk/hush-py/hush-native`, but it is not packaged for PyPI yet.

## License

Apache-2.0
