krz/yoshi-cli
A password manager for the command line.
clone: git clone https://gitbay.org/krz/yoshi-cli.git
fe31857c7d5b90c90784d83b12326c0ba80ff019
verified · cmc
author: Christian Cleberg <hello@cleberg.net> · 2024-11-07T05:27:55Z
yoshi/__main__.py | 4 ++++ yoshi/account.py | 2 +- yoshi/cli.py | 7 ++++--- yoshi/process.py | 2 +- yoshi_cli.egg-info/PKG-INFO | 3 +-- 5 files changed, 11 insertions(+), 7 deletions(-) @@ -1,3 +1,7 @@ +""" +Entry point for the yoshi cli app. +""" + if __name__ == "__main__": from yoshi.cli import yoshi yoshi() @@ -5,7 +5,7 @@ Modules imported: - database: A custom module providing database functionality. """ -import yoshi.database as database +from yoshi import database class Account: @@ -5,11 +5,12 @@ It imports the required modules and sets up a parser with basic options for demo """ import argparse -import yoshi.crypto as crypto -import yoshi.database as database -import yoshi.process as process +from yoshi import crypto, database, process def yoshi(): + """ + CLI entry point logic, used to parse user inputs. + """ parser = argparse.ArgumentParser( description='Manage your username and passwords via a convenient CLI vault.' ) @@ -28,7 +28,7 @@ import random import uuid from prettytable import PrettyTable from yoshi.account import Account -import yoshi.database as database +from yoshi import database def generate_characters(n: int) -> list: @@ -48,8 +48,7 @@ To run the script locally, run the following commands: ```bash git clone REPO_URL cd yoshi -pip3 install -r requirements.txt -python3 src/yoshi/cli.py --help +pip install . ``` # Usage