ClawWarden open SDK: data-sensitivity classifier (reference pipeline) + Governance Service client
Project description
clawwarden (Python)
Data-sensitivity classification + Governance Service client for the ClawWarden stack.
Pre-release: not yet on PyPI. Install from source:
git clone https://github.com/clawwarden/clawwarden && pip install -e packages/classifier
Classify before you send to an LLM
from clawwarden import Classifier
clf = Classifier() # reference regex/NER pipeline
r = clf.classify("Wire to Jane, SSN 123-45-6789")
print(r.sensitivity) # DataSensitivity.RESTRICTED
print(r.tags) # ['SSN']
Bring your own pipeline
from clawwarden import Classifier, ClassificationResult, DataSensitivity
class SemanticPipeline:
def classify(self, text: str) -> ClassificationResult:
... # your model / a custom pipeline
clf = Classifier(pipeline=SemanticPipeline())
Ship audit + evidence to the Governance Service
from clawwarden import GovernanceClient
gov = GovernanceClient(base_url="https://gov.example.com", api_key="...")
await gov.append_audit_event(
event_type="pii_detected", reason="restricted data in prompt", confidence=0.95,
payload={"tags": ["SSN"]},
)
The client is best-effort: a governance outage never breaks your request path, and it no-ops when unconfigured.
Open source
The reference classifier and its entity→sensitivity mapping are an open baseline. The proprietary
semantic sensitivity model and the BFSI taxonomy implement the same Pipeline protocol.
Apache-2.0.
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
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 clawwarden-0.1.0.tar.gz.
File metadata
- Download URL: clawwarden-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aeaaae807917ed0682ec80e7ad88112315c7cba1d9df6a265f2e7c2528cdaf0
|
|
| MD5 |
857fe0e985c0a1e7b20c96fba78a4b20
|
|
| BLAKE2b-256 |
3e633b1c5d1ade0a1c21933bac2e8e5931af130c84f0511ea04fb0462b56c8fa
|
Provenance
The following attestation bundles were made for clawwarden-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on clawwarden/clawwarden
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clawwarden-0.1.0.tar.gz -
Subject digest:
0aeaaae807917ed0682ec80e7ad88112315c7cba1d9df6a265f2e7c2528cdaf0 - Sigstore transparency entry: 1853609041
- Sigstore integration time:
-
Permalink:
clawwarden/clawwarden@d743295bd1d883df7741cfa3ace3f5511df1e9c8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/clawwarden
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@d743295bd1d883df7741cfa3ace3f5511df1e9c8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file clawwarden-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clawwarden-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5312f9e5af499d65d36419c40524eb1ebc08d1d6132739b94c47a5b610bd811e
|
|
| MD5 |
e9dc0538888ab5bc5405d1e8c36dbd97
|
|
| BLAKE2b-256 |
5a90790f5c6dba6c23bc41403a3bb71888d0d468ca393a986344b5df52ac1669
|
Provenance
The following attestation bundles were made for clawwarden-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on clawwarden/clawwarden
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clawwarden-0.1.0-py3-none-any.whl -
Subject digest:
5312f9e5af499d65d36419c40524eb1ebc08d1d6132739b94c47a5b610bd811e - Sigstore transparency entry: 1853609064
- Sigstore integration time:
-
Permalink:
clawwarden/clawwarden@d743295bd1d883df7741cfa3ace3f5511df1e9c8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/clawwarden
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@d743295bd1d883df7741cfa3ace3f5511df1e9c8 -
Trigger Event:
push
-
Statement type: