Saravanan666/pypi-org huggingface dataset:
Package: termkit
Command Line Tools with... ease.IntroductionTermkit is a Python framework designed for building command line interface applications using functions
and type hints[PEP 484].Solely written usingPython Standard Libraryand will always be to ensure
minimal dependency footprint within your project.FeaturesBuild CLI Tools from functional codeCreate fast prototypes using implicit argumentsCompatible withargcompletefor autocompletionUsageTo get started, follow these steps:1. Install Termkit using pip$pipinstalltermkit2. Test it with given example# app.pyfromtermkitimportTermkitapp=Termkit()@app.command()defgreet(name,count=2):for_inrange(count):print(name)if__name__=="__main__":app()$python3./app.py"Hello Termkit"--count3HelloTermkit
HelloTermkit
HelloTermkitWork in Progress Disclaimer🛠️Please Note: This documentation is a work in progress.🛠️Termkit is constantly evolving, and we are actively working on expanding and improving this documentation. Some sections may be incomplete or subject to change. We appreciate your patience and understanding as we continue to enhance this resource.If you have any questions or encounter any issues while using Termkit, please feel free to reach me atcontact@tmahe.dev.Thank you for being a part of Termkit journey! 🌟
Package: terml
termlTerminal Markup Language based on BBCode.Inspired byGo:tmlandPython:rich.Installation:pipinstallterml
poetryaddtermlExamplesfromtermlimportformatprint(format("[b][color=#f70000 background=yellow] WARNING [/color]:[/b] [magenta]Life leads to [i blue underline]Death[/i].[/magenta]"))TagsTagDescriptionbBold textiItalic textuUnderline text[color=<color>],<color name>Set foreground colorNon-existent tags do not cause errors.Common attributesAttributeDescriptionbold,italic,underlineApply the same style<color name>,color=<color>Set foreground colorbackground=<color>Set background colorUnknown attributes are ignored.ColorsColor name:black,red,green,yellow,blue,magenta,cyan,white. Also supported HEX-codes like#deadbeef.
Package: termlog
TermlogTermlog: A terminal logging library for logging data both as lexed text or jsonMotivationI love f-strings and I wanted a method of displaying
beautiful f-strings in command-line interfaces.
However, I needed a way of simultaneously creating a
developer friendly text log and producing structured
text that could be interpreted by a log-shipper in a
clustered environment.Termlog will…wrap print statements with a new method,echoechois fully compatible with print and is meant
to be a drop-in replacementechocan immediately control: color, json,
timestamp, time-format outputs on each invocationAlternatively, aset_configcommand can set the
library to use a specific configuration for each subsequent call toechoUsagefromtermlogimportblue,echo,red,rgb,set_configkey='abc'value=123set_config(color=True,json=False)echo(f'{red(key)}:{blue(value)}')echo(f'{rgb(message=key,red=71,green=61,blue=139)}:{blue(value)}')echo(f'{key}:{blue(value)}',color=True)InstallationTo install termlog, simply run the following.$pipinstalltermlog
Package: term-mark
term-mark • bookmarks for your terminal 📚Bookmark directories to quickly jump to them later, no more tabbing through directories!Installpip install term-markterm-mark --initA shell function, 'tm.zsh' will be created in$HOME/.config/zsh/zsh_functionsand appended as a source to your .zshrc file.You'll likely need to reload your .zshrc file before usingtmsource $HOME/.zshrcYou can now use term-mark with'tm'!Disable GlyphsBy default, glyphs are used for markers. If your shell doesn't support glyphs or your not using a
patched font, you can disable glyphs by setting an environment variable which will use '●', '○' characters as fallback marker icons. i.e.addexport TM_USE_GLYPHS=falseto your .zshrc filerunsource ~/.zshrcUsageBookmark (toggle) the current directory:tm -M/--markShow bookmarks:tm -S/--showRemove bookmarks (interactive) menu:tm -R/--removeuseful for removing multiple bookmarks at the same timeAuto-find & Add Bookmarks:You can usetm --find <base dir> [--depth <number>]to search and add bookmarks for project directories (idenitifed by .git folder) under the base path provided.e.g. you can runtm --find ~/dev(--depth 2 is default)
to automatically add bookmarks todirA,dirB,dirCdirectories./dev
├── dirA          [bookmark added for `dirA`]
│   ├── .git            [<- .git found]
│   └── ...
├── dirB          [bookmark added for `dirB`]
│   ├── .git            [<- .git found]
│   ├── ...
│   ├── src             [bookmark NOT added `/dirB/src`]
│   |   └── ...
│   └── .vscode         [bookmark NOT added `.vscode`]
│       └── ...
├── GO
│   └── dirC      [bookmark added for `dirC`]
│       ├── .git        [<- .git found]
│       ├── .vscode
|       |   └── ...
│       └── ...
└── ...Uninstallpip uninstall term-markRemove the following line from your .zshrc file:source "$HOME/.config/zsh/zsh_functions/tm.zsh"Delete the shell function:rm $HOME/.config/zsh/zsh_functions/tm.zshThere's only 2 dependencies for term-mark,pfzyandprompt-toolkitIf they're not used by another package you can also pip uninstall these for a completely clean
uninstall.AttributionThis CLI tool includes code and components from theInquirerPypackage created
by kazhala, specifically a fork fromGracerInquirerPy is a powerful Python library for creating interactive command-line interfaces.
Package: termmenu
TermMenuThis is a little Python project that I wanted to do for some time.The idea is that you should be able to make a terminal menu (below) easily and compactly.Choose one:
0. Start game
1. Settings
2. And more
> {User input here}DocumentationRead the documentation onReadTheDocs.InstallTo install, you need pip for python3pipinstalltermmenuAlso, check out the project onPyPi.ContributingYou are welcome to contribute.
Package: term-music
Term-Musicstill in developmentTerminal music player with audio visualization and youtube-dl integration.InstallationInstall using pippip install term-music. After installation, you can runterm-music.At first run, the program will create a folder called.term-musicin your home directory with config.ini file with
default settings. You can change the settings in the config file to your liking.Also in the.term-musicdirectory
there will be amusic-libfolder where all your songs will be downloaded to. You can change this by changing thedownload_foldersetting in the config file.UsageInside your download folder all .mp3 files will be considered as songs and all .txt files will be considered as
playlists.Playlist files should be text files with each line containing the name of a song (without extension) that is in your library.usage: music [-h] [-v] {play,playall,playlist,ls,load} ...

positional arguments:
  {play,playall,playlist,ls,load}
    play                play a song
    playall             play all songs or playlists
    playlist            play playlist
    ls                  list songs
    load                download a list of songs

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exitplayusage: music play [-h] [-e] [-nd] query [query ...]

positional arguments:
  query              query used to search the library or youtube for the song
                     to play

options:
  -h, --help         show this help message and exit
  -e, --exact        only use exact matches to play a song from library, will
                     not search youtube or download a song
  -nd, --nodownload  don't search youtube and download the song if none is
                     found in libraryplayallusage: music playall [-h] [{songs,playlists}]

positional arguments:
  {songs,playlists}

options:
  -h, --help         show this help message and exitplaylistusage: music playlist [-h] [-e] query

positional arguments:
  query        query used to search the library for a playlist to play

options:
  -h, --help   show this help message and exit
  -e, --exact  only play a playlist if exact match is foundlsusage: music ls [-h] [-a] [-p] [-f]

options:
  -h, --help      show this help message and exit
  -a, --all       list all songs and playlists
  -p, --playlist  list only playlists
  -f, --full      list all songs with playlists they are onloadusage: music load [-h] [-p PLAYLIST] [-c] songs [songs ...]

positional arguments:
  songs                 list of songs to download in music library

options:
  -h, --help            show this help message and exit
  -p PLAYLIST, --playlist PLAYLIST
                        name of the playlist that will be made out of
                        downloaded songs
  -c, --check           if true will check if song already exists and won't
                        download it
Package: termnote
[![PyPI version](https://img.shields.io/pypi/v/termnote.svg)](https://pypi.python.org/pypi/termnote)
[![Build Status](https://travis-ci.org/sayanarijit/termnote.svg?branch=master)](https://travis-ci.org/sayanarijit/termnote)# TermNoteA simple, yet powerful and handy terminal based note taking python app### Requirement:requires python (>2 or 3)### Usage:Install with pip` sudo pip install termnote `*Note: For the sake of LAZYNESS, ‘tn’ is a shortcut for ‘termnote’*Create your 1st note` tn my first note `Write “I love cheeze” and close editor. Note is created. Now lets find the note by keywords` tn cheez `or by filename` tn first no `List all notestn### CustomizationYou can change default editor and path by adding below lines in your ‘~/.profile’ file` exportEDITOR="[Yourfavourite text editor. Default is'vi']"exportTN_STORAGE="[Directorywhere notes to be saved. Default is'~/.termnote']"`### Multi user shared notesYou can also have a common shared notes space for all users with following stepsCreate a shared notes directory` sudo mkdir /var/termnote sudo chmod a+rwx /var/termnote `Set environment variable globally in ‘/etc/profile’` exportTN_STORAGE="/var/termnote"`
Package: termp
TermpDrawing in the terminalInstallpip install --upgrade termpUsagefromTermpimport*Create a text picture:t=termp(50,50)# Create a 50 × 50 text imageDraw:t.line(0,0,49,49)t.circle(25,25,10)t.rect(0,0,49,49)t.fill(30,5,"#")t.fill(20,30,"#")Result:t.print()Convert Pictureswith colort=termp(140,140)t.image("file.jpg",140,color=True)without colort=termp(140,140)t.image("file.jpg",140)color filter picturet=termp(140,140)t.image("file.jpg",140)t.givecolor("green")
Package: termpix
termpixDraw images in an ANSI terminal! Requires that your terminal can show ANSI colours, and uses a font that can show the 'bottom half block' character (▄).Usage:python3.9 termpix.py <filename|url> [--true-color|--true-colour]  [--output output.txt] \
          [--width <width>] [--height <height>]filename or url can be anyimagefile readable by the python 'PIL' library or can be anyvideofile readable byimageio. It also supports HEIC format, ifpyheifandlibffi libheifare installed. If you type camera as the filename, you can view your webcam video.It will fill as much of the terminal as possible, while keeping the aspect ratio of the input image. Use --width or --height to override this.Try this command:python3.9termpix.py\https://img.blogs.es/anexom/wp-content/uploads/2020/10/mario-destacada_E.jpg\--true-colorAnd you will see:This library is also extended to play video in terminal (with audio), you can try thepython3.9 termpix.py <mp4_filename>This project is much inspired by the following repository:https://github.com/hopey-dishwasher/termpixInstallationfor ubuntu, perform commands below to install software packages at first:sudoapt-getinstall-yportaudio19-devffmpegthen install python packages (recommend to install them in your own virtual environment, python3.x):pip3install-rrequirements.txtLicenseApache 2.0 license
Package: termpixels
termpixelsthe terminal as a character-cell matrixGet itThis project is on PyPI.Alternatively, clone this repository andpip install -e .in the root directory.Requires Python 3, andno dependencies*!* Requirespytestto run testsPurposeCreating programs that run inside of terminals seems convoluted. The goal of termpixels is toabstract the terminal into a 2D array of "pixels", or character cells, which each contain a single text character, a foreground color, and a background color. termpixels allows you to modify the screen contents anywhere, at any time, and then handles updating the terminal automatically, as well as simplifying complicated terminal input processing.Ultimately, this project seeks to make the terminalmore accessibleandmore fun.LimitationsThere are lots of great libraries for coloring terminal output. This one isdesigned for full-screen applicationsthat completely control the contents of the screen. That means that it, e.g., automatically saves and clears the screen, resets the cursor position, and accepts input in cbreak mode.It's not the best solution for simply printing colored text, thoughyou can do that if you want.DemofromtermpixelsimportApp,ColorfromtimeimporttimefrommathimportsinclassFunTextApp(App):defon_frame(self):self.screen.clear()# remove everything from the screentext="Hello world, from termpixels!"fori,cinenumerate(text):f=i/len(text)color=Color.hsl(f+time(),1,0.5)# create a color from a hue valuex=self.screen.w//2-len(text)//2# horizontally center the textoffset=sin(time()*3+f*5)*2# some arbitrary mathy=round(self.screen.h/2+offset)# vertical center with an offsetself.screen.print(c,x+i,y,fg=color)# draw the text to the screen bufferself.screen.update()# commit the changes to the screenif__name__=="__main__":FunTextApp().start()More demosDoomTermtpmatrixFeaturesUnix(andMac) terminal feature detection with terminfo (via Pythoncurses)Windowssupport through Win32 Console APITerminal (re)size detectionAsynchronous inputKeyboardinput with support for special keys like arrows, function keys, escape, etc.Mouseclick, scroll and move input in terminals supporting xterm mouse16, 256, and truecoloroutput (with detection for best supported mode)Display thecursoranywhere (or hide it!)Preservesthe state of the user's terminal using alternate screen buffer.Rudimentary support forfullwidthcharacters.No reliance on ncurses except for terminfo lookup100% Pythonand moreInspirationtcellncursesBuild your own Command Line
Package: termplotlib
termplotlibtermplotlib is a Python library for all your terminal plotting needs. It aims to work
likematplotlib.Line plotsFor line plots, termplotlib relies ongnuplot.
With that installed, the codeimporttermplotlibastplimportnumpyasnpx=np.linspace(0,2*np.pi,10)y=np.sin(x)fig=tpl.figure()fig.plot(x,y,label="data",width=50,height=15)fig.show()produces1 +---------------------------------------+
  0.8 |    **     **                          |
  0.6 |   *         **           data ******* |
  0.4 | **                                    |
  0.2 |*              **                      |
    0 |                 **                    |
      |                                   *   |
 -0.2 |                   **            **    |
 -0.4 |                     **         *      |
 -0.6 |                              **       |
 -0.8 |                       **** **         |
   -1 +---------------------------------------+
      0     1    2     3     4     5    6     7Horizontal histogramsimporttermplotlibastplimportnumpyasnprng=np.random.default_rng(123)sample=rng.standard_normal(size=1000)counts,bin_edges=np.histogram(sample)fig=tpl.figure()fig.hist(counts,bin_edges,orientation="horizontal",force_ascii=False)fig.show()producesHorizontal bar charts are covered as well. Thisimporttermplotlibastplfig=tpl.figure()fig.barh([3,10,5,2],["Cats","Dogs","Cows","Geese"],force_ascii=True)fig.show()producesCats   [ 3]  ************
Dogs   [10]  ****************************************
Cows   [ 5]  ********************
Geese  [ 2]  ********Vertical histogramsimporttermplotlibastplimportnumpyasnprng=np.random.default_rng(123)sample=rng.standard_normal(size=1000)counts,bin_edges=np.histogram(sample,bins=40)fig=tpl.figure()fig.hist(counts,bin_edges,grid=[15,25],force_ascii=False)fig.show()producesTablesSupport for tables has moved over totermtables.Installationtermplotlib isavailable from the Python Package
Index, so simply dopip install termplotlibto install.TestingTo run the termplotlib unit tests, check out this repository and typepytestSimilar projectsasciichartbashplotlibplotextplotille
Package: termplots
TermplotsA lightweight plot library for your terminalInstallationpip install termplotsGet startedSimple plotimporttermplotsastmptmp.plot([-0.5,0,1,0.5,1.5],ystep=0.5)Output:2.0|
 1.5|        *
 1.0|    *
 0.5|      *
 0.0|--*-------
 0.5|*
 1.0|Multiple plotsimporttermplotsastmptmp.plot([[1,0,2],[-1,0,3,0,2,2]],car=['*','$','@'],labels=['List 1','List 2'])Output:4|
 3|    $
 2|    *   $ $
 1|*
 0|--@---$-----
 1|$
 2|

*: List 1
$: List 2
@: overlapsCompact plotimporttermplotsastmptmp.cplot([[32,20,0,112],[-32,-20,0,20]])Output:112|      *
 32|*
 20|  *   #
  0|----@---
 20|  #
 32|#orimporttermplotsastmptmp.cplot([-3,2,1,15])Output:15|      *
 2|  *
 1|    *
 0|--------
 3|*Other argumentsplot()ystep(default1): defines steps on the y axislowlim: lower limit of the y axishighlim: upper limit of the y axiscar(default['*', '#', '@']): list of point(s) marker, the last char is used for overlapslabels(defaultNone): list of labelscplot()car(default['*', '#', '@']): list of point(s) marker, the last char is used for overlapslabels(defaultNone): list of labelsColorsTermplots support up to 6 colors. Colors are automatically assigned to different series.I tested the colors only on macOS. If the colors don't work try a different terminal or open an issue
Package: termprop
What is Thistermprop detects some terminal glitches and advanced facilities information,
that terminfo does not provide.
This package is inspired by MinEd’s termprop.c.Installvia github$ git clone https://github.com/saitoha/termprop.git
$ cd termprop
$ python setup.py installor via pip$ pip install termpropLicenseMIT LicenseDependencieswcwidth.pyhttps://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/cassandra/pylib/cqlshlib/wcwidth.py(Licensed under Apache License 2.0)Dependentscanossahttps://github.com/saitoha/canossasentimental-skkhttps://github.com/saitoha/sentimental-skkReferenceUnicode Text Editor MinEdhttp://towo.net/mined/
Package: termpy
TermPy provides an interface and utilities for the manipulation of terms
including the followingAn non-intrusive interface for creating, and accessing operators and children
of terms.  This interface operates ontuplesanddictsby default but can
be easily extended to arbitrary Python objects by implementing a set of methods
or through relatively safe monkey patching.DependenciesPython 2.5, 2.6, or 2.7InstallWithpiporeasy_installpip install termpyFrom sourcegit clonegit@github.com:logpy/termpy.git
cd termpy
python setup.py installRun tests with nosenosetests –with-doctestTermPy is pure PythonAuthor[Matthew Rocklin](http://matthewrocklin.com)LicenseNew BSD license. See LICENSE.txt
Package: termqt
termqttermqtis the python implementation of a terminal emulator, based on Qt. It
is designed to be embedded as a widget in other programs. It implements a
subset of the functions described inVT100 User
GuideandXTerm Control
Sequence. While can't
be considered as a fully functional terminal emulator like those most used by
people, it can run IPython and perhaps more complicated applications.DependenciesPython 3.5+ (to get PyQt5 running),PyQt5 / PySide2.InstallationpipinstalltermqtGet Startedtermqtis divided into aTerminalwidget that can be embedded in any Qt
program, and aTerminalIOthat is used to communicate with child processes
likebashoripython. One has to connect all callbacks insideTerminalandTerminalIOin order to get them running. One may also build his ownTerminalIObackend instead of using the existing ones.A quick minimalistic example can be found instart.py. It creates aTerminaland aTerminalExecIOthat runsbashunder Linux (and other
POSIX-compatible environments) orcmdunder Windows.Issues / Feature RequestsIf you spot a bug or want to propose a feature, please feel free to submit an
issue. At this time, my time working on this project is not guaranteed, but I
will try my best. Other volunteers are also welcomed to submit PRs. All your
efforts are appreciated!
Package: termquotes
termquotesA little CLI tool to record, categorize and display quotes.Installpip install --user termquotesUsagetermquotes --helpShellIn.zshrctermquotes get | cowsay -f vader | lolcat________________________________________
/ APIs should be easy to use and hard to \
\ misuse. -- Josh Bloch                  /
 ----------------------------------------
        \    ,-^-.
         \   !oYo!
          \ /./=\.\______
               ##        )\/\
                ||-----w||
                ||      ||

               Cowth Vader
Package: termremind
RemindTerminal reminder toolPIP Install:pip3 install termremindFor any*nix(MacOS included, I think?):You need to make sure that~/.local/bin/is in your$PATH.This is usually set by~/.bashrcor~/.zshrcdepending on your shell.You can check by issuingecho $PATH, and looking for that entry between:'s.For Windows:As long as you installed Python with Pip, this should be a non-issueDone!Source-install:git clone https://github.com/SomethingGeneric/Remindcd Remind && pip3 install .You need to make sure that~/.local/bin/is in your$PATH.This is usually set by.bashrcor.zshrcdepending on your shell.You can check by issuingecho $PATH, and looking for that entry between:'s.Done!Usage:Seeremind/main.py(orremind helponce it's installed)
Package: termscraper
_____                       _____
|_   _|                     /  ___|
  | |  ___  _ __  _ __ ___  \ `--.   ___  _ __  __ _  _ __    ___  _ __
  | | / _ \| '__|| '_ ` _ \  `--. \ / __|| '__|/ _` || '_ \  / _ \| '__|
  | ||  __/| |   | | | | | |/\__/ /| (__ | |  | (_| || |_) ||  __/| |
  \_/ \___||_|   |_| |_| |_|\____/  \___||_|   \__,_|| .__/  \___||_|
                                                     | |
                                                     |_|What istermscraper?It’s an in memory VTXXX-compatible terminal emulator.XXXstands for a
series of video terminals, developed byDECbetween 1970 and 1995. The first, and probably the most famous one, was
VT100 terminal, which is now a de-facto standard for all virtual
terminal emulators.termscraperfollows the suit. It is a direct fork ofpyte
0.8.1which in turn it is a fork ofvt102.termscraperaims to be used mostly for scraping terminal apps likehtopor very long logs fromtailorlessin avery
efficientway so it may not support all the features that a full VT100
terminal would have.InstallationIf you havepipyou can do the
usual:$pipinstalltermscraperOtherwise, download the source fromGitHub
termscraperand run:$pythonsetup.pyinstallSimilar projectstermscraperis not alone in the weird world of terminal emulator
libraries, here’s a few other options worth checking out:TermemulatorpyqonsolewebttyAjaxTermpytevt102
Package: termshot
Termshot is a easy-to-use python image to terminal printer, that allows you to edit already converted images (like copy, paste).Classes:
ANSIMatrix: class that has ansi "pixels", that has been recieved from converter.Functions:
ANSIMatrix.copy(self, region): returns another ANSIMatrix, that contains pixels from copied area of parent image
ANSIMatrix.paste(self, region, position): pastes region (ANSIMatrix) to given position.
ANSIMatrix.get_img(self): returns ready-to-print string of ansi "pixels".
colored(img, rescale, use_double_spaces): converts image from file to colored ANSIMatrix.
gray(img, rescale, use_double_spaces, allow_15, debug, inverse): like colored, but returns grayscale ANSIMatrix.
dump(matrix, output): dumps matrix to output file.
load(file): loads matrix from file.Github page:
None