Skip to main content

A library for converting csv to .vcf file

Project description

[![Downloads](http://pepy.tech/badge/csvTovcf)](http://pepy.tech/count/csvTovcf)

csv2vcard

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.

Usage

  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.

Source Distribution

csvTovcf-0.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

csvTovcf-0.3.0-py2-none-any.whl (6.0 kB view details)

Uploaded Python 2

File details

Details for the file csvTovcf-0.3.0.tar.gz.

File metadata

  • Download URL: csvTovcf-0.3.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for csvTovcf-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7aa4eb0be39dc1f55097abc91c2132e1387346995ca735cb33e51ae558aeb141
MD5 7478805c8b8dc3652dab0d589a05a49a
BLAKE2b-256 9e167b0693572102c62a2de5c12beb4205386af94ad18df2c0ad85e7e476ff61

See more details on using hashes here.

File details

Details for the file csvTovcf-0.3.0-py2-none-any.whl.

File metadata

  • Download URL: csvTovcf-0.3.0-py2-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for csvTovcf-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 3c317558a0c1f6239267a8544bf3e41acd520ff22a7652313457d3709ced4d21
MD5 5191c41a64dc7a98f22804d3984dfdb3
BLAKE2b-256 8546cc6e2348e061e907a8e43822987ed8d3f5736f0c5848a1e0c808065a3e21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page