Back to Projects

AutoAPI Config Propagator

An intelligent automation tool for managing IP address configurations across entire project codebases.

Project Overview

AutoAPI Config Propagator is a powerful DevOps automation tool designed to simplify the management of IP addresses across project files. When deploying applications across different environments, updating hardcoded IP addresses can be tedious and error-prone.

This tool automates the process by scanning your entire codebase, identifying IPv4 addresses, and replacing them with your desired configuration - all while maintaining safety through backups and confirmation prompts.

Key Features

  • Automatic external IP detection via public APIs
  • Custom IP address specification support
  • Dry-run mode for safe preview of changes
  • Safe mode with per-IP confirmation prompts
  • Automated backup creation before modifications
  • Recursive directory scanning
  • File extension filtering for targeted updates
  • Detailed logging and change reporting

Technology Stack

Python 3.7+ (100%) requests colorama MIT License

Why use AACP?

  • Replace many hard-coded IPs quickly and consistently
  • Preview changes safely with --dry-run
  • Approve changes interactively per IP with --safe-mode
  • Keep a single timestamped ZIP backup of all originals

CLI Reference

  • directory - root path to scan (default: .)
  • --dry-run - show planned replacements without writing files
  • --no-backup - do not create a backup archive
  • -i, --ip <IP> - supply a custom IPv4 address instead of fetching
  • --safe-mode - prompt interactively per IP before replacing
  • --save-ip - save fetched IP to ip_address.txt

Project Stats

-- Stars -- Watching -- Forks