Use create_database() from PyKeePass.

This commit is contained in:
Markus Birth 2021-08-16 18:19:05 +02:00
parent ea660f23d0
commit 067efa5948
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 2 additions and 4 deletions

View File

@ -5,12 +5,10 @@ import datetime
import shutil
import json
from pykeepass import PyKeePass
from pykeepass import PyKeePass, create_database
from urllib.parse import urlparse
shutil.copyfile("in.kdbx", "out.kdbx")
kp = PyKeePass("out.kdbx", password="test")
kp = create_database("out.kdbx", password="test")
groupLabels = {
"passwords.Password": "Passwords",

BIN
in.kdbx

Binary file not shown.