Giter Site home page Giter Site logo

bitwarden-to-keepass's People

Contributors

dependabot[bot] avatar firecat53 avatar k3karthic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

firecat53

bitwarden-to-keepass's Issues

CLI option --sync doesn't need an argument

Currently, the --sync option has to be called --sync True which is
unnecessary. It should be able to be just a flag --sync. Thanks!

Edit: check out the store_true option for argparse

AttributeError: module 'convert' has no attribute 'main'

After installing to a fresh venv, I get the following error:

$ python -m venv venv
$ source venv/bin/activate
$ pip install .
$ bw2kp -h
Traceback (most recent call last):
  File "/home/firecat53/docs/family/scott/src/projects/bitwarden-to-keepass/venv/bin/bw2kp", line 33, in <module>
	sys.exit(load_entry_point('bitwarden-to-keepass==0.1.6', 'console_scripts', 'bw2kp')())
  File "/home/firecat53/docs/family/scott/src/projects/bitwarden-to-keepass/venv/bin/bw2kp", line 25, in importlib_load_entry_point
	return next(matches).load()
  File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 173, in load
	return functools.reduce(getattr, attrs, module)
AttributeError: module 'convert' has no attribute 'main'

Thanks!

AttributeError on run

Hi, using a JSON dump from a Vaultwarden instance, I get the following error :

$ bw2kp -o bitwarden.kdbx -i mydump.json
Master Password: 

Fetching folders...
Fetching items...
Traceback (most recent call last):
  File "/home/administrateur/.local/bin/bw2kp", line 8, in <module>
    sys.exit(main())
  File "/home/administrateur/.local/lib/python3.10/site-packages/bitwarden_to_keepass/convert.py", line 328, in main
    convert(vars(args))
  File "/home/administrateur/.local/lib/python3.10/site-packages/bitwarden_to_keepass/convert.py", line 272, in convert
    kp_db.items_to_entries(bw_vault.fetch_bitwarden_items())
  File "/home/administrateur/.local/lib/python3.10/site-packages/bitwarden_to_keepass/convert.py", line 217, in items_to_entries
    self.kp_db.add_entry(dest_group, title, username, password, url=url, notes=notes, otp=totp)
  File "/home/administrateur/.local/lib/python3.10/site-packages/pykeepass/pykeepass.py", line 531, in add_entry
    destination_group.append(entry)
AttributeError: 'NoneType' object has no attribute 'append'

NoneType has no length

if len(item["login"].get("uris", [])) > 0:
TypeError: object of type 'NoneType' has no len()

How do I fix this?

feature request: run the script unsupervised

Hi,

I'm looking to set up a daily export from Bitwarden to a kdbx file, for which your scripts seems to be good tool. However, for the daily job I have in mind, there are a few modifications required. I'd like to check with you how you prefer this: (a) I can fork your repo and just do my modifications, you don't need to be bothered by it; (b) I can send you a PR with some modifications; (c) I can let you know my feature request and you have a look.

This are the modifications I'm thinking about:

  1. Get the master password from an environment variable, and only request user input if the environment variable is not set.
  2. Currently the script crashes if it finds two items in the same folder with the same name. Some better exception handling of this would be nice, i.e. appending "copy1" or something to the name in case this happens.

Kind regards,

Cannot install/run

In the directory I have downloaded convert.py to:

convert.py [-h] /home/anarcho/Downloads/bitwarden_export_20230912103911.json -o pass.bdbx
convert.py: command not found

If I try python, pip3 or pipx I get:

Neither 'setup.py' nor 'pyproject.toml' found

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.