Skip to main content

Python API and CLI for KeePassX

Project description

Python keepassx is a python library and a command line utility for working with keepassx database files (.kdb files). This allow you to programatically access your usernames/passwords instead of having to use the KeePassX GUI.

The keepassx module currently supports read only operations (adding entries and creating kdb files are a planned feature). You can list your entries:

$ kp -d password.kdb list
Password:
Entries:

+---------+----------------------------------+-----------+
| Title   |               Uuid               | GroupName |
+---------+----------------------------------+-----------+
| mytitle | c4d301502050cd695e353b16094be4a7 | Internet  |
+---------+----------------------------------+-----------+

You can also get a username/password:

$ kp -d password.kdb get username mytitle
Password:
myusername

 $ kp -d password.kdb get p mytitle
 Password:
 Password has been copied to clipboard.

You can use either the Title or the Uuid to refer to an entry when getting a username/password.

Python KeepassX is an early project and is undergoing constant development.

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

keepassx-0.0.1.tar.gz (14.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