Code Monkey home page Code Monkey logo

ckp's Introduction

Build Status

ckp

Command line utility for Copying Keepass Passwords

Installation

pip install git+https://github.com/pylipp/ckp.git#egg=ckp

On Python >=3.6, I recommend installation via pipx:

pipx install git+https://github.com/pylipp/ckp

Usage

Set up a database at ~/.database.kdbx and add some entries (or move an existing database). Query an entry from the command line by running

ckp <entry>

You're prompted for the master password. If correct, and if the specified entry exists, the password is copied to the system clipboard (check the pyperclip package for system dependencies). The system clipboard is cleared after ten seconds.

Full command line help:

usage: ckp [-h] [-d DATABASE_FILEPATH] entry

Utility to temporarily Copy Keepass Password to system clipboard.

positional arguments:
  entry                 name of the entry to retrieve

optional arguments:
  -h, --help            show this help message and exit
  -d DATABASE_FILEPATH, --database-filepath DATABASE_FILEPATH
                        optional filepath of database. Default:
                        ~/.database.kdbx

Testing

git clone https://github.com/pylipp/ckp
cd ckp
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .
python test.py

Releasing

  • tag latest commit with according version number
  • run git push --tags origin master

ckp's People

Contributors

pylipp avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.