{"id":27594,"library":"argus-redact","title":"Argus Redact","description":"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.","status":"active","version":"0.6.5","language":"python","source_language":"en","source_url":"https://github.com/wan9yu/argus-redact","tags":["pii","redaction","encryption","privacy","nlp"],"install":[{"cmd":"pip install argus-redact","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Encryption primitives for PII redaction","package":"cryptography","optional":false},{"reason":"Named entity recognition for PII detection","package":"spacy","optional":false}],"imports":[{"wrong":"from argus_redact import Redactor","symbol":"RedactReport","correct":"from argus_redact import RedactReport"},{"symbol":"assess_risk","correct":"from argus_redact import assess_risk"},{"symbol":"redact","correct":"from argus_redact import redact"}],"quickstart":{"code":"import os\nfrom argus_redact import Redactor\n\n# Initialize redactor with an encryption key\nredactor = Redactor(key=os.environ.get('ARGUS_KEY', 'my-secret-key-32chars'))\n\n# Redact PII in text\ntext = \"My email is john.doe@example.com and phone is 555-1234.\"\nredacted = redactor.redact(text)\nprint(redacted)\n# Example output: \"My email is <EMAIL> and phone is <PHONE>.\"","lang":"python","description":"Create a Redactor instance with an encryption key, then call .redact() on text to replace PII with placeholders."},"warnings":[{"fix":"Set the encryption algorithm explicitly when initializing: Redactor(algorithm='AES-128') to maintain backward compatibility.","message":"In 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.","severity":"breaking","affected_versions":">=0.6.0"},{"fix":"Ensure the key is exactly 32 bytes for default AES-256. Use key.encode('utf-8') or generate a proper key.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace all calls to `redact_pii` with `redact`.","message":"The method `redact_pii` is deprecated since v0.5.0. Use `redact` instead.","severity":"deprecated","affected_versions":"<0.5.0"}],"env_vars":null,"search_vec":"'0.6.5':25 '2024':30 'argus':1 'cadenc':32 'contextu':19 'current':22 'depend':37 'encrypt':11,41 'identifi':13 'inform':14 'irregular':34 'late':29 'librari':5 'local':7 'mean':20 'nlp':43 'occasion':36 'person':12 'pii':8,39 'preserv':18 'privaci':42 'python':4 'redact':2,9,40 'releas':31 'text':16 'updat':26,38 'version':23","created_at":"2026-05-09T05:51:03.332604+00:00","updated_at":"2026-05-09T05:51:03.332604+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/wan9yu/argus-redact","docs":null,"changelog":null,"pypi":"https://pypi.org/project/argus-redact/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","auth-security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}