{"id":25938168,"url":"https://github.com/akcarsten/duplicate-finder","last_synced_at":"2025-03-04T03:34:58.349Z","repository":{"id":43663208,"uuid":"325670341","full_name":"akcarsten/Duplicate-Finder","owner":"akcarsten","description":"This Python packages identifies duplicate files in a folder of interest.","archived":false,"fork":false,"pushed_at":"2023-01-04T12:20:15.000Z","size":51,"stargazers_count":25,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-12T16:17:17.955Z","etag":null,"topics":["duplicate-detection","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akcarsten.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}},"created_at":"2020-12-30T23:40:47.000Z","updated_at":"2025-02-02T20:57:24.000Z","dependencies_parsed_at":"2023-02-02T12:00:24.415Z","dependency_job_id":null,"html_url":"https://github.com/akcarsten/Duplicate-Finder","commit_stats":null,"previous_names":["akcarsten/duplicates"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcarsten%2FDuplicate-Finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcarsten%2FDuplicate-Finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcarsten%2FDuplicate-Finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akcarsten%2FDuplicate-Finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akcarsten","download_url":"https://codeload.github.com/akcarsten/Duplicate-Finder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780491,"owners_count":20019057,"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":["duplicate-detection","python"],"created_at":"2025-03-04T03:34:57.787Z","updated_at":"2025-03-04T03:34:58.344Z","avatar_url":"https://github.com/akcarsten.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About Duplicates Finder\n\nDuplicates Finder is a simple Python package that identifies duplicate files in and across folders.\nThere are three ways to search for identical files:\n1. List all duplicate files in a folder of interest.\n2. Pick a file and find all duplications in a folder.\n3. Directly compare two folders against each other.\n\nThe results are saved as a Pandas Dataframe or can be exported as .csv files.\nMore information about the underlying concept can also be found in this [short article](https://towardsdatascience.com/find-duplicate-photos-and-other-files-88b0d07ef020).\n\n---\n## Installation\n\nYou can either clone the repository directly from the Github webpage or run the following command(s) in your terminal:\n\nPip Installation:\n```\npip install duplicate-finder\n```\n\nAlternatively you can clone the Git repository:\n```\ngit clone https://github.com/akcarsten/duplicates.git\n```\n\nThen go to the folder to which you cloned the repository and run:\n\n```\npython setup.py install\n```\n\nNow you can run Python and import the Bitfinex client.\n\n---\n## Examples of how to use the package\n\n#### Example 1: List all duplicate files in a folder of interest.\n```python\nimport duplicates as dup\n\n\nfolder_of_interest = 'C:/manyDuplicatesHere/'\ndup.list_all_duplicates(folder_of_interest, to_csv=True, csv_path='C:/csvWithAllDuplicates/', fastscan=True)\n```\nHere the _fastscan_ parameter is set to _True_ (default is false). By doing so a pre-selection of potential duplicate files\nis performed based on the file size. \nIf only a specific type of files is of interest this can be further defined by the 'ext' parameter. For example:\n```python\ndf = dup.list_all_duplicates(folder_of_interest, to_csv=True, csv_path='C:/csvWithAllDuplicates/', ext='.jpg')\n```\n\n#### Example 2: Pick a file and find all duplications in a folder.\n```python\nimport duplicates as dup\n\n\nfile_of_interest = 'C:/manyDuplicatesHere/thisFileExistsManyTimes.jpg'\nfolder_of_interest = 'C:/manyDuplicatesHere/'\ndf = dup.find_duplicates(file_of_interest, folder_of_interest)\n```\n\n#### Example 3: Directly compare two folders against each other.\n```python\nimport duplicates as dup\n\n\nfolder_of_interest_1 = 'C:/noDuplicatesHere/'\nfolder_of_interest_2 = 'C:/noDuplicatesHereAsWell/'\ndf = dup.compare_folders(folder_of_interest_1, folder_of_interest_2)\n```\n\nAs in *Example 1* above a specific filetype can be selected and the results can be written to a .csv file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakcarsten%2Fduplicate-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakcarsten%2Fduplicate-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakcarsten%2Fduplicate-finder/lists"}