This program can be used for strict validation and parsing of vCards.
Additional scripts:
format-TEL.sh
- Format phone numbers according to national standardssplit.sh
- Split a multiple vCards file into individual filessort-lines.sh
- Sort vCard property lines according to a custom keyjoin-lines.sh
- Join previously split vCard linessplit-lines.sh
- Split long vCard lines
If your system uses Python 3 as the system Python, you'll have to install pip2
and use that instead of pip
below.
sudo pip install --upgrade vcard
Download:
git clone --recurse-submodules https://github.com/l0b0/vcard.git
Virtualenv setup:
virtualenv --python=python2.7 /path/to/virtualenv
. /path/to/virtualenv/bin/activate
Test:
make test
To test a specific Python version:
make python_version_major=2 python_version_minor=7 python_version_patch=5 test
Test requirements:
gcc
gpg
tar
make
openssl
development headers/librarieswget
zlib
development headers/libraries