This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ctypes | |
| import os | |
| from os import listdir | |
| from os.path import isfile, isdir, join | |
| from plzz.helper_functions.helper_functions import colors | |
| def __pathname_checker(pathname: str) -> ctypes.Array: | |
| """check if the given path is a directory or a file name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import ast | |
| from pathlib import Path | |
| from plzz.helper_functions.commands_database import functions, commands, commands_map | |
| # ANSI colors | |
| class Colors(object): | |
| def __init__(self) -> None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # update this class by calling `--develop` | |
| class Functions(object): | |
| def __init__(self) -> None: | |
| self.database = { | |
| "upload_to_gist_smartly": "development_tasks:Upload a file or all files under a directory to GIthub Gist.", | |
| "check_hash_smartly": "file_operations:Encrypt a file (MD5) or all the files under a directory and print the key(s).", | |
| "count_word_smartly": "file_operations:Count number of words in a file or under all the files under a given directory.", | |
| "create_random_text_files": "file_operations:Creates a specified number of random text files with random text under a given directory.", | |
| "find_urls_smartly": "file_operations:Find all the links from a text file or all the text files under a directory.", | |
| "format_sentences_smartly": "file_operations:Format each sentences correctly in a english text a file or all files under a directory.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "upload_to_gist_smartly": "development_tasks:Upload a file or all files under a directory to GIthub Gist.", | |
| "check_hash_smartly": "file_operations:Encrypt a file (MD5) or all the files under a directory and print the key(s).", | |
| "count_word_smartly": "file_operations:Count number of words in a file or under all the files under a given directory.", | |
| "create_random_text_files": "file_operations:Creates a specified number of random text files with random text under a given directory.", | |
| "find_urls_smartly": "file_operations:Find all the links from a text file or all the text files under a directory.", | |
| "format_sentences_smartly": "file_operations:Format each sentences correctly in a english text a file or all files under a directory.", | |
| "generate_TOC_smartly": "file_operations:Generate Table of contents from a given markdown file or all the markdown files under a directory.", | |
| "create_lorem_ipsum_file": "file_operations:Creates a Lorem Ipsum file with a specified number of lines.", | |