https://github.com/sedrubal/contactparser
A command line tool to convert microsofts .contact files into a csv or json
https://github.com/sedrubal/contactparser
contacts convert csv json script vcard
Last synced: 5 months ago
JSON representation
A command line tool to convert microsofts .contact files into a csv or json
- Host: GitHub
- URL: https://github.com/sedrubal/contactparser
- Owner: sedrubal
- License: gpl-3.0
- Created: 2016-01-05T00:58:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-10T19:42:14.000Z (about 10 years ago)
- Last Synced: 2025-03-17T23:53:20.158Z (11 months ago)
- Topics: contacts, convert, csv, json, script, vcard
- Language: Python
- Homepage: https://sedrubal.github.io/contactparser/
- Size: 37.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
.contact parser
===============
This is a parser for Microsofts `.contact` format to bring contacts to a proper standardized format.
I think many programs do the same job already but I didn't find a comfortable solution.
Output Formats
--------------
- csv
- json
Usage
-----
### brief:
`./contactparser.py -o contacts.csv foo.contact bar.contact`
### detailed:
```
usage: contactparser.py [-h] [-v] [-o file] [--json] [--pretty] [--csv]
[--csv-dialect {excel,excel-tab,unix}]
file [file ...]
a command line tool to convert microsofts .contact files into a csv or json
positional arguments:
file .contact files, - for stdin
optional arguments:
-h, --help show this help message and exit
-v, --verbose prints debug messages to stderr, -vv for more)
-o file, --output file
the output file, - for stdout
output: json:
--json output format is json
--pretty Make json pretty and not compact
output: csv:
--csv output format is csv
--csv-dialect {excel,excel-tab,unix}
the csv dialect
```
Install
-------
```sh
./setup.py install
```
Contribute
----------
- **Currently only Python3 is supported**. If you need python2, please contribute. I think there is not much to change.
- Currently there are not many fields supported. Please contribute to make this tool even mightier.
- Currently only csv and json export is supported. One could also implement vcard export.
License
-------
[GPLv3](LICENSE)