Internal Info Replacement CLI
Project description
iir — Internal Info Replacement
iir (Internal Info Replacement) is a lightweight system for safely replacing internal identifiers (hosts, domains, service names, user names, etc.) before sharing logs, documents, or prompts with external parties or AI systems.
It is designed as a structural safety layer: a tool that helps humans safely sanitize (replace) internal identifiers before sharing information outside a trusted boundary.
Intended usage note
iir is designed to be used inside a local or private environment such as a developer machine, LAN, or internal network, as a preprocessing tool before sharing text with external services (including public or hosted LLMs).
iir itself is not intended to be exposed as a public service. How and where it is operated is the responsibility of the user.
Please note that the dictionary used by iir should be treated as your private internal data. Depending on how entries are curated, it can easily become sensitive or security-relevant information.
iir is a utility to assist safe replacement workflows. It does not claim to provide complete security guarantees.
About MCP integration
MCP support is planned as an optional execution mode for iir. It is primarily intended for on-premise or self-hosted LLM setups, where model outputs need to be sanitized before being exposed externally.
MCP integration does not change the core concept of iir. Replacement logic and safety assumptions remain the same, and MCP is not required for using iir effectively.
Installation
pip install iir-tool
Note: The PyPI package name is
iir-tool, but the CLI command isiir.
Two Usage Modes (Important)
iir supports two complementary usage modes.
1. Local / Personal Mode (CLI-First)
Designed for individual users and local workflows.
Typical uses cases:
- Preparing logs or text before sharing
- Sanitizing prompts before sending to AI tools
- Ad-hoc replacement in pipelines or scripts
Characteristics:
- CLI-first design (stdin → stdout)
- Simple installation (extra config not required)
- Suitable for quick evaluation via quickstart
2. Shared / Boundary Mode (API / Web / MCP)
This mode is intended to be deployed inside a LAN or private environment and to act as a boundary before data is shared with external services. It is not designed or recommended to be operated as a publicly exposed service.
This mode is commonly used in shared environments, team usage, and organizational boundaries.
Examples:
- HTTP based replacement service (for internal use)
- Web based replacement form for manual inspection
- MCP adapter as an optional LLM safety layer
Basic Usage (CLI, Recommended)
Development initialization (dev-init / dev-remove)
For local development and evaluation, iir provides explicit helper commands to initialize and clean up the working directory.
iir dev-init
iir dev-init
This command performs the following actions in the current directory:
- Creates
.env.secretif it does not already exist
(containsDJANGO_SECRET_KEYfor local use) - Creates
db.sqlite3in the current directory (SQLite) - Runs Django migrations against that database
After running dev-init, the directory will contain:
.env.secret
db.sqlite3
These files are local development artifacts and should normally be excluded from version control.
iir dev-remove
iir dev-remove
This command removes .env.secret from the current directory.
Notes:
dev-removedoes not deletedb.sqlite3- Database removal is intentionally left to the user
- This avoids accidental data loss
Important notes
dev-initanddev-removeare explicit developer helpers- iir will never create or migrate databases implicitly during
normal commands such as
replace - Database initialization is always a deliberate action
This design keeps database state predictable and avoids unintended side effects.
echo "my.domain" | iir add-entry DOMAIN
echo "connect to my.domain" | iir replace
Links
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.1.10.tar.gz.
File metadata
- Download URL: iir_tool-0.1.10.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
029f8e09ab66725dad16fefe65ac17f8322b23fe5e80344ce67afb9861c824c1
|
|
| MD5 |
02d793d4bbec2688c1f04228f5eeeb30
|
|
| BLAKE2b-256 |
8bca9c31168a8cff74b2a864b83dedf1989afc19ae91c2821fd1e906b84e3453
|
File details
Details for the file iir_tool-0.1.10-py3-none-any.whl.
File metadata
- Download URL: iir_tool-0.1.10-py3-none-any.whl
- Upload date:
- Size: 22.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 |
055d3d1bfa20c30279846a9d1bf4746991a8f2dfa262c564f7d883253001275b
|
|
| MD5 |
c65e21d6408530a7d22d33ffcdb623e7
|
|
| BLAKE2b-256 |
a6e64b277a0dc5e9e5b799ca90703290592bc522fe4a73d028e34ca114ca22f0
|