Skip to main content

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.

Metadata

Release files for clawwarden 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clawwarden 0.1.0
File Size Uploaded
clawwarden-0.1.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clawwarden 0.1.0
File Interpreter ABI Platform
clawwarden-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / clawwarden-0.1.0.tar.gz

Download URL clawwarden-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0aeaaae807917ed0682ec80e7ad88112315c7cba1d9df6a265f2e7c2528cdaf0
BLAKE2b-256 checksum
How to use checksums
3e633b1c5d1ade0a1c21933bac2e8e5931af130c84f0511ea04fb0462b56c8fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.

Transparency log

Release files / clawwarden-0.1.0-py3-none-any.whl

Download URL clawwarden-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5312f9e5af499d65d36419c40524eb1ebc08d1d6132739b94c47a5b610bd811e
BLAKE2b-256 checksum
How to use checksums
5a90790f5c6dba6c23bc41403a3bb71888d0d468ca393a986344b5df52ac1669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page