Unnamed repository; edit this file 'description' to name the repository.
Find a file
2024-10-01 00:43:32 +03:00
find_duplicate_contacts fix finding exact matches 2024-10-01 00:43:32 +03:00
.gitignore update module files 2024-09-25 14:01:41 +03:00
LICENSE Add license and fix metadata 2022-06-13 22:27:11 +03:00
pyproject.toml Use parameter for ignored fields 2024-09-25 14:50:26 +03:00
README.md Update readme 2024-09-25 15:34:59 +03:00
requirements.txt Find duplicates in vcards 2022-06-13 11:55:55 +03:00
setup.cfg Use parameter for ignored fields 2024-09-25 14:50:26 +03:00
setup.py Use parameter for ignored fields 2024-09-25 14:50:26 +03:00

find_duplicate_contacts

Requirements

See the requirements.txt file for required Python modules. Save the contacts as individual (one contact per file) vCard files in an isolated directory.

Installation

Linux

sudo python3 setup.py install

Windows (from PowerShell)

& $(where.exe python).split()[0] setup.py install

Usage

  • Save the contacts as individual (one contact per file) vCard files in an isolated directory, pass this directory with the --directory option.
  • 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.
  • 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.

find_duplicate_contacts.py [OPTIONS]

Options

  -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
  -i, --ignore-field TEXT         Fields to ignore when considering duplicate
                                  contacts. Default: ["prodid", "uid", "version",
                                  "rev", "x-thunderbird-etag", "x-mozilla-html", "photo",
                                  "categories"]
  --config FILE                   Read configuration from FILE.
  --help                          Show this message and exit.```

License

GPLv3