Git Product home page Git Product logo

vcf-parser's Introduction

vcf-parser

Python program for parsing VCF files and generating an Excel spreadsheet with contact data.

Table of contents

1. Description

Python project consisting in parsing VCF files (typically used in BusyContacts macOS app for instance) and generating a summary Excel spreadsheet with contact data under the form of a pivot table. Contacts can be filtered according to their category tag(s) attributed in the original contact management app. The program currently takes 3 inputs: The path of the VCF file to parse (by default, the latest backup of BusyContacts macOS app is taken into account), the filtering tags for characterizing the contacts to filter and the logical operator being either "&" (in case one wants to filter out all contacts precisely presenting all the filtering tags) or "|" (for filtering out all contacts presenting at least one of the filtering tags). Note that if no filtering tag is provided at all, a spreadsheet containing all contacts stored in the VCF file is generated, no matter the tag(s) of the contacts.

TODO: clean below:

  • Picture is retrieved using base64 conversion.
  • Contacts are sorted alphabetically according to last name.

2. Getting started

2.1 Dependencies

  • Tested on macOS Ventura version 13.4
  • Python 3.10.0

2.2 Installing

pip install -r requirements.txt

2.3 Executing program

  • To access useful help messages, type following Terminal command at the root of the project:

    python3 src/main.py -h

  • To run the script, simply type for instance following command from the root of the project:

    python3 src/main.py -vcf_file_path "absolute/path/to/Contacts.vcf" -tag_list my_tag_1 my_tag_2 my_tag_3 -logic_op "|"

3. Version history

  • 0.1
    • Initial release

vcf-parser's People

Contributors

antho1426 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.