Giter VIP home page Giter VIP logo

csv2vcf's People

Contributors

taurgal avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sigma67 bcwalnja

csv2vcf's Issues

json discrepancy

I'm unclear on how to put together my json file correctly. The example you gave is too small to be sure that I'm pattern matching correctly.

Your provided example is turning a CSV with headers "NAME,MOBILE" into a json string '{"name":1, "tel":2}' to match with the VCF values 'n,tel'. I'm confused because the CSV header "Name" matches with the first json property name, but the second CSV header "Mobile" doesn't match the json. On the other hand, the second json property matches the VCF property "tel", but the first json property "name" doesn't match any VCF property.

Is the correct json pattern:
{ "vcf property": csv column reference, "vcf property 2": csv column reference 2, "vcf property 3": csv column reference 3 }

Or is it:
{ "csv column name": vcf property reference, "csv column name 2": vcf property reference 2, "csv column name 3": vcf property reference 3 }

I downloaded my contacts from google into csv, which gave me a file that had dozens of columns. I trimmed it down to "Name, Notes, Email, Phone". What should my json look like?
I'm currently using the powershell prompt python .\csv2vcf.py contacts.csv .\ '{ "name": 1, "email": 3, "phone": 4, "categories": 2 }'

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.