Low-level library to interact with keepass databases (supports the v.4 format)
This library allows you to write entries to a KeePass database
import pykeepass # load database kdb = pykeepass.open( 'db.kdbx', password='somePassw0rd' ).__enter__() # find any group by its name group = pykeepass.find_group_by_name(kdb.tree, 'folder1') # find any entry by its title entry = pykeepass.find_entry(kdb.tree, 'test') # retrieve the associated password pykeepass.get_entry_password_field(entry).Value # write a new entry pykeepass.create_entry( kdb.tree, group, 'new_entry', 'myusername', 'myPassw0rdXX' ) # save database with open('/tmp/pykeepass.kdbx', 'w+') as f: pykeepass.write_to(f)
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pykeepass-1.2.tar.gz (4.8 kB)||File type Source||Python version None||Upload date||Hashes View|