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
Release history Release notifications | RSS feed
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.0.tar.gz
(16.9 kB
view details)
Built Distribution
abook-0.9.0-py3-none-any.whl
(17.2 kB
view details)
File details
Details for the file abook-0.9.0.tar.gz
.
File metadata
- Download URL: abook-0.9.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e5de0b3e9c6db0e69958b8b9f76cee79de931e622fe7c10b1cc18d03e6cb102 |
|
MD5 | 11a606a3d627c8c4a9175cc5ce88180d |
|
BLAKE2b-256 | be4f98226d7d0369306f2b0f29f4fc8d9fb7fd639d669178401240a2b7f2320e |
File details
Details for the file abook-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: abook-0.9.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 532b8690da41000e15467d59cf00d49eb62792b713fb6221f37b5e182c127ad8 |
|
MD5 | f1db98c042826ba0f6267648dcb1314c |
|
BLAKE2b-256 | 91817b96d51eb109a21595dd46911d746e6f9125704c70558ed141126e21c107 |