reinefjord / pass2csv Goto Github PK
View Code? Open in Web Editor NEWExport pass(1), "the standard unix password manager", to CSV.
Home Page: https://pypi.org/project/pass2csv/
License: MIT License
Export pass(1), "the standard unix password manager", to CSV.
Home Page: https://pypi.org/project/pass2csv/
License: MIT License
Hi, I'm trying to move to bitwarden
I've read somebody's experience of doing this by importing the CSV in keepass
But my keepass shows no passwords
And also worth mentioning that my pass files are a bit different, I don't have URL
Thank you for this fantastic tool! I think it will save me quite some headaches!
I am on Debian 12. I got my version from PyPI. Unfortunately, there is no --version
flag, but according to pipx
I am using version 1.0.0.
When I ran an export of my database, seemingly everything succeeded and an output file was created. I haven't checked in detail yet, though. However, I was irritated because at the end of the line I saw ^M
symbols. When I opened the CSV using a HEX editor, it showed that there are 0d0a
bytes, which indicates that line breaks are \r\n
.
The first two lines of the hexdump follow:
00000000 47 72 6f 75 70 28 2f 29 2c 54 69 74 6c 65 2c 50 |Group(/),Title,P|
00000010 61 73 73 77 6f 72 64 2c 4e 6f 74 65 73 0d 0a 43 |assword,Notes..C|
I would highly appreciate if line breaks could be created OS aware.
Thank you very much!
installed, but unable to execute.
`
python3 -m pip install --user python-gnupg
Collecting python-gnupg
Downloading python_gnupg-0.4.6-py2.py3-none-any.whl (17 kB)
Installing collected packages: python-gnupg
Successfully installed python-gnupg-0.4.6
❯ python3 pass2csv.py ~/.password-store
python3: can't open file 'pass2csv.py': [Errno 2] No such file or directory
✘ ❯ pass2csv --help
command not found: pass2csv
`
Hi mate!
I made some quick and dirty changes to your code, as I haven't got a standardized format in my pass
-files. I imported from two different password managers and exporting it resulted in a mess. (e.g. imported from LastPass, but created new passwords with QtPass/pass)
Maybe someone needs that code, too.
It's here in this pastebin: https://pastebin.com/pELhX9Wf
I guess it would be a better approach for me to read every line and look for keywords like "login" and "username" to then apply this input to a variable.
My approach here was just simply shuffling around til it was good, so... it's not a nice code for a pull request, but some may consider it helpful anyway. :)
Needed a way to export to csv as to migrate to enpass
Had to change a few things around, but had it easily changed and exported in no time!
Thanks :)
Now i think i might be just too stupid for a simple program like this, but whenever i run it after installation it says that, well, it's not installed.
I did use the new README, and even tried the old one but to no avail.
The shell syntax highlighting (fish in my case) turns red, suggesting that somehow pass2csv isn't installed.
I'm pretty sure i'm just missing something, am i?
Hey there,
currently this tool cannot be invoked via pipx, if pipx bases its virtual environments in a path that contains spaces, which is the default on mac, as per the mac documentation. This is the case since pipx 1.3.
The solution is to provde a entry point, see the pipx docs.
As you recommend installing this tool via pipx, it would be great if you could update your package accordingly.
Thanks!
based on pypa/pipx#1212
Program get crashed when password use russian symbols
Traceback (most recent call last):
File "/home/nikifoi4/pass2csv/./pass2csv", line 277, in <module>
main(**kwargs)
File "/home/nikifoi4/pass2csv/./pass2csv", line 110, in main
set_data(entry, str(decrypted), exclude, get_fields, get_lines)
File "/usr/lib/python3.9/site-packages/gnupg.py", line 610, in _as_text
return self.data.decode(self.gpg.encoding, self.gpg.decode_errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 34: invalid continuation byte
Hi, when executing the program, I get the following error. Not sure how to fix it, please help.
Screenshot
Hello, while looking into using this tool. I ran into the following error, and after some head scratching, I realized I need Python 3.8 or later to use this package.
(venv) winston@snowcrash ~/projects/pass2csv $ ./pass2csv
Traceback (most recent call last):
File "./pass2csv", line 185, in <module>
PARSER = OptionsParser()
File "./pass2csv", line 166, in __init__
help="strings to interpret as names of login fields (only used with -x)"
File "/usr/lib/python3.7/argparse.py", line 1358, in add_argument
raise ValueError('unknown action "%s"' % (action_class,))
ValueError: unknown action "extend"
To eliminate the possibility of this happening to other users, I humbly suggest adding classifiers for Python Versions to setup.py
. Here's a list of classifiers. It might also be nice to have this compatibility information in the README as well.
Thanks for pass2csv, have a good one :).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.