DEV Community

Discussion on: Show me your best Open Source project

Collapse
jcoelho profile image
José Coelho • Edited on

GitHub logo jcoelho93 / shell-database

A key value store straight from your terminal

Shell Database

CircleCI PyPI PyPI - Python Version PyPI - Downloads PyPI - License

A key value store straight from your terminal.

Installation

You can install shell-database from pypi.org:

> pip install shell_database
Enter fullscreen mode Exit fullscreen mode

Getting started

Adding a new key value pair

> shdb add name "John Doe"

Adding a new key value pair with encryption

> shdb add password <your_password> --encrypt

Getting the value of a key

> shdb get name
John Doe
Enter fullscreen mode Exit fullscreen mode

Decrypting and encrypted value

> shdb get password
b'51b8684c4dc77da0979f1b647caa707c'
> shdb get password --decrypt
<your_password>
Enter fullscreen mode Exit fullscreen mode

Integrating with other tools

> shdb add az-rg azure-resource-group-123
> az postgres db create --resource-group $(shdb get az-rg) --server-name server_name --name database
Enter fullscreen mode Exit fullscreen mode

License

MIT License

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES…

A key-value data store straight from your terminal.

I developed this because I needed a way to remember secret tokens and Azure info like the resource group name and other long strings.

You can do things like:

$ shdb add —encrypt gitlab-token
$ echo $(shdb get gitlab-token)