2022-06-13 08:26:47 +02:00
# find_duplicate_contacts
## Requirements
2022-06-13 21:21:15 +02:00
See the requirements.txt file for required Python modules.
Save the contacts as individual (one contact per file) vCard files in an isolated directory.
2022-06-13 08:26:47 +02:00
## Installation
### Linux
`sudo python3 setup.py install`
### Windows (from PowerShell)
`& $(where.exe python).split()[0] setup.py install`
## Usage
2022-06-13 21:21:15 +02:00
- Save the contacts as individual (one contact per file) vCard files in an isolated directory, pass this directory with the *--directory* option.
2024-09-25 13:19:34 +02:00
- Those completely equal, except for some list of keys (see the *ignore_fields* variable), will be directly moved to the *--duplicates-destination* folder inside the *--directory* .
2022-06-13 21:21:15 +02:00
- Those with equal full name, will be show and a prompt will ask you to keep one of the contact cards or just do nothing with them.
2022-06-13 21:27:11 +02:00
```find_duplicate_contacts.py [OPTIONS]```
2022-06-13 21:21:15 +02:00
2024-09-25 14:34:59 +02:00
### Options
```
2022-06-13 21:21:15 +02:00
-d, --debug-level [CRITICAL|ERROR|WARNING|INFO|DEBUG|NOTSET]
Set the debug level for the standard output.
-l, --log-file TEXT File to store all debug messages.
-f, --directory TEXT Directory containing vCard files to check.
[required]
-D, --duplicates-destination TEXT
Directory to move duplicates files, relative
to the directory containing the vCards. Default: duplicates
2024-09-25 13:50:26 +02:00
-i, --ignore-field TEXT Fields to ignore when considering duplicate
contacts. Default: ["prodid", "uid", "version",
"rev", "x-thunderbird-etag", "x-mozilla-html", "photo",
"categories"]
2022-06-13 21:21:15 +02:00
--config FILE Read configuration from FILE.
2022-06-13 21:27:11 +02:00
--help Show this message and exit.```
2024-09-25 14:34:59 +02:00
```
2022-06-13 21:27:11 +02:00
## License
2024-09-25 13:19:34 +02:00
[GPLv3 ](https://www.gnu.org/licenses/gpl-3.0.en.html )