Skip to main content

vcfxplr

pre-commit PyPI version Downloads Code style: black

Description

The goal of the tool is to explore and export data from a VCF / vCard file. It currently serves two functions:

  • Reads the VCF file and pretty-prints it to stdout
  • Reads the VCF file and dumps it in JSON format.

Installation

Install it from PyPI:

pip3 install --user --upgrade vcfxplr

To get the latest version install directly from source:

pip3 install --user --upgrade git+https://github.com/bergercookie/vcfxplr

Example - Usage

  • Pretty-print a file: vcfxplr -c path/to/file.vcf pretty
  • Write to JSON and dump to stdout: vcfxplr -c path/to/file.vcf json
  • Write to JSON and dump to stdout - Use fullname to group the items: vcfxplr -c path/to/file.vcf json -g uid

Sample Output

Sample execution for vcfxplr -c ~/Downloads/test.vcf json

2022-04-13 10:30:59.923 | INFO     | vcfxplr.scripts.main:main:87 - Parsing VCF file -> /home/berger/Downloads/test.vcf
{
  "John Doe": {
    "version": [
      {
        "value": "4.0"
      }
    ],
    "email": [
      {
        "value": "john@doe.com",
        "params": {
          "PREF": [
            "1"
          ]
        }
      },
      {
        "value": "john2@doe.com"
      }
    ],
    "n": [
      {
        "value": "John  Doe"
      }
    ],
    "tel": [
      {
        "value": "+44113712382",
        "params": {
          "TYPE": [
            "home"
          ],
          "VALUE": [
            "TEXT"
          ]
        }
      },
      {
        "value": "+44113728883",
        "params": {
          "TYPE": [
            "work"
          ],
          "VALUE": [
            "TEXT"
          ]
        }
      },
      {
        "value": "+44111238885",
        "params": {
          "TYPE": [
            "fax"
          ],
          "VALUE": [
            "TEXT"
          ]
        }
      }
    ],
    "uid": [
      {
        "value": "88cb5e2c-30e3-4b2e-b7bd-ce347a3652a7"
      }
    ]
  },
  "Ground Control": {
    "version": [
      {
        "value": "4.0"
      }
    ],
    "email": [
      {
        "value": "ground@control.com",
        "params": {
          "PREF": [
            "1"
          ]
        }
      }
    ],
    "tel": [
      {
        "value": "+1123456789",
        "params": {
          "VALUE": [
            "TEXT"
          ]
        }
      }
    ],
    "uid": [
      {
        "value": "7d50ef3d-32be-4b3c-a36b-9a083a8d67b6"
      }
    ]
  },
  "another  contact": {
    "version": [
      {
        "value": "4.0"
      }
    ],
    "nickname": [
      {
        "value": "contact@gmail.com"
      }
    ],
    "n": [
      {
        "value": "another   contact"
      }
    ],
    "tel": [
      {
        "value": "+12344566789",
        "params": {
          "VALUE": [
            "TEXT"
          ]
        }
      }
    ],
    "uid": [
      {
        "value": "bf2439a6-35cb-4d97-970d-bd31486b61e8"
      }
    ]
  },
  "one more contact": {
    "version": [
      {
        "value": "4.0"
      }
    ],
    "n": [
      {
        "value": "one  more contact"
      }
    ],
    "tel": [
      {
        "value": "+49728392882",
        "params": {
          "VALUE": [
            "TEXT"
          ]
        }
      }
    ],
    "uid": [
      {
        "value": "99b7de2c-26c7-4655-aa19-74c51a1507b0"
      }
    ]
  }
}

Metadata

Release files for vcfxplr 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vcfxplr 0.1.2
File Size Uploaded Provenance Actions
vcfxplr-0.1.2.tar.gz 5.6 kB Without provenance Details for vcfxplr-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vcfxplr 0.1.2
File Interpreter ABI Platform Actions
vcfxplr-0.1.2-py3-none-any.whl Python 3 none any Details for vcfxplr-0.1.2-py3-none-any.whl

Total release size: 10.5 kB

Release files / vcfxplr-0.1.2.tar.gz

Download URL vcfxplr-0.1.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
607ba266ee2aa83a13c341b90eeb608e927b3cd98d7fa797caed34dc23063026
BLAKE2b-256 checksum
How to use checksums
d11c7062e5ab3e0d0f98dba0d3f016ef6a586159ab891de86765d246ce288d61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-1021-azure

Release files / vcfxplr-0.1.2-py3-none-any.whl

Download URL vcfxplr-0.1.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59b5de69476c2545d99658c2694d5770f03ea9edad0fb336f46214cd5caa9166
BLAKE2b-256 checksum
How to use checksums
6030e1d27499daa82ccb1f54fd7baf2000e499841e86e421c166b3a8158c6a79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-1021-azure

Security for vcfxplr 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page