Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawwarden-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawwarden-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for clawwarden-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0aeaaae807917ed0682ec80e7ad88112315c7cba1d9df6a265f2e7c2528cdaf0
MD5 857fe0e985c0a1e7b20c96fba78a4b20
BLAKE2b-256 3e633b1c5d1ade0a1c21933bac2e8e5931af130c84f0511ea04fb0462b56c8fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for clawwarden-0.1.0.tar.gz:

Publisher: pypi-publish.yml on clawwarden/clawwarden

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for clawwarden-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5312f9e5af499d65d36419c40524eb1ebc08d1d6132739b94c47a5b610bd811e
MD5 e9dc0538888ab5bc5405d1e8c36dbd97
BLAKE2b-256 5a90790f5c6dba6c23bc41403a3bb71888d0d468ca393a986344b5df52ac1669

See more details on using hashes here.

Provenance

The following attestation bundles were made for clawwarden-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on clawwarden/clawwarden

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page