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

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)

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-1.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file pykeepass-1.2.tar.gz.

File metadata

  • Download URL: pykeepass-1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pykeepass-1.2.tar.gz
Algorithm Hash digest
SHA256 5c81d69d265370568e11e8548fa9c28b76e111e634c57dc54a823089e6090b0c
MD5 0e425312eb4b1ac4736ae07645953c49
BLAKE2b-256 b7b83fb9cd8114b43439efdc6be41a616d9c9eec32f864f64e5544321f81137d

See more details on using hashes here.

Supported by

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