A tools to store and recall useful commands, specifically created to assist forgetful individuals
Project description
CStore
CStore or Command Store is an open text CLI software based on Python, which allows you to easily save commands that you may forget, and then search and retrieve them using keywords, descriptions, or tags.
CStore is designed as a secure place to store passwords and access tokens. While it's common to save such items in text files on the local system, this practice is not secure. With CStore, you can safely store, search, and retrieve these sensitive items. This feature is particularly useful for terminal enthusiasts and server administrators. The stored commands are securely encrypted and saved in a database, and can only be accessed with a password. Furthermore, the commands stored in CStore are not recorded in the terminal history, ensuring maximum security.
Key Features
- Easy store & retrieve: Easily save and retrieve commands you frequently use.
- Secure store: Securely store passwords and access tokens.
- Powerful Search: Search and retrieve commands using keywords, descriptions, or tags.
Details
CStore also known as Command Store, is an open-source command-line interface (CLI) software built with Python. It provides an easy way to save commands that you might forget and enables you to search and retrieve them based on command text, descriptions, or tags.
CStore serves as a secure repository for storing passwords and access tokens. While it's common to store such sensitive information in local text files, it is not a secure practice. With the CStore feature, you can conveniently and safely store, search, and retrieve these items. This functionality is particularly valuable for terminal enthusiasts and server administrators. Commands are securely encrypted, stored in a database, and can only be accessed with a password. Importantly, commands stored in CStore are not recorded in the terminal history, ensuring enhanced security during both saving and recovery processes.
Each command can consist of up to 500 characters, and you can provide a description of up to 1000 characters. Additionally, you have the option to assign tags to each command. After a suitable recovery period, you can enter a portion of the command or its description into CStore and obtain a list of related commands to choose from. The selected command is then conveniently saved to the clipboard, ready for pasting wherever you need it.
By utilizing the tags you define, you can retrieve a list of commands associated with a specific tag or filter search results using tags. This allows for better organization and efficient retrieval of commands based on relevant categories.
Installation
$ pip install cstore
Usage
Searching and Filtering Commands
To search for a command or filter commands based on a specific keyword or description, just type cstore and enter! or use the following command:
$ cstore -c "<part of target command or description>"
To search and filter commands based on tags, use the following command (you can use multiple tags):
$ cstore -c "<part of target command or description>" -t <tag name>
Managing Tags
To see the list of available tags and retrieve a list of commands related to a tag, use the following command:
$ cstore tags
Adding New Commands
To add a new command, use the following command:
$ cstore -ac "<your command>"
You can add a description to the command using the --desc option:
$ cstore -ac "<your command>" --desc "<your command description>"
You can also add tags to the command using the -t option (you can add multiple tags):
$ cstore -ac "<your command>" -t <tag name>
for example
`$ cstore -ac "docker ps --all" --desc "show both running and stopped containers" -t docker
adding Secure Commands (passwords & tokens)
To add a command in secure mode use the --secret option. In secure mode, you cannot add a description. Instead, use the command itself to provide a name for your secure command.:
$ cstore -ac "<your command>" --secret
Deleting Commands
To delete a commands, use the following command:
$ cstore -dc "<part of command or description that you want to delete>"
To delete all commands associated with a specific tag, use the following command:
$ cstore -dt <tag name>
To delete all saved commands, use the following command:
$ cstore flush
Command Information
To display information about a command, use the following command:
$ cstore -sc "<part of command or description>"
Importing Commands
You can define commands as a JSON file and import them using the import command. To import commands from a JSON file, use the following command:
$ cstore import --path "<your json file path>"
Join Us Today!
Upcoming Features and Improvements for "CStore"
- Export commands: Ability to export commands in general or by specific tags.
- Command and tag editing: Edit existing commands and tags within "CStore."
- Completing verbose: Improved verbose mode for better command execution understanding. ( Code structure and comments: Enhancing code structure and adding comprehensive comments.
- Join us in shaping the future of "CStore" by contributing to these exciting features and improvements. Stay tuned for updates!
Special thanks to the developers of the following packages:
- pydantic
- typer
- cryptocode
- clipboard
- simple_term_menu
- rich
- SQLAlchemy
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
Built Distribution
File details
Details for the file cstore-0.6.10.tar.gz
.
File metadata
- Download URL: cstore-0.6.10.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 030291828ebe970f1c72b52cb1590ac5876532de11040dbb0059c84a973eb814 |
|
MD5 | 028d0c65ae341b529c714415613999f4 |
|
BLAKE2b-256 | e6363a4f5e2a91fc6005cb4fef115ee3a4e15942957d4e7713bbb2ed51db7e98 |
File details
Details for the file cstore-0.6.10-py3-none-any.whl
.
File metadata
- Download URL: cstore-0.6.10-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dce93dffe7e60da9428ce1b5969d6cbedf7f7f186c6e9ecefadd268294b8dc6 |
|
MD5 | a42f759699af1241a8fa159b88d61467 |
|
BLAKE2b-256 | eda3fe7424dea362c3dcf27f6184c9aa6ab32ffa440544c9643c6613236c6769 |