Skip to main content

A simple storage cli

Project description

Kaz

This cli lets you easily store binary and text items and retrieve them later.

Installation

pip install kaz

Usage

Basic usage:

kaz set key value
kaz get key # value

You can also use stdin and stdout:

kaz set license < license.txt
kaz get license > license2.txt

which also works with binary blobs:

kaz set "profile pic" < profile-picture.png

Commands

$ kaz --help
Usage: kaz [OPTIONS] COMMAND [ARGS]...

  Simple local storage cli

Options:
  --help  Show this message and exit.

Commands:
  clear   Remove all items
  get     Print the value of an item
  list    Show all stashed items
  remove  Remove an item
  set     Store a value in an item

Autocompletion

To enable autocompletion, source the script in the autocomplete directory that corresponds to your shell. Currently bash, fish and zsh are supported.

For bash, this would look like:

wget https://raw.githubusercontent.com/clabe45/kaz/master/autocomplete/kaz-autocomplete-bash.sh
. kaz-autocomplete-bash.sh

You may want to add the last command to your ~/.bashrc.

Contributing

  1. Fork this repo!
  2. Clone: git clone https://github.com/YOUR-USERNAME/kaz.git
  3. Pick an issue or open a new one if you have a feature idea.
  4. Preferably check out a new feature branch: git checkout -b feature/my-feature (makes the PR process easier)
  5. Implement your change.
  • Try to keep your commits atomic.
  1. Push: git push origin FEATURE-BRANCH
  2. Create a new pull request.

License

Licensed under GNU GPL v3.

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

kaz-0.3.0.post2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

kaz-0.3.0.post2-py3-none-any.whl (17.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