{"id":15172636,"url":"https://github.com/evemilano/codecomp","last_synced_at":"2026-01-25T21:38:25.812Z","repository":{"id":243731743,"uuid":"813273932","full_name":"evemilano/codeComp","owner":"evemilano","description":"This script is designed to extract, compare, and report differences between two themes contained in zip files. It compares the files within the themes and generates a detailed report of any missing, added, or modified files.","archived":false,"fork":false,"pushed_at":"2024-07-08T10:53:27.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T05:42:25.479Z","etag":null,"topics":["comparison","drupal","files","joomla","magento","prestashop","python","themes","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":null,"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":null,"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-06-10T20:08:44.000Z","updated_at":"2024-07-08T10:53:30.000Z","dependencies_parsed_at":"2024-11-07T15:02:25.516Z","dependency_job_id":"0ace4060-7ee6-4378-b56e-095d8fc4c2af","html_url":"https://github.com/evemilano/codeComp","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"b575898df3c10763e1443b04dc84b6597d44ddb3"},"previous_names":["evemilano/codecomp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FcodeComp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FcodeComp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FcodeComp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FcodeComp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evemilano","download_url":"https://codeload.github.com/evemilano/codeComp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605124,"owners_count":19666998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","drupal","files","joomla","magento","prestashop","python","themes","wordpress"],"created_at":"2024-09-27T10:01:39.971Z","updated_at":"2025-11-13T07:30:16.547Z","avatar_url":"https://github.com/evemilano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Theme Comparison Script\n\nThis script is designed to extract, compare, and report differences between two themes contained in zip files. It compares the files within the themes and generates a detailed report of any missing, added, or modified files.\n\n## Features\n\n- Extracts zip files in a specified input directory.\n- Compares the files between two themes.\n- Generates a detailed report of missing, added, and modified files.\n- Outputs the report to a text file with a timestamp.\n\n## Requirements\n\n- Python 3.x\n\n## Installation\n\n1. Clone the repository:\n   git clone https://github.com/evemilano/codeComp.git\n   cd theme-comparison-script\n\n2. Install the dependencies:\n   pip install pygame paramiko\n\n3. Setup your configuration:\n   Modify the variables log_file, ip, user, and keys_folder in the script to match your server's details.\n\n## Configuration\n\n- input_folder: This is the directory where your theme zip files should be placed. The default is set to \"input\".\n\n## Code Explanation\n\n- extract_zip_files(input_folder): This function extracts all zip files found in the specified input directory.\n\n- get_all_files(folder): This function retrieves a set of all file paths within the specified folder, relative to the folder's root.\n\n- compare_files(file1, file2): This function compares two files and returns the differences in a unified diff format.\n\n- generate_report(theme1, theme2): This function compares the files between two themes and generates a report detailing missing, added, and modified files.\n\n- main(): The main function that orchestrates the extraction, comparison, and report generation process.\n\n## Report Format\n\nThe generated report includes:\n- Missing files in the second theme compared to the first.\n- Added files in the second theme compared to the first.\n- Modified files with detailed line-by-line differences.\n\nMade by https://www.evemilano.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevemilano%2Fcodecomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevemilano%2Fcodecomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevemilano%2Fcodecomp/lists"}