Python Library to Generate VCF Files?

2020-03-02 07:11发布

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.

标签: python vcf
2条回答
Juvenile、少年°
2楼-- · 2020-03-02 07:23

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

查看更多
做自己的国王
3楼-- · 2020-03-02 07:34

I would look at:

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

Very easy parsing and generation of both vCal and vCard.

查看更多
登录 后发表回答