Skip to main content

Generate vCard file from CSV

Project description

vcf-creator

PyPI - Python Version PyPI license

Generate vCard file from CSV

Setup

Cloning the repository:

# Clone the repo
git clone https://github.com/animesh-chouhan/vcf-creator.git
cd vcf-creator

# Run the sample csv file
python3 -m vcf_creator sample.csv

Running tests

# If in vc-creator folder
cd vcf_creator/tests

# Run the test
python3 test_vcf.py

Installation:

To install it right away, type:

pip3 install vcf_creator

Help:

python3 -m vcf_creator --help

OR

vcf_creator --help

Running the script:

python3 -m vcf_creator <csv-file-name>

OR

vcf_creator <csv-file-name>

Import the module in your project:

from vcf_creator import vcard_formatter, vcard_generator

vcard_formatter(arguments)
vcard_generator(arguments)

CSV File Instructions

  1. The contact CSV file can have the following headers all in smallcase:
    • name
    • phone
    • organisation
    • email
    • address
    • birthday (mm/dd/yyyy)
  2. The headers can be in any order
  3. Make sure that no fields are empty

Usage example

preview

For more examples and usage, please refer to the Wiki.

Contributing

  1. Fork the repo (https://github.com/animesh-chouhan/vcf-creator/)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

MIT License copyright (c) 2021 Animesh Singh Chouhan. Please have a look at the license for more details.

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

vcf-creator-1.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

vcf_creator-1.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file vcf-creator-1.1.0.tar.gz.

File metadata

  • Download URL: vcf-creator-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.8.0 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for vcf-creator-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d5f2629b20db49f7f75d8300b24cbd2725921ee36dfa992bc7b57e00495c46f6
MD5 1173ba1183122337866991c46a47f216
BLAKE2b-256 1f1165472256e9fab665c61a1abd86705cf3b55b6fafdfc78626e1c7eeaf22b4

See more details on using hashes here.

File details

Details for the file vcf_creator-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: vcf_creator-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.8.0 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for vcf_creator-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f74c94da593921f1076a62d101b519624c868119ff618af0a0d3975e33c69efa
MD5 6ba38d28a3e5cd66aab645284bb8f410
BLAKE2b-256 0356bf3bb1aea29b70b24738a897e485345bf0e7d141462495ecea4f4ba706b4

See more details on using hashes here.

Supported by

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