GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MarkusFreitag/python3-keepasshttp: Python3 port of https://github.com/jobevers/python-keepasshttp.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
keepasshttp
keepasshttp
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Keepass Protocol.ipynb
Keepass Protocol.ipynb
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

Build Status Coverage Status

python3-keepasshttp

Access passwords stored in keepass using the http plugin

Installation

pip3 install git+https://github.com/MarkusFreitag/python3-keepasshttp.git

Usage

Python module

import keepasshttp

session = keepasshttp.start('my_app_name')
logins = session.get_logins('http://www.amazon.com')
print(logins)

Which will output something like:

[{u'Login': '[email protected]',
  u'Name': 'Amazon',
  u'Password': Password(*****),
  u'Uuid': '0da19f691e4ab51c11433f809695c84e'}]

The password field is protected with a thin wrapper so that it isn't accidently printed. The actual value of the password can be accessed like

logins[0]['Password'].value

CLI tool

The CLI tools provides the possibility to search for an entry.

$ kphttp-cli --help
Usage: kphttp-cli [OPTIONS] COMMAND [ARGS]...

  Interact with KeePass using the KeePassHTTP plugin

Options:
  --help  Show this message and exit.

Commands:
  get  Search for an entry.
$ kphttp-cli get --help
Usage: kphttp-cli get [OPTIONS] APPNAME URL

  Search for an entry.

Options:
  --list                          List all matches instead of only the first.
  --output [Name|Login|Password]  Specify which data should be printed.
  --plaintext                     Print out the password - BE CAREFUL
  --help                          Show this message and exit.

Notes

This library is based based off of the keepasshttp author's Protocol Summary and the Javascript Client Implementation

I kept a copy of the notebook I used while playing around with the protocol Keepass Protocol for reference.

Installing http server for keepassx

Versions of keepassx have been written that port the functionality of the keepasshttp plugin. Check out keepassx/keepassx#111 for the latest info.

Related projects

https://github.com/ccryx/python-keephasshttpc

About

Python3 port of https://github.com/jobevers/python-keepasshttp.

Topics

keepasshttppython3

Resources

Readme
Unlicense
Activity

Stars

1 star

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.