Python Library to Generate VCF Files?

Deadly 提交于 2019-11-30 05:03:02

问题


Know of any good libraries for this? I did some searches and didn't come across anything. Someone somewhere must have done this before, I hate to reinvent the wheel.


回答1:


I would look at:

http://vobject.skyhouseconsulting.com/usage.html (look under "Usage examples")

Very easy parsing and generation of both vCal and vCard.




回答2:


PyCoCuMa appears to have a VCF parser built into it, and it'll generate VCard output. You might have some luck with it. I played around with it a bit; it parsed some VCF files I have lying around without any problems. You'll most likely have to poke through the source to figure out how to use it, though.

See:

http://www.srcco.de/v/pycocuma

http://pycocuma.sourcearchive.com/documentation/0.4.5-6-5/vcard_8py-source.html



来源:https://stackoverflow.com/questions/433331/python-library-to-generate-vcf-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!