Saravanan666/pypi-org huggingface dataset:
Package: terminal-colored-print
Terminal-Colored-PrintAboutA small module that allows to simply decorate strings on Linux terminals and on Windows Terminal. I personally use it for multi-threaded project, it helps me recognize which thread is actually talking.Compatible with Python > 2.7pip install terminal-colored-printYou can select the foreground color (text color), background color and format (text style) for your Text. Foreground and background color values are between 0 and 255, format can be Bold, Italic, Underline, Strikethrough, Blinking, Reversed and DoubleUnderline, any combination of them is accepted!How to useHow to use
Package: terminalcolorpy
terminalcolorpyA lightweight, dependency-free package to colorize your terminal text.OverviewThis is a package that utilizes ANSI escape sequences to colorize your stdout, terminal, printed messages and what not. The key-features include,Fully tested with pytestFully documented & type-hintedDependency-freeInstallationThe required Python version for this module is 3.10 or above# Linux/MacOS
python3 -m pip install terminalcolorpy

# Windows
py -m pip install terminalcolorpyUsageThe package consists of a few functions which are explained down below. In case your terminal
(which is common with Windows) doesn't display the color at all, please run the following code,importosos.system('')# your code onwardsflip_text(text: str) -> str:->  Flip text to characters that are upsidedown version of that letter.prainbow(text: str) -> str:->  Returns text in colors of the rainbow (RGB 1-255, not CSPRNG).blink(message: str, length: float = 1, new_message: str = " ") -> None:->  Print the message then replace it with a new message.


    Beware, this function is **blocking** because of the print statement. If you need to run this function
    synchronously, please refer to the accepted answer of this S/O question,
    https://stackoverflow.com/questions/54685210/calling-sync-functions-from-async-function

    Args:
        message (str): message to be printed
        length (float): how long should the message stay
        new_message (str): message to be displayed after the timer expires (default is nothing)printcolor(colored_kwargs: dict = None, **kwargs) -> None:->  Implements a shortcut for using the builtin function print with this modules colored function.

    Args:
        colored_kwargs (dict): keyword arguments for this modules colored function
        **kwargs: keyword arguments for the builtin print functiondef colored(
    text: str,
    color: list | tuple | str,
    highlight: list | tuple | str | None = None,
    markup: list | tuple | None = None,
) -> str:->  Parse color arguments and return the applied version to the text.

    Args:
        text (str): text to parse
        color (Union[list, tuple, str]): color for the text, accepts RGB, hex (str) and English words
        highlight ([list, tuple, str]): highlight for the text, accepts RGB, hex (str) and English words
        markup ([list, tuple]): markup from _Colors.color_dict
Package: terminal-colors
My goal in writing this script was to provide all the functionality of all the
various perl/sh scripts found around the web in one place with some additional
bells and whistles.It automatically detects 8, 16, 88, 256 color capabilities (via ncurses) and
displays the appropriate color charts. It can display the colors as blocks or
(2d) cubes optionally with color values overlaid in int or hex values.  It can
show the full rgb text string as well. It can also show the display with a
vertical (default) or horizontal orientation or have additional padding.It also works as a utility for converting between 256 and 88 color values.
Package: terminal-formatter
terminal formatterThe Terminal Formatter Library provides a few easy-to-use functions for formatting terminal-printed
text with custom functions and wrappers for pprintpp and colored. This library is mostly
intended for personal use and might introduce breaking changes at any point.With this library, you can:Highlight textWrap text inside a box to have it stand out even in large amounts of outputPretty-print data structuresIndent blocks of textColorize text and backgrounds for colored terminal printinginstallationThe library can be installed withpip install terminal-formatterIt then can be imported in your script withimport terminal-formatteravailable functionsheading(text: str) -> str- Formats headings, shortcut for box() inside highlight() function.highlight(text: str) -> str- Highlight text by changing its color toorange_1.box(text: str) -> str- Wraps text inside a box of#characters to have it stand out of even large amounts of output.pretty(obj) -> str- Prettyprint a data structure - wraps pprintpp'sformatfunction.indent(text: str, amount: int = 1, indent_character: str = ' ') -> str- Indent text by increments of four.colorize(text: str, color: str) -> str- Colorize given text for colored terminal printing.colorize_bg(text: str, color: str) -> str- Colorize given text's background for colored terminal printing.licenseThis library is licensed under the MIT License. See the LICENSE file for details.
Package: terminalforms
TerminalFormsAdd forms to your terminal applicationsInstallationpipinstallterminalformsnote: Depending on your python installation, the command mayt vary. For example, if you are using python3, you may need to usepip3instead ofpip.UsagefromterminalformsimportForm,Field,Checkbox,Radio,Select,Text,Password,Submitform=Form(title="Example Form",description="Please fill out the following information:",content=[Text("Welcome to the example form!"),Field("Name"),Checkbox("Agreement","Do you agree to the terms and conditions?"),Select("Fruit","Select your favorite fruit:",["Apple","Banana","Orange"]),Radio("Gender","Select your gender:",["Male","Female","Other"]),Password("Password"),Submit("Submit")])form.show()answers=form.get_all()print(answers)name=form.get("Name")print(name)DocumentationFormParameterstitle- The title of the formdescription- The description of the formcontent- The content of the formMethodsshow()- Show the formget(name)- Get the value of a fieldget_all()- Get all the values of the fieldsset(name, value)- Set the value of a fieldclear()- Clear all the values of the fieldsFieldParametersname- The name of the fieldvalue- The value of the fieldMethodsask()- Ask the user for the value of the fieldTextParameterstext- The text of the textMethodstext()- Show the textCheckboxParametersname- The name of the checkboxquestion- The question of the checkboxMethodsask()- Ask the user for the value of the checkboxRadioParametersname- The name of the radioquestion- The question of the radiooptions- The options of the radioMethodsask()- Ask the user for the value of the radioSelectParametersname- The name of the selectquestion- The question of the selectoptions- The options of the selectMethodsask()- Ask the user for the value of the selectPasswordParametersname- The name of the passwordvalue- The value of the passwordmask- The mask of the passwordMethodsask()- Ask the user for the value of the passwordSubmitParametersname- The name of the submitMethodsask()- Ask the user for the value of the submitLicenseMIT License
Package: terminalgpt-pro
[TerminalGPT-Pro]Welcome to TerminalGPT-Pro, the terminal-based ChatGPT personal assistant app!
With TerminalGPT-Pro, you can easily interact with the OpenAI GPT-3.5 and GPT-4 language models.Whether you need help with a quick question or want to explore a complex topic, TerminalGPT-Pro is here to assist you. Simply enter your query and TerminalGPT-Pro will provide you with the best answer possible based on its extensive knowledge base.Why?Some advantages of using TerminalGPT-Pro over the chatGPT browser-based app:It doesn't disconnect like the browser-based app, so you can leave it running in a terminal session on the side without losing context.It's highly available and can be used whenever you need it.It's faster with replies than the browser-based app.You can use TerminalGPT-Pro with your IDE terminal, which means you won't have to constantly switch between your browser and your IDE when you have questions.TerminalGPT-Pro's answers are tailored to your machine's operating system, distribution, and chip-set architectureDoesn't use your conversation data for training the model (unlike the browser-based app).Your conversations are stored locally on your machine, so only you can access them.Pre-requisitesPython 3.6 or higherAn OpenAI Account and API key.Sign up athttps://beta.openai.com/signupusing email or Google/Microsoft account.Go tohttps://beta.openai.com/account/api-keysor click on "View API keys" in the menu to get your API key.InstallationInstall the latest TerminalGPT-Pro with pip install.pipinstallterminalgpt(optional-U--user)Now you haveterminalgptcommand available in your terminal. Run the following install command to configure the app.terminalgptinstallEnter your OpenAI API key when prompted and press enter.Choose one of the models below as the default model. it can be overridden with the-m --modelflag later.Choose a printing style ('markdown' is recommended)That's it! You're ready to use TerminalGPT!
You can now start a new conversation withterminalgpt newor load a previous conversation withterminalgpt load. Also you can reinstall withterminalgpt installor delete previous conversations withterminalgpt delete.UsageTL;DRUsage:terminalgpt[OPTIONS]COMMAND[ARGS]...*~TerminalGPT-Pro-YourPersonalTerminalAssistant~*

Options:--versionShowtheversionandexit.-m,--model[gpt-3.5-turbo|gpt-3.5-turbo-16k|gpt-4|gpt-4-32k]Chooseamodeltouse.[default:gpt-3.5-turbo]-s,--style[markdown|plain]Outputstyle.[default:markdown]--helpShowthismessageandexit.

Commands:deleteChooseapreviousconversationtodelete.installCreatingasecretapikeyforthechatbot.loadChooseapreviousconversationtoload.newStartanewconversation.one-shotOneshotquestionanswer.NewStart a new conversation:terminalgptnewOne-ShotOne shot question to get a fast answer in the terminal.terminalgptone-shot"What is the meaning of life?"LoadLoad previous conversations:terminalgptloadDeleteDelete previous conversations:terminalgptdelete
Package: terminal-graphics
AboutMake terminal graphics fun and easy! :P🚧 🚧 🚧 🚧 🚧Under construction - DO NOT USE🚧 🚧 🚧 🚧 🚧ExamplesCommand line$ terminal_graphics show examples/lenna.png
$ terminal_graphics info$ terminal_graphics show $(fzf)Scriptingfromterminal_graphicsimportwrite_filewrite_file('examples/lenna.png')print()
Package: terminal-img
ImgDisplay Images in your terminal with pythonInstallationThe package can be installed viapippipinstallterminal-imgQuick StartThe library is really simple to get started with. Here's is an example of how you display an imagefromimageimportDrawImageimage=DrawImage.from_file("image.png")image.draw_image()You can also use a url if you dont have the file locally storedimage=DrawImage.from_url("url")image.draw_image()The library can also be used with PIL imagesfromPILimportImagefromimageimportDrawImageimg=DrawImage(Image.open("img.png"))img.draw_image()CLIimg <file or url>Methodsimage.DrawImageimage: The PIL imagesize(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24image.DrawImage.from_filefilename: The name of the file containing the imagesize(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24image.DrawImage.from_urlurl: The url of the imagesize(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24Special thanks to@AnonymouX47❤
Package: terminal-in-colors
terminal-in-colorsGive color to your terminal, using 256 colors or RGB, use bold, italic, underline, among others, in a simple and uncomplicated way.InstalationYou can install simply using a command, thankPyPi.$pipinstalltermina-in-colorsUsagefromterminal_in_color.ColorTerminalimportColorTerminalstring="Hi"c=ColorTerminal()print(c.paint(string,color="red",blink="slow"))Methods Availablepaint(string, color, bold, italic, underline, overline, doubleunderline, blink, background, opaque)- Formats the string using the available options, returns a string.string: text to apply format.color: color by name like "red", by number, or RGB using list of numbers [0, 0, 0].bold: True or False.italic: True or False .underline: True or False.overline: True or False.doubleunderline: True or False.blink: "slow" or "rapid".background: color by name like "red", by number, or RGB using list of numbers [0, 0, 0].opaque: True or False.find(color, exact)- Searches by color.color: name of color, integer, and returns list to RGB.exact: True or False, optional.clear()- return string to clear format colors.print_all()- Print all 256 colors.`Documentation->https://kurotom.github.io/terminal_in_colors/
Package: terminal-layout
terminal_layoutThe project help you to quickly build layouts in terminal(这个一个命令行ui布局工具)Some extensions base on terminal_layoutprogresschoice** video demo **linkAll
DemoGithubDocshttps://asciinema.org/a/226120installpipinstallterminal-layoutDependenciesPython 3.5+ (maybe 3.4)Linux, OS X, and Windows systems.Python SupportPythonterminal_layout2.72.1.x3.5+3.xUsageeasy demo:importtimefromterminal_layoutimport*ctl=LayoutCtl.quick(TableLayout,# table id: root[[TextView('t1','Hello World!',width=Width.fill,back=Back.blue)],# <- row id: root_row_0,[TextView('t2','',fore=Fore.magenta)],# <- row id: root_row_1,],)# or layout=ctl.get_layout()layout=ctl.find_view_by_id('root')layout.set_width(20)# default: auto_re_draw=Truectl.draw()# call delay_set_text() must be set auto_re_draw=True,# otherwise you must start a thread to call re_draw() by yourselfctl.find_view_by_id('t2').delay_set_text('你好,世界!',delay=0.2)time.sleep(0.5)row3=TableRow.quick_init('',[TextView('t3','こんにちは、世界!')])layout.add_view(row3)# If you call draw() with auto_re_draw=True, you must stop()ctl.stop()disable auto_re_drawimporttimefromterminal_layoutimport*ctl=LayoutCtl.quick(TableLayout,# table id: root[[TextView('t1','Hello World!',width=Width.fill,back=Back.blue)],# <- row id: root_row_1,[TextView('t2','',fore=Fore.magenta)],# <- row id: root_row_2,],)layout=ctl.find_view_by_id('root')layout.set_width(20)ctl.draw(auto_re_draw=False)ctl.find_view_by_id('t2').set_text('你好,世界!')ctl.re_draw()time.sleep(0.5)row3=TableRow.quick_init('',[TextView('t3','こんにちは、世界!')])layout.add_view(row3)ctl.re_draw()# don't need call stop()# ctl.stop()use python2 unicode# -*- coding: utf-8 -*-fromterminal_layoutimport*importsysreload(sys)sys.setdefaultencoding('utf-8')ctl=LayoutCtl.quick(TableLayout,[[TextView('',u'中文，你好',back=Back.cyan,width=Width.wrap)],[TextView('',u'中文，你好',back=Back.cyan,width=6)],[TextView('',u'日本語，こんにちは',back=Back.cyan,width=Width.wrap)],])ctl.draw()Propertiesfore & backTextView('','fore',fore=Fore.red)TextView('','back',back=Back.red)styleTextView('','style',style=Style.dim)widthTextView('','width',width=10)weightTextView('','weight',weight=1)gravityTextView('','gravity',gravity=Gravity.left)visibilityTextView('','',visibility=Visibility.visible)ex_style (not support windows)TextView('','ex_style',style=Style.ex_blink)ex_fore & ex_back (not support windows)TextView('','ex_fore',fore=Fore.ex_red_1)TextView('','ex_back',back=Back.ex_red_1)LICENSEGPLv3Thankscolorama: Simple
cross-platform colored terminal text in Pythoncolored: Very simple Python
library for color and formatting in terminal
Package: terminal-markup
terminal-markupRender Markup to Terminal.Inspired bytml.Pros:Faster than alternatvies likerich.Supports background colors and hex.Null-dependency.Install:pipinstallterminal-markup
poetryaddterminal-markupAfter install you can use commandterminal-markup.Examplesfromterminal_markupimportrender# let's render bricksprint(render("[b][color=#f70000 background=yellow] WARNING [/color]:[/b] [purple]Life leads to [i blue underline]Death[/i].[/purple]"))TagsTagDescriptionb,boldBold texti,emItalic textuUnderline textblink--dimDimmed colorrevReversed foreground and background colors[color=<color>],<color name>Set foreground colorNon-existent tags do not cause errors.Common attributesAttributeDescription<color name>,color=<color>Set foreground colorbackground=<color>Set background color{bold|italic|underline|dim|reversed|blink}[={no|off|false|0|...}]Set styleUnknown attributes are ignored.ColorsColor names: black, maroon, green, olive, navy, purple, teal, silver, grey, red, lime, yellow, blue, fuchsia, aqua, white (first 16 colors fromhere). Also supported HEX-codes like#87CEEB.Tags Escaping\[- escaped[.Case InsensetiveTag names, attributes and color names are case insensetive.
Package: terminalmdb
TerminalMdBTerminalMdB (http://pypi.python.org/pypi/terminalmdb/0.0.3) is a *NIX command-line interface for the IMdB. It makes use of the excellent API over at www.omdbapi.com to retrievebasic movie information.UsageEither set up an alias:```alias imdb = python path/to/terminalMDB.py```Or preferably use [pip](http://www.pip-installer.org/en/latest/installing.html):```pip install terminalmdb```TerminalMDB can be used with one of two flags:imdb -t "foo" => search by title and return first resultimdb -s "bar" => search by title and return all resultsimdb -i "bar" => search by IMDB IDNotesRequires Python 2.7+Tested on OS X 10.8Cool things can be done with data returned from **TerminalMdB**. Use your imagination!To-Do* Movie showtimes near current location* Actor SearchLicenseTerminalMdB is made available under the [GPL](http://www.gnu.org/licenses/gpl.html) (version 3 or later)
Package: terminal-mines
A command-line variant of Minesweeper in Python.Supports Linux, Mac, and Windows on Python 3.4 or newer. Can be played in most terminal emulators that support colors.
Includes options for custom difficulties and user-specified mine placements.To install use pip:pip install terminal-minesOnce installed, use theminescommand to start a new game.For help, controls, and usage runmines --helpafter installing.If you'd like to setterminal-minesup for local development run these commands:git clone https://github.com/JoelEager/terminal-mines.git
cd terminal-mines
pip install --editable .After doing that theminescommand will point to your cloned copy.terminal-mineswas made using theClickCLI framework.
Package: terminaloverflow
Terminal-OverflowThe command line is a powerful tool, but is not very user friendly. This project will give you an edge and save you time when you need to find, put together, and run a command. Features:Visual ExperienceMouse & keyboard navigationCustomise and link helper containersLeverage multiple data sourcesContentQuickStartDemoContact InfoQuick StartInstall:pipinstallterminaloverflowRun:terminaloverflowOverview Diagram----
## ContactDavid Zentnerdazcode@gmail.com
Package: terminalpackagehamderber
TerminalPackageHamderberHow to add custom commands:Define a function that has an args parameter with its default as None.
ex:
def testcmd(args=None):
print("test worked")Add the command to the command_handler by using the build_commands function.
ex:
command_handler.build_commands([
command_handler.CommandObject(
cmd_name='Test',
cmd_type=command_handler.CommandType.Single,
cmd_help='Test: Help',
cmd_func=testcmd)
])
Package: terminalplay
Terminal Play v 1.0.0Python Module for playing videos in terminal !!Works on both windows and linux :)InstallationpipinstallterminalplayUsagefromterminalplayimport*# Load the video , this may take time on the first run (for a specific video)tp=TerminalPlay("test.mp4",div=0.4)# Div is for reducing the size of the frame , default 0.5tp.play()# Plays the video
Package: terminalplot
Terminalplot is a minimalistic packgage, that only prints points
to the terminal. It does not have any dependencies.InstallationpipinstallterminalplotUsageCommand LineGet size of terminal emulator (tty):$ plot -s
Rows: 25, Columns: 80Plot some points:$ plot -x '-1 0 1 2 3 4' -y '0.1 0.2 0.23 0.234 0.24'APIPlotting a graphfromterminalplotimportplotx=range(100)y=[i**2foriinx]plot(x,y)Get size of current terminal windowfromterminalplotimportget_terminal_sizeget_terminal_size()
Package: terminal-preroll
Terminal Preroll Animation in Pythonterminal-prerollis a small, configurable python module for displaying a visually-pleasing, simplistic terminal animation in the style of a "loading screen", intended for use with small games or as a pre-roll animation for a livestream or video; thus the name. The script requires and accepts only three pieces of information:the location of a file telling it how to draw its banner;the location of a file telling it where to find text for the loading screen itself (the "hype" file), and;the amount of time, in minutes, you want it to last for.The banner and hype files are simple json files, easily-edited, and the script itself handles sizing itself dynamically for your terminal window by use of the python packageblessings, with colours provided bytermcolor.How to installIf you're running python3 on most systems, you can install the package with the following command:pip3installterminal-prerollYou will also need to either download (from this repo) or create a banner file and hype file.How to runAssuming you have your banner and hype files, you can run the script very easily from the command line:python3-mterminal-preroll-t15-bbanner.json-shype.jsonWhere:-tis an argument giving the time-to-run in minutes-bis an argument giving the path to the banner object-sis an argument giving the path to the hype object.Modifying the Banner ObjectThe banner file is a json object, of the rough structure below:a "banner_strings" attribute, itself an array of strings, each representing one line of the banner.a "line_colors" attribute, an array of strings giving a valid terminal color to each line. If there are less entries in this array than lines in banner_strings, the default terminal colour is used.Note:Much like python, the json standard requires two particular characters be "escaped" by adding an extra\before them in the strings in banner_strings. This is important if you are using ASCII art, such as in the example below. In your ASCII art, replace\with\\and"with\"to account for this.Modifying the Hype ObjectThe hype object is very simple - it's just an object of arrays. The "name" of each array is used as the value ofphaseas in the example screenshot, while the strings in each phase's array are scrolled on the bottom as they "complete".The script uses the total number of lines in this object and the time the animation is expected to last to determine how often to scroll the screen and how quickly to update the "current item" loading bar.
Package: terminalprint
QuickstartInstall:pip install terminalprintUsage:>>> table = [
...     ['Heading1', 'Heading2'],
...     ['row1 column1', 'row1 column2'],
...     ['row2 column1', 'row2 column2'],
...     ['row3 column1', 'row3 column2']
... ]
>>>
>>> import terminalprint as tp
>>> tp.table_print(table)
+--------------+--------------+
| Heading1     | Heading2     |
+--------------+--------------+
| row1 column1 | row1 column2 |
| row2 column1 | row2 column2 |
| row3 column1 | row3 column2 |
+--------------+--------------+
>>>Example
Package: terminal-proxy
terminal-proxyProxy management tool for terminal.Installpipinstallterminal-proxyUsageConfigproxyconfig127.0.0.1:1080Turn on# If you are on Windows, please run as administrator# Turn on all proxiesproxyon# Turn on http proxyproxyon--http# Turn on git proxyproxyon--gitShow# Show all proxies. Also supports --http and --gitproxyshowTurn off# Turn off all proxies. Also supports --http and --gitproxyoff