Python SDK for clawdstrike security verification
Project description
@clawdstrike/python
Python SDK for Clawdstrike security verification.
Installation
pip install clawdstrike
Usage
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clawdstrike-0.1.0.tar.gz
(78.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawdstrike-0.1.0.tar.gz.
File metadata
- Download URL: clawdstrike-0.1.0.tar.gz
- Upload date:
- Size: 78.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72ec4a2c4e18115f1e6dca345e06b74d17d53abbf52406ba45aeae33876f67d6
|
|
| MD5 |
0a1d69bb695a1f52561f3db3e66601a1
|
|
| BLAKE2b-256 |
2ee0fbe90cbe672abfb77508f181b3e50e4e807a6151671f2421badf20a29503
|
File details
Details for the file clawdstrike-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clawdstrike-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
134e277350f723af0f76a247cafa8c3fb7dac287f97ff77f2a3036dad59e1bca
|
|
| MD5 |
e09d17ecb15cabe6986252f6d58e87e6
|
|
| BLAKE2b-256 |
f31b583a275681e1221ef7bbd8b44e74573816c78b3bebc20769d1000d279d93
|