Skip to main content

This tool is designed to convert *.vcf (vCard) contact files to *.ldif file, for further creation of shared phone books on LDAP server.

Project description

vCard to ldif converter

PyPI - Wheel PyPI - Version PyPI - Python Version PyPI - License release develop codecov

This tool is designed to convert *.vcf (vCard) contact files to *.ldif file, for further creation of shared phone books on LDAP server.

Installation

pip install vcf2ldif

Usage

vcf2ldif \
    --input-file path/to/input_file.vcf \
    --root-dn ou=adressbook,dc=example,dc=com \
    --output-file path/to/output_file.ldif

You can import the resulting ldif file into your LDAP server (e.g. OpenLDAP) with the following command:

 ldapmodify -c -D "cn=admin,dc=example,dc=com" -W -f path/to/output_file.ldif

When converting, you can also format phone numbers according to the following standards:

  • e164 (e.g.: +18868886421) by adding the option --format-number e164
  • international (e.g.: +1 886-888-6421) by adding the option --format-number international
  • national (e.g.: (e.g.: (886) 888-6421) by adding the option --format-number national

You can learn more by invoking the command with the --help option

vcf2ldif --help

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

vcf2ldif-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vcf2ldif-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file vcf2ldif-0.1.0.tar.gz.

File metadata

  • Download URL: vcf2ldif-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vcf2ldif-0.1.0.tar.gz
Algorithm Hash digest
SHA256 790dc0265530cf979ecec58c0c076c2f149b41db77bd31cf9ab2d95509f3e6b9
MD5 1ff89641406acbc4541e15d5b8ad8643
BLAKE2b-256 c2cd5826f91a416a971465005b8d32d3534ecf4f7aba46b31815b4f3ac1aa778

See more details on using hashes here.

File details

Details for the file vcf2ldif-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vcf2ldif-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vcf2ldif-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 406a006c179324f4e162caa4629251c9f1f1c85d56a05e8109d8f116645ad4b6
MD5 ea45a22817dc41ab71b3212d8305ff9a
BLAKE2b-256 8d34279c777381205c3fc85ba305477dcf64ac92a5f8536ea0e9d748e91af27f

See more details on using hashes here.

Supported by

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