Coverage for pass_import/managers/chrome.py: 100%
17 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 12:11 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 12:11 +0000
1# -*- encoding: utf-8 -*-
2# pass import - Passwords importer swiss army knife
3# Copyright (C) 2017-2024 Alexandre PUJOL <alexandre@pujol.io>.
4#
6from pass_import.core import register_managers
7from pass_import.formats.csv import CSV
10class ChromeCSV(CSV):
11 """Importer for Chrome in CSV format."""
12 name = 'chrome'
13 url = 'https://support.google.com/chrome'
14 hexport = ('In chrome://password-manager/settings under 2Export passwords'
15 'Download File')
16 himport = 'pass import chrome file.csv'
17 only = True
18 keys = {
19 'title': 'name',
20 'password': 'password',
21 'login': 'username',
22 'url': 'url',
23 'comments': 'note',
24 }
27class ChromeCSVSQLite(CSV):
28 """Importer for Chrome SQLite in CSV format."""
29 name = 'chrome'
30 default = False
31 url = 'https://support.google.com/chrome'
32 hexport = ('See this guide: https://support.google.com/chrome/'
33 'answer/95606#see')
34 himport = 'pass import chrome file.csv'
35 keys = {
36 'title': 'display_name',
37 'password': 'password_value',
38 'login': 'username_value',
39 'url': 'origin_url'
40 }
43register_managers(ChromeCSV, ChromeCSVSQLite)