Skip to main content

A library for converting csv to .vcf file

Project description



A Python script that parses a .csv file of contacts and automatically creates vCards. The vCards are super useful for sending your contact details or those of your team. You can also upload them to e.g. Dropbox and use them with QR codes! You can also use them for transferring new contacts to Outlook, a new CRM etc. The specific use case in mind was to programmatically create vCards from a list of contacts in a spreadsheet, to be incorporated into business cards.


  1. Install package with pip3 install csvTovcf
  2. Create csv file with contacts

CSV file format (delimeter can be changed in csv_delimeter param, see below)

last_name, first_name, org, title, phone, email, website, street, city, p_code, country

Important: you should name the columns exactly the same way because they are used as keys to generate the vCards

  1. cd yourcsvfoldername go to the folder where you have your csv file
  2. Open python python3 (gotcha: using Python 3.6 features)
  3. Import module from csv2vcard import csv2vcard
  4. Now you have 2 options for running (both will create an /export/ dir for your vCard):
  • Test the app with csv2vcard.test_csv2vcard(). This will create a Forrest Gump test vCard.
  • Use your real data csv2vcard.csv2vcard(“yourcsvfilename”, “,”, single_file=True) where “,” is your csv delimeter. This will create many vCards or single vCard depending on the single_file=True paramter.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for csvTovcf, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size csvTovcf-0.3.0-py2-none-any.whl (6.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size csvTovcf-0.3.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page