{"id":20476366,"url":"https://github.com/evemilano/theme_comparator","last_synced_at":"2026-05-08T09:33:43.156Z","repository":{"id":241637654,"uuid":"807316057","full_name":"evemilano/theme_comparator","owner":"evemilano","description":"This Python script is designed to help developers and designers compare two versions of a WordPress theme. It identifies differences in files, including missing, added, and modified files, and provides a detailed report on the changes. This tool is invaluable for debugging, collaboration, and understanding changes between theme updates.","archived":false,"fork":false,"pushed_at":"2024-05-28T21:47:53.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T18:44:51.888Z","etag":null,"topics":["comparison","python","seo","themes","webmaster","wordpress"],"latest_commit_sha":null,"homepage":"https://www.evemilano.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evemilano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T21:42:07.000Z","updated_at":"2024-05-28T21:49:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"99b4718d-a553-4192-b6e1-89d16c244b56","html_url":"https://github.com/evemilano/theme_comparator","commit_stats":null,"previous_names":["evemilano/theme_comparator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evemilano/theme_comparator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2Ftheme_comparator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2Ftheme_comparator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2Ftheme_comparator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2Ftheme_comparator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evemilano","download_url":"https://codeload.github.com/evemilano/theme_comparator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2Ftheme_comparator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32774952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comparison","python","seo","themes","webmaster","wordpress"],"created_at":"2024-11-15T15:20:04.108Z","updated_at":"2026-05-08T09:33:43.132Z","avatar_url":"https://github.com/evemilano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Theme Comparison Script\n\n## Overview\n\nThis Python script is designed to help developers and designers compare two versions of a WordPress theme. It identifies differences in files, including missing, added, and modified files, and provides a detailed report on the changes. This tool is invaluable for debugging, collaboration, and understanding changes between theme updates.\n\n## Features\n\n- Extracts ZIP files: Automatically extracts WordPress theme ZIP files for comparison.\n- File Comparison: Compares each file in the two themes to identify missing, added, and modified files.\n- Detailed Diff Reports: Generates a unified diff report for modified files, showing precise changes at the line level.\n- Clear Output: Saves the comparison report with a timestamp and the names of the compared themes for easy reference.\n\n## Use Cases\n\n- Theme Updates: Quickly see what has changed between two versions of a theme.\n- Debugging: Identify changes that may have introduced bugs or issues.\n- Collaboration: Understand what modifications have been made by team members.\n- Optimization: Track changes that affect performance or security.\n\n## Requirements\n\n- Python 3.x\n- Standard Python libraries: zipfile, difflib, os, pathlib\n\n## Installation\n\n1. Clone this repository to your local machine.\n2. Navigate to the project directory.\n\n## Usage\n\n1. Setup: Create a directory with the following structure:\n\u003cyour_directory\u003e/\n├── script.py\n└── input/\n    ├── theme1.zip (or extracted folder theme1)\n    └── theme2.zip (or extracted folder theme2)\n\n2. Place your themes: Put the two theme ZIP files or extracted folders inside the input directory.\n3. Run the script: Execute the script to generate the comparison report.\n\nThe script will generate a report file named in the format report_\u003ctheme1_name\u003e_vs_\u003ctheme2_name\u003e_yyyymmdd_hhmm.txt in the same directory as the script.\n\n## Output\n\nThe output report includes:\n- Missing files: Files present in one theme but missing in the other.\n- Added files: Files added in one theme compared to the other.\n- Modified files: Detailed differences for files that have been modified, using a unified diff format.\n\n## Example Output\n\nFormat of differences:\n@@ -a,b +c,d @@\na: Starting line number in the original file\nb: Number of lines in the block from the original file\nc: Starting line number in the modified file\nd: Number of lines in the block from the modified file\n-: Lines removed from the original file\n+: Lines added to the modified file\n\nMissing files in theme2:\nfile1.php\nfile2.css\n\nAdded files in theme2:\nfile3.js\nfile4.html\n\nModified file: style.css\n--- theme1/style.css\n+++ theme2/style.css\n@@ -15,7 +15,7 @@\n- old line 15\n+ new line 15\n  unchanged line 16\n  unchanged line 17\n  unchanged line 18\n@@ -25,4 +25,4 @@\n- old line 25\n+ new line 25\n\n## Contributing\n\nContributions are welcome! Please fork this repository and submit a pull request for any improvements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n\n## Contact\n\nFor any questions or suggestions, please contact [Giovanni Sacheli @ evemilano.com](https://www.evemilano.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevemilano%2Ftheme_comparator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevemilano%2Ftheme_comparator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevemilano%2Ftheme_comparator/lists"}