Skip to main content

Low-level library to interact with keepass databases (supports the v.4 format)

Project description

This library allows you to write entries to a KeePass database

from pykeepass import PyKeePass

# load database
kp = PyKeePass(
   'db.kdbx',
   password='somePassw0rd'
)

# find any group by its name
group = pk.find_group_by_name('folder1')

# get the entries in a group
group.entries

# find any entry by its title
entry = pk.find_entry_by_title('test')

# retrieve the associated password
entry.password

# update an entry
entry.notes = 'this is a test'

# write a new entry
pk.create_entry(
   group,
   'new_entry',
   'myusername',
   'myPassw0rdXX'
)

# save database
pk.save('/tmp/pykeepass.kdbx')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykeepass-2.2.1.tar.gz (8.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page