s365b.modules.exchange.vcf ========================== .. py:module:: s365b.modules.exchange.vcf .. autoapi-nested-parse:: vCard (``.vcf``) export of backed-up contacts. Contacts become vCard 3.0 cards (RFC 2426), the version Outlook, Apple Contacts, Google Contacts and Thunderbird all import; many cards go in one file. Not in the export: contact photos (not backed up) and fields with no vCard property (e.g. spouse, children, Yomi names). Attributes ---------- .. autoapisummary:: s365b.modules.exchange.vcf.FOLD_AT s365b.modules.exchange.vcf.ADDRESSES Functions --------- .. autoapisummary:: s365b.modules.exchange.vcf.to_vcf s365b.modules.exchange.vcf.card Module Contents --------------- .. py:data:: FOLD_AT :value: 75 .. py:data:: ADDRESSES :value: (('businessAddress', 'WORK'), ('homeAddress', 'HOME'), ('otherAddress', 'OTHER')) .. py:function:: to_vcf(contacts: list[dict[str, Any]]) -> bytes Write contacts as vCards. :param contacts: Graph contact objects, as backed up. :returns: The ``.vcf`` file, UTF-8 with CRLF line ends. .. py:function:: card(c: dict[str, Any]) -> list[str] One contact's vCard lines, unfolded. :param c: A Graph contact object. :returns: The lines from ``BEGIN:VCARD`` to ``END:VCARD``.