marcwebbie / passpie

:closed_lock_with_key: Multiplatform command-line password manager
http://passpie.readthedocs.org/
MIT License
921 stars 68 forks source link

Add pwsafe importer #81

Closed Atlantic777 closed 8 years ago

Atlantic777 commented 8 years ago

Pwsafe is a CLI password manager similar to passpie but a bit older. It was unmaintained for some time and I decided to migrate to the passpie. Hope this importer helps someone else, too.

I am aware that this PR doesn't include tests for added code. I need some assistance with that. It would be nice if someone could help me write needed tests or just walk me through test infrastructure for this project.

Thanks!

marcwebbie commented 8 years ago

Hello @Atlantic777

Some Passpie updates happened while this pull request was open. We now have a default CSV importer that we can map to columns in an CSV file.

For example for a CSV like this passwords.csv:

"Group","Title","Username","Password","URL","Notes"
"Root","Some Title","john.doe","secret","example.com","Some comments"
"Root","Another title","foo.bar","p4ssword","example.org",""

We can import the credentials with:

passpie import --cols ",,login,password,name,comment" passwords.csv

Importers tests: https://github.com/marcwebbie/passpie/tree/master/tests/test_importers More info on the docs: http://passpie.readthedocs.org/en/latest/getting_started.html#importing-credentials

Thanks for your contribution

marcwebbie commented 8 years ago

I will assume that this is solved with importing csv credentials: http://passpie.readthedocs.org/en/latest/getting_started.html#importing-credentials

Thanks for your contribution @Atlantic777