Coverage for pass_import/managers/saferpass.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 SaferPass(CSV): 

11 """Importer for SaferPass in CSV format.""" 

12 name = 'saferpass' 

13 url = 'https://saferpass.net' 

14 hexport = 'Settings > Export Data: Export data' 

15 himport = 'pass import saferpass file.csv' 

16 encoding = 'utf-8-sig' 

17 keys = { 

18 'title': 'title', 

19 'password': 'password', 

20 'login': 'username', 

21 'url': 'url', 

22 'comments': 'notes', 

23 'favorite': 'favorite', 

24 'text': 'text', 

25 'modelType': 'modelType', 

26 'color': 'color' 

27 } 

28 

29 

30register_managers(SaferPass)