Skip to main content

Persistent key-value store for the command line

Project description

kvsh, a command-line key-value store for the shell

  • Cross-shell persistence
  • Easy UI, with tab completion

kv for quick operations

$ kv hello world
$ kv hello
world

kvv for advanced functionality

$ kv hello world
$ kv foo food
$ kv bar bartender
$ kvv env # Print key=value iff key is a valid environment variable name
hello=world
foo=food
bar=bartender
$ kvv remove hello
$ kvv env
hello=world
$ kvv clear

Installation

Recommended installation with pipx:

pipx install kvsh

Tab completion with argcomplete:

pipx install argcomplete
eval "$(register-python-argcomplete kv)"
eval "$(register-python-argcomplete kvv)"

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

kvsh-0.1.2.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

kvsh-0.1.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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