Coverage for pass_import/managers/keepassxc.py: 100%

14 statements  

« 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# 

5 

6from pass_import.core import register_managers 

7from pass_import.formats.kdbx import KDBX 

8from pass_import.managers.keepassx2 import Keepassx2CSV 

9 

10 

11class KeepassxcCSV(Keepassx2CSV): 

12 """Importer for KeepassXC in CSV format.""" 

13 name = 'keepassxc' 

14 default = False 

15 url = 'https://keepassxc.org' 

16 hexport = 'Database > Export to CSV File' 

17 himport = 'pass import keepassxc file.csv' 

18 

19 

20class KeepassxcKDBX(KDBX): 

21 """Importer for KeepassXC encrypted KDBX format.""" 

22 name = 'keepassxc' 

23 url = 'https://keepassxc.org' 

24 himport = 'pass import keepassxc file.kdbx' 

25 

26 

27register_managers(KeepassxcCSV, KeepassxcKDBX)