-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import from and Export to csv/json file #660
Comments
Can you please send a sample csv too |
Sorry, did not check the inbox in days! ScreenshotCSV Format
JSON Format {
"id": "6b87d50b-3ca9-44bc-bbd4-b05e0146937e",
"organizationId": null,
"folderId": null,
"type": 1,
"name": "Example",
"notes": "note-example",
"favorite": false,
"fields": [
{
"name": "custom-field-text",
"value": "custom-text",
"type": 0
},
{
"name": "custom-field-hidden",
"value": "custom-field",
"type": 1
},
{
"name": "custome-field-boolean",
"value": "true",
"type": 2
},
{
"name": "custom-field-linked",
"value": null,
"type": 3
}
],
"login": {
"uris": [
{
"match": null,
"uri": "uri-example"
},
{
"match": null,
"uri": "uri-example-2"
}
],
"username": "username",
"password": "password",
"totp": "totp-example"
},
"collectionIds": null
}, I hope these helps. Again, sorry for the late reply @yogeshpaliyal . |
Hi @yogeshpaliyal, I would like to work on this issue. Can you please assign it to me? |
Sure |
@divyampahujaa Are you working on this? |
@yogeshpaliyal Busy with university exams for the next couple of weeks. I will work on it afterwards :) |
Cool, all the best for the exams. |
Are you working on this? |
No, I am not working |
Hi @yogeshpaliyal , can I work on this issue? |
@HimanshuC22 sure, then I'll assign this to you. |
I was confronted with this dilemma today when I looked for a compatible app to work on my Mac/Linux/Windows boxes. The ability to import/export to a Keepass compatible format from/to Keypass seems like it would expand KeyPass's adoption. At the very least, a CSV File. I've attached a couple of example exports (csv and xml) from KeepassXC. |
Google password csv format uses the name,url,username,password,note fields Convert the bitwarden json to a compatible csv
import json
import csv
# Load Bitwarden JSON file
with open('bitwarden.json', 'r') as file:
data = json.load(file)
# Prepare CSV data
csv_data = []
for item in data.get('items', []):
name = item.get('name', '')
login = item.get('login', {})
# Check if 'uris' is a list and not empty
uris = login.get('uris', [])
if uris and isinstance(uris, list):
url = uris[0].get('uri', '')
else:
url = ''
username = login.get('username', '')
password = login.get('password', '')
note = item.get('notes', '')
csv_data.append([name, url, username, password, note])
# Write CSV file
with open('google_takeout_export.csv', 'w', newline='', encoding='utf-8') as file:
writer = csv.writer(file)
writer.writerow(['name', 'url', 'username', 'password', 'note']) # CSV header
writer.writerows(csv_data)
print("Conversion completed successfully.") A google_takeout_export.csv file will be created use that file in keypass using the google option. Btw keypass has so potential but its useless without auto fill . |
Description
I can't restore my existing passwords from Bitwarden with one click.
Solution
I'd like an option to restore passwords from other major password storing apps like Bitwarden and also export to the same format, so we could restore it to the other password managers.
You could do it by doing:
Example:
CSV format:
JSON format:
The text was updated successfully, but these errors were encountered: