---
title: "jowave/vcard2to3: Convert vcards from version 2.1 to version 3.0"
source: "https://github.com/jowave/vcard2to3"
author:
- "[[조웨이브]]"
published:
created: 2025-10-26
description: "Convert vcards from version 2.1 to version 3.0. Contribute to jowave/vcard2to3 development by creating an account on GitHub."
tags:
- "clippings"
---
vCard를 버전 2.1에서 버전 3.0으로 변환
[MIT 라이센스](https://github.com/jowave/vcard2to3/blob/master/LICENSE)
## 저장소 파일 탐색
## vcard2to3
vCard를 버전 2.1에서 버전 3.0으로 변환합니다.
Android 4.x 휴대폰에서 내보낸 연락처를 변환하여 Nextcloud로 가져오는 스크립트를 작성했습니다. 제 경우에는 효과가 있었지만, 여러분의 경험과는 다를 수 있습니다.
스크립트는 매우 간단하며, 2.1과 3.0의 모든 차이점을 다루지는 않습니다.
## vcard2to3.py
`vcard2to3.py` 변환 스크립트입니다. 빠른 시작:
```
git clone https://github.com/jowave/vcard2to3.git
cd vcard2to3
./vcard2to3.py your_file.vcf
```
출력은 파일입니다 `your_file.vcf.converted`.
사용 가능한 명령줄 인수를 표시하려면 다음을 실행하세요.
```
./vcard2to3.py --help
usage: vcard2to3.py [-h] [--in_encoding IN_ENCODING]
[--out_encoding OUT_ENCODING] [-r REMOVE]
[--remove_card REMOVE_CARD] [--remove_dollar]
infile [outfile]
Convert VCard 2.1 to VCard 3.0.
positional arguments:
infile the input filename
outfile the output filename, defaults to the input filename
with ".converted" appended, this file will be
overwritten if it exists
options:
-h, --help show this help message and exit
--in_encoding IN_ENCODING
the encoding of the input file (default: platform
dependent)
--out_encoding OUT_ENCODING
the encoding for the output file (default: platform
dependent)
-r REMOVE, --remove REMOVE
remove lines matching regex REMOVE, can be given
multiple times
--remove_card REMOVE_CARD
remove vcards for which any line matches regex
REMOVE_CARD, can be given multiple times
--remove_dollar remove "$" in N and FN values
```
## vcard\_merge.py
vCard를 병합하고 정렬합니다. `vcard_merge.py` 중복된 연락처를 제거할 수 있습니다. 연락처는 정렬 및 병합 기준에 따라 정렬되며 `FN`, 한 연락처 내의 중복된 줄은 삭제됩니다. 결과를 직접 편집해야 할 수도 있습니다.
## 참고문헌
- [VCard 3.0](https://tools.ietf.org/html/rfc2426)
- [VCard 4.0](https://tools.ietf.org/html/rfc6350)
## 새롭게 등장하다
게시된 자료는 없습니다.
## 세트
게시된 패키지는 없습니다.
## 언어
- [스타일 97.5%](https://github.com/jowave/vcard2to3/search?l=python)
- [인식데기 2.5%](https://github.com/jowave/vcard2to3/search?l=shell)