Internal Info Replacement CLI
Project description
iir — Internal Info Replacement
iir (Internal Info Replacement) is a lightweight CLI tool for safely replacing internal identifiers (hosts, domains, service names, user names, etc.) before sharing logs, documents, or prompts with external parties or AI systems.
iir is designed as a structural safety layer: it helps prevent accidental leakage of internal information by performing deterministic, exact-match replacements before data leaves a trusted boundary.
Installation
Install iir from PyPI:
pip install iir-tool
Note: The PyPI package name is
iir-tool, but the CLI command isiir.
Quickstart (CLI)
Initialize local state in the current directory:
iir dev-init
This command prepares local state files (such as .env.secret).
It does not run database migrations.
Run database migrations explicitly:
iir admin migrate
Register an internal identifier:
echo "my.internal.domain" | iir add-entry DOMAIN
Perform a replacement:
echo "connect to my.internal.domain" | iir replace
Example output:
connect to Domain1
(The exact number depends on your local database.)
Design notes
- Replacements are exact match only
- No regular expressions or fuzzy matching
- Replacement order is deterministic
- Output must be treated as external and irreversible
iir does not attempt to automatically detect sensitive data. Only explicitly registered values are replaced.
Documentation
Complete documentation, including Docker-based evaluation and shared / container deployment modes, is available on GitHub:
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iir_tool-0.2.0.tar.gz.
File metadata
- Download URL: iir_tool-0.2.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65b53526562e3974b790a402a7c65ac88bebdc757053e9769e30814ae5d07e01
|
|
| MD5 |
abad67bacabbfb03bf5b28c5bfbe376a
|
|
| BLAKE2b-256 |
3905a229f14edc7e1e7b84a1f6578905c161c82de41839077750f85dc8d3a849
|
File details
Details for the file iir_tool-0.2.0-py3-none-any.whl.
File metadata
- Download URL: iir_tool-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e08b68a5d2f417e2b727e9418887aed2b5ae99ff31e564e622fcc38366bc636a
|
|
| MD5 |
c30bc74188477844262d3e090a348c67
|
|
| BLAKE2b-256 |
b5817fc6187fa967da9b84af59f7d5cc949a5bea76ad522616b637357249a516
|