MCPcopy Create free account
hub / github.com/Moduland/csv2vcf / VCF_creator

Function VCF_creator

csv2vcf/VCF.py:129–152  ·  view source on GitHub ↗

This function create VCF files :param folder_name: Folder name :param first_name: Name :param last_name: Name :param tel_mobile: tel :param tel_home: Tel :param tel_work: Tel :param email_home: Email :param email_work:Email :param email_mobile: Email :pa

(folder_name,first_name,last_name,tel_mobile,tel_home,tel_work,email_home,email_work,email_mobile,adr_work,adr_home,website_url)

Source from the content-addressed store, hash-verified

127 return VCF_folder_adr
128
129def VCF_creator(folder_name,first_name,last_name,tel_mobile,tel_home,tel_work,email_home,email_work,email_mobile,adr_work,adr_home,website_url):
130 '''
131 This function create VCF files
132 :param folder_name: Folder name
133 :param first_name: Name
134 :param last_name: Name
135 :param tel_mobile: tel
136 :param tel_home: Tel
137 :param tel_work: Tel
138 :param email_home: Email
139 :param email_work:Email
140 :param email_mobile: Email
141 :param adr_work: Address
142 :param adr_home: Address
143 :param website_url: URL
144 :return: None
145 '''
146 file=open(os.path.join(folder_name,last_name+"_"+first_name+".vcf"),"w")
147 VCF_init(file)
148 VCF_name(file,first_name,last_name)
149 VCF_phone(file,tel_mobile,tel_home,tel_work)
150 VCF_email(file,email_home,email_mobile,email_work)
151 VCF_adr(file,adr_work,adr_home)
152 VCF_website(file,website_url)
153
154def name_dict_update(name):
155 '''

Callers 1

VCF_writeFunction · 0.85

Calls 6

VCF_initFunction · 0.85
VCF_nameFunction · 0.85
VCF_phoneFunction · 0.85
VCF_emailFunction · 0.85
VCF_adrFunction · 0.85
VCF_websiteFunction · 0.85

Tested by

no test coverage detected