k3karthic / bitwarden-to-keepass Goto Github PK
View Code? Open in Web Editor NEWConvert BitWarden Vault into a KeePass Database (kdbx)
License: MIT License
Convert BitWarden Vault into a KeePass Database (kdbx)
License: MIT License
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
I have noticed that Bitwarden Authenticator TOTP codes (https://bitwarden.com/help/authenticator-keys/) don't seem to be exported to the kdbx file. Can you confirm this is the case or am I missing it somehow? If it is indeed missing, is there any chance it might be included in the export?
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!
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'
if len(item["login"].get("uris", [])) > 0:
TypeError: object of type 'NoneType' has no len()
How do I fix this?
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:
Kind regards,
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
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.