Git Product home page Git Product logo

pass2csv's People

Contributors

dependabot[bot] avatar fernandocollova avatar ndarilek avatar reinefjord avatar scriptkiddi avatar stonewareslord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pass2csv's Issues

[Question] Where to import/export?

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

Windows line feeds created on Linux

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!

README has wrong installation instructions

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
`

Too dirty to make a pull request with it

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. :)

Nice stuff!

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 :)

[shell]: Unknown command: pass2csv

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?

Have a setup.py entry point for more reliable pipx installations

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

Encoding error

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

Minimum Python version

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 :).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.