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
- Fork this repo!
- Clone:
git clone https://github.com/YOUR-USERNAME/kaz.git
- Pick an issue or open a new one if you have a feature idea.
- Preferably check out a new feature branch:
git checkout -b feature/my-feature
(makes the PR process easier) - Implement your change.
- Try to keep your commits atomic.
- Push:
git push origin FEATURE-BRANCH
- Create a new pull request.
License
Licensed under GNU GPL v3.
Project details
Release history Release notifications | RSS feed
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.post1.tar.gz
(3.9 kB
view hashes)
Built Distribution
kaz-0.3.0.post1-py3-none-any.whl
(17.1 kB
view hashes)
Close
Hashes for kaz-0.3.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0caaa7fd81a82e2601413bfb2785694e37fd59e0141dec8d2dc8ebf86e85bbf6 |
|
MD5 | 22bfd130178e087273d4b3b294d3a9ee |
|
BLAKE2b-256 | 159f0c2e0558dbe614641b547ecf5ba6a311b6c75081d0fd6e68e4690451a29f |