-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (17 loc) · 954 Bytes
/
Copy pathmain.py
File metadata and controls
24 lines (17 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3
"""Main entry point for jupiter-to-contacts."""
import argparse
from src.jupiter_to_contacts.converter import convert_excel_to_google_csv
def main():
"""Run the conversion with configurable paths."""
parser = argparse.ArgumentParser(description="Convert Excel contacts to Google Contacts CSV")
parser.add_argument("-i", "--input", default="./examples/excel.xlsx",
help="Input Excel file path (default: ./examples/excel.xlsx)")
parser.add_argument("-o", "--output", default="./examples/google_contacts.csv",
help="Output CSV file path (default: ./examples/google_contacts.csv)")
parser.add_argument("-c", "--country", default="IT",
help="Default country code for phone parsing (default: IT)")
args = parser.parse_args()
convert_excel_to_google_csv(args.input, args.output, args.country)
if __name__ == "__main__":
main()