semvec/pypi-packages huggingface dataset:
clawdstrike 0.1.1
Python SDK for clawdstrike security verification
License: Apache-2.0
Requires Python: >=3.10

# 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

MIT