Registry / data / argus-redact

argus-redact

JSON →
library0.6.5pypypi✓ verified 82d ago

A Python library for local PII redaction that encrypts personally identifiable information in text while preserving contextual meaning. The current version is 0.6.5, updated as of late 2024. Release cadence is irregular, with occasional dependency updates.

pip install argus-redact
INSTALL
IMPORT
SIG · ARGUS-REDACT
A
argus-redact
datapythonv0.6.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedactReport
from argus_redact import RedactReport
from argus_redact import Redactor
assess_risk
from argus_redact import assess_risk
redact
from argus_redact import redact

Create a Redactor instance with an encryption key, then call .redact() on text to replace PII with placeholders.

import os from argus_redact import Redactor # Initialize redactor with an encryption key redactor = Redactor(key=os.environ.get('ARGUS_KEY', 'my-secret-key-32chars')) # Redact PII in text text = "My email is john.doe@example.com and phone is 555-1234." redacted = redactor.redact(text) print(redacted) # Example output: "My email is <EMAIL> and phone is <PHONE>."
Debug
Known issues
breakingIn v0.6.0, the default encryption algorithm changed from AES-128 to AES-256. Redacted data from earlier versions cannot be decrypted using the new default.
fix
Set the encryption algorithm explicitly when initializing: Redactor(algorithm='AES-128') to maintain backward compatibility.
affects: >=0.6.0
gotchaThe Redactor key must be exactly 32 bytes for AES-256 (or 16 bytes for AES-128). Passing a string of incorrect length raises a cryptic cryptography error.
fix
Ensure the key is exactly 32 bytes for default AES-256. Use key.encode('utf-8') or generate a proper key.
affects: all
deprecatedThe method `redact_pii` is deprecated since v0.5.0. Use `redact` instead.
fix
Replace all calls to `redact_pii` with `redact`.
affects: <0.5.0
Upgrade
Version history
0.6.5latest on PyPI · released May 6, 2026
Audit
Dependencies
cryptographyrequiredEncryption primitives for PII redaction
spacyrequiredNamed entity recognition for PII detection
Agent activity
42 hits · last 30 days
node
38
OpenAI (training)
1
Resources