Skip to main content

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 is iir.


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iir_tool-0.1.15.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iir_tool-0.1.15-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file iir_tool-0.1.15.tar.gz.

File metadata

  • Download URL: iir_tool-0.1.15.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for iir_tool-0.1.15.tar.gz
Algorithm Hash digest
SHA256 a4fbd430536e3d30dda0d0e04953b2f52495cf913db0f4594b44ffb3d636a826
MD5 623119f78a21e3475aee24569b01bff3
BLAKE2b-256 636627971cdd7fc65301c485ad9bbc71f9ed88d5c68621866a212de9eec00aee

See more details on using hashes here.

File details

Details for the file iir_tool-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: iir_tool-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for iir_tool-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 d1789717d604dca2faa6dbbbc2f12f335803b295bbbbc1076451f8fa269bad33
MD5 b8062ca1d7250608509d78e6cff13f71
BLAKE2b-256 2586afd6d72bd0b79d208cc3471dcda17b522aa617fd5ce6067863e19fda62ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page