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.1.tar.gz
(16.9 kB
view details)
Built Distribution
abook-0.9.1-py3-none-any.whl
(17.1 kB
view details)
File details
Details for the file abook-0.9.1.tar.gz
.
File metadata
- Download URL: abook-0.9.1.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 | 2a08abceff7a36e5a098a71d8c0ed346ede440bcdd5d9ea88f039969af036601 |
|
MD5 | 2b7500b4f8bb1c0318662ee5cc5b8fcd |
|
BLAKE2b-256 | f0bbb66054a69c150bcb79643ada283384ff6b11e2d38a8d9fbace9fbace92db |
File details
Details for the file abook-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: abook-0.9.1-py3-none-any.whl
- Upload date:
- Size: 17.1 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 | bbe2b660881a2a9e328804cb05ddcd2ae6dc0904d23d5763a5e4f4d29936858a |
|
MD5 | 72171ba982ecfcb2d5db4eea57791aef |
|
BLAKE2b-256 | f10ff689cc74bb3f5fd9787b349f9de4bdbaaeee76ebb4ea473c0745d38b9856 |