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

12 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.yaml import YAML 

8 

9 

10class Passpie(YAML): 

11 """Importer for Passpie in YAML format.""" 

12 name = 'passpie' 

13 version = '1.0' 

14 url = 'https://www.enpass.io' 

15 hexport = '`passpie export file.yml`' 

16 himport = 'pass import passpie file.yml' 

17 yml_format = {'handler': 'passpie', 'version': 1.0} 

18 rootkey = 'credentials' 

19 keys = { 

20 'title': 'name', 

21 'password': 'password', 

22 'login': 'login', 

23 'comments': 'comment' 

24 } 

25 

26 

27register_managers(Passpie)