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

10 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.csv import CSV 

8 

9 

10class UPM(CSV): 

11 """Importer for Universal Password Manager (UPM) in CSV format.""" 

12 name = 'upm' 

13 url = 'http://upm.sourceforge.net' 

14 hexport = 'Database > Export' 

15 himport = 'pass import upm file.csv' 

16 fieldnames = ['title', 'login', 'password', 'url', 'comments'] 

17 keys = { 

18 'title': 'title', 

19 'password': 'password', 

20 'login': 'login', 

21 'url': 'url', 

22 'comments': 'comments' 

23 } 

24 

25 

26register_managers(UPM)