All Projects → jowave → vcard2to3

jowave / vcard2to3

Licence: MIT license
Convert vcards from version 2.1 to version 3.0

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Labels

Projects that are alternatives of or similar to vcard2to3

laravel-vcard
A fluent builder class for vCard files.
Stars: ✭ 29 (-78.52%)
Mutual labels:  vcard
csv2vcf
🔧 Simple script in python to convert CSV files to VCF
Stars: ✭ 66 (-51.11%)
Mutual labels:  vcard
tsdav
WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser
Stars: ✭ 33 (-75.56%)
Mutual labels:  vcard
vcard-generator
VCard v4.0 rfc6350 compliant generator from JSON.
Stars: ✭ 15 (-88.89%)
Mutual labels:  vcard
doublecontact
Offline DE-independent Qt-based contact manager primarily for phonebooks editing/merging. Beta.
Stars: ✭ 40 (-70.37%)
Mutual labels:  vcard
create-vcard
Create a vCard from an object. Simple wrapper around vcards-js.
Stars: ✭ 13 (-90.37%)
Mutual labels:  vcard
SchemaMapper
A .NET class library that allows you to import data from different sources into a unified destination
Stars: ✭ 41 (-69.63%)
Mutual labels:  vcard
vcard-creator
A JavaScript vCard creator library for both Node.js and the web
Stars: ✭ 17 (-87.41%)
Mutual labels:  vcard
calcardbackup
calcardbackup: moved to https://codeberg.org/BernieO/calcardbackup
Stars: ✭ 67 (-50.37%)
Mutual labels:  vcard
DEVGUIDE
CalConnect project to provide documentation on Calendaring and related issues.
Stars: ✭ 17 (-87.41%)
Mutual labels:  vcard
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (-32.59%)
Mutual labels:  vcard
go-vcard
A Go library to parse and format vCard
Stars: ✭ 87 (-35.56%)
Mutual labels:  vcard

vcard2to3

Convert vcards from version 2.1 to version 3.0.

I wrote these scripts to convert contacts exported from an Android 4.x phone and import them into Nextcloud. It worked for me, your mileage may vary.

The scripts are rather simple, they don't cover all differences between 2.1 and 3.0.

vcard2to3.py

vcard2to3.py is the conversion script. Quickstart:

git clone https://github.com/jowave/vcard2to3.git
cd vcard2to3
./vcard2to3.py your_file.vcf

The output will be a file your_file.vcf.converted.

To show available command-line arguments run:

./vcard2to3.py --help

usage: vcard2to3.py [-h] [--in_encoding IN_ENCODING]
                    [--out_encoding OUT_ENCODING] [-r REMOVE]
                    [--remove_card REMOVE_CARD] [--remove_dollar] [-p]
                    infile [outfile]

Convert VCard 2.1 to VCard 3.0.

positional arguments:
  infile
  outfile

optional arguments:
  -h, --help            show this help message and exit
  --in_encoding IN_ENCODING
                        the encoding of the input file (default: platform
                        dependent)
  --out_encoding OUT_ENCODING
                        the encoding for the output file (default: platform
                        dependent)
  -r REMOVE, --remove REMOVE
                        remove lines matching regex REMOVE, can be given
                        multiple times
  --remove_card REMOVE_CARD
                        remove vcards for which any line matches regex REMOVE,
                        can be given multiple times
  --remove_dollar       remove "$" in N and FN values
  -p, --prune_empty     remove vcards which have only FN but no additional
                        fields

vcard_merge.py

Merge and sort vcards. With vcard_merge.py you can remove duplicate contacts. The contacts are sorted and merged by FN and duplicate lines within one contact are omitted. You may have to manually edit the result.

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].