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 works with binary files:
kaz set "profile pic" < profile-picture.png
Commands
$ kaz --help
Usage: kaz [OPTIONS] COMMAND [ARGS]...
Simple local storage cli
Options:
-h, --help Show this message and exit.
-v, --version Show the version and exit.
Commands:
get Print the value of an item.
list Show all items that match `pattern`.
remove Remove an item.
set Bind a name to a value.
Autocompletion
To enable autocompletion, source the script in the autocomplete directory that corresponds to your terminal. Currently bash, fish and zsh are supported.
For bash, this would be
wget https://raw.githubusercontent.com/clabe45/kaz/master/autocomplete/kaz-autocomplete-bash.sh
. kaz-autocomplete-bash.sh
Add the second command to your ~/.bashrc to enable it automatically.
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.
Metadata
Release files for kaz 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaz-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for kaz-0.4.0-py3-none-any.whl |
Release files / kaz-0.4.0-py3-none-any.whl
| Download URL | kaz-0.4.0-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13b00331db6e17be71b56b2f99af6f93a555caf590b06d5dfb39154b0704f6ab
|
|
BLAKE2b-256 checksum How to use checksums |
8927abcc1d82ca165299df8ba767cda41e03ad5b18599f37085afff4c0c3c901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3
|
Security for kaz 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.