mobiusguard-redact
Streaming redaction for LLM output. It rewrites secrets and personal data in text that arrives in chunks, including a secret split across two chunks, without stopping the stream and without buffering the whole reply. Part of Mobius Guard. Alpha: the API may still change before 1.0.
from mobiusguard_redact import StreamRedactor
r = StreamRedactor() # curated patterns + all gitleaks rules
for chunk in llm_stream: # e.g. "my key is AKIA", "QWERTYUIOPASDFGH ok"
send(r.feed(chunk)) # emits text as soon as it is safe
send(r.flush()) # "my key is [REDACTED:aws_access_key_id] ok"
r.findings # pattern IDs and positions, never the secrets
- Same output however the text is split. For every shipped pattern, property tests check this at every split point.
- About one word of delay. Only text where a secret might be starting is held back.
- Patterns: 24 curated (API keys, tokens, private keys, emails, payment cards with Luhn,
IBAN, US SSN, Aadhaar with Verhoeff, PAN, phone numbers) plus all 221 regex rules from
gitleaks v8.30.1 with its entropy and allowlist
checks. Drop any by ID:
default_patterns(exclude={"generic-api-key"}). - Also
redact(text),redact_stream(iterable)andaredact_stream(async_iterable).
Guide, pattern list and limits: docs/redaction.md. How it works: decision 0007.
Metadata
Release files for mobiusguard-redact 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mobiusguard_redact-0.1.1.tar.gz | 49.2 kB | With provenance | Details for mobiusguard_redact-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mobiusguard_redact-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for mobiusguard_redact-0.1.1-py3-none-any.whl |
Total release size: 92.3 kB
Release files / mobiusguard_redact-0.1.1.tar.gz
| Download URL | mobiusguard_redact-0.1.1.tar.gz |
|---|---|
| Size | 49.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e311f871ca647170f7db798646938d1d3916280be143e858e96d800a8d23f228
|
|
BLAKE2b-256 checksum How to use checksums |
39c73e81eaa5b9a76891819f820947b21a3795ef1350ffe7985de847819266c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 4, 2026.
Transparency logRelease files / mobiusguard_redact-0.1.1-py3-none-any.whl
| Download URL | mobiusguard_redact-0.1.1-py3-none-any.whl |
|---|---|
| Size | 43.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03e7fb2dcf25f24a57333ebaf0b006f93419cddca237f6594fb796c31fb4acb0
|
|
BLAKE2b-256 checksum How to use checksums |
f6605dfcfb914f75e17d5b44004212211e40e6c51c6519b12fb2fc8ce35cf569
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 4, 2026.
Transparency logSecurity for mobiusguard-redact 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mobiusguard_redact-0.1.1.tar.gz
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 Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.