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')

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

# retrieve the associated password
pk.get_entry_password_field(entry).Value

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

# save database
pk.write_to('/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-1.5.0.tar.gz (5.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pykeepass-1.5.0.tar.gz
Algorithm Hash digest
SHA256 b2048aedfa76a9fb1d77dc2f5c83e1c3e550fbcddee79aa8926b5cf7e430a6d1
MD5 245dae3367767372b8e417d459067638
BLAKE2b-256 4b0bf5dd8ce69c02ae3767c992cc8f7e3e4e3802c6d37f6abc43cde9942f0036

See more details on using hashes here.

Supported by

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