Skip to main content

Python library to convert between Abook and vCard

Project description

  • Reads and writes Abook files.

  • Saves photo to ~/.abook/photo/NAME.jpeg (if directory is present).

Configuration

field other = Other
view CONTACT = name, email
view ADDRESS = address, address2, city, state, zip, country
view PHONE = phone, workphone, mobile, other
view OTHER = nick, url, notes

Install

git clone https://github.com/jspricke/python-abook.git
cd python-abook

# builds the library (for use in your own scripts)
python3 setup.py build

# installs executables `abook2vcf` `vcf2abook` to $PATH
# mac (/opt/homebrew/bin)
python3 setup.py install

Usage

python-abook converts vcards (.vcf files) and writes them to your abook addressbook. It can also handle .vcf files containing multiple contacts. Additionally python-abook can convert your abook addressbook to .vcf format:

# convert your address book to vcf (one vcf file contatining all contacts)

$ abook2vcf --help
$ abook2vcf ~/path/to/abook/addressbook ~/path/to/write/contacts.vcf

# ommit the output file to print results to stdout

$ abook2vcf ~/path/to/abook/addressbook


# convert vcf contact/s and write them to your addressbook

$ vcf2abook --help
$ vcf2abook ~/path/to/contact.vcf ~/path/to/abook/addressbook

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abook-0.9.1.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

abook-0.9.1-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page