Saravanan666/pypi-org huggingface dataset:
Package: clit
Command LIne ToolkitUsage# Build the virtualenv and install required modules,
# including this one in editable mode
0/make_venv.sh. Venv/bin/activate# Build the module
0/build.sh# Register the built module with PyPI
0/register.sh# Upload a new build to PyPI
0/upload.sh# Delete all built files
0/clean.shDevelopmentRun0/make_venv.shfirst. Venv/bin/activate
# This IPython config will set autoreload
ipython –config=0/ipython_config.py
Package: clitable
clitableCreate table representations from various data structures, using either simple
ASCII characters or unicode box-drawing characters.Copyright NoticeCopyright (C) 2014-2023 Daniel Jung.
Contact:proggy-contact@mailbox.orgThis program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
Package: cli-tables
cli-tablesCreate a pretty looking ascii table.Usage (command line):python cli_tables.py [options] < input_file.txtWhereinput_file.txtcontains your input separated by (any amount of) tabs or 4/8/.. spaces and new-line characters and the output table is printed on the terminal.Usage (gui):python gui.pyExample:Input:Col 1	Col 2	Col 3	Col 4
Val1	Val2	Val3	Val4
Val11	Val22	Val33	Val44
Vala	Valb	Valc	ValdOutput (-h option):+-------+-------+-------+-------+
| Col 1 | Col 2 | Col 3 | Col 4 |
+=======+=======+=======+=======+
| Val1  | Val2  | Val3  | Val4  |
+-------+-------+-------+-------+
| Val11 | Val22 | Val33 | Val44 |
+-------+-------+-------+-------+
| Vala  | Valb  | Valc  | Vald  |
+-------+-------+-------+-------+The input in the command line execution can have an arbitrary amount of tabs separating the values. For example either one of the following inputs will output the same result:Inputs:input_size	algorithmA	algorithmB	algorithmC	algorithmD
1	206.4 sec.	206.4 sec.	0.02 sec.	0.02 sec.
4	900 sec.	431.1 sec.	0.08 sec.	0.062 sec.
250	-	80 min.	2.27 sec.	1.305 sec.
1000	-	-	8.77 sec.	4.086 sec.
5000	-	-	33.53 sec.	16.80 sec.
10000	-	-	85.4 sec.	47.18 sec.orinput_size	algorithmA	algorithmB	algorithmC	algorithmD
1			206.4 sec.	206.4 sec.	0.02 sec.	0.02 sec.
4			900 sec.	431.1 sec.	0.08 sec.	0.062 sec.
250			-			80 min.		2.27 sec.	1.305 sec.
1000		-			-			8.77 sec.	4.086 sec.
5000		-			-			33.53 sec.	16.80 sec.
10000		-			-			85.4 sec.	47.18 sec.Output (-h and -v options):+------------+------------+------------+------------+------------+
| input_size ‖ algorithmA | algorithmB | algorithmC | algorithmD |
+============+============+============+============+============+
|     1      ‖ 206.4 sec. | 206.4 sec. | 0.02 sec.  | 0.02 sec.  |
+------------+------------+------------+------------+------------+
|     4      ‖  900 sec.  | 431.1 sec. | 0.08 sec.  | 0.062 sec. |
+------------+------------+------------+------------+------------+
|    250     ‖     -      |  80 min.   | 2.27 sec.  | 1.305 sec. |
+------------+------------+------------+------------+------------+
|    1000    ‖     -      |     -      | 8.77 sec.  | 4.086 sec. |
+------------+------------+------------+------------+------------+
|    5000    ‖     -      |     -      | 33.53 sec. | 16.80 sec. |
+------------+------------+------------+------------+------------+
|   10000    ‖     -      |     -      | 85.4 sec.  | 47.18 sec. |
+------------+------------+------------+------------+------------+Options:[-hdouble horizontal line after first row. (Uses '=' character)][-vdouble vertical line after first column. (Uses '‖' unicode character)]
Package: cli-task
TaskA simple cli to-do list. Created using python and click library.How toCreate a task belonging to a group:~taskaddMoviesJohnWick2Edit a task (partial match available):~taskeditMoviesJohn
EnterthenewnameforJohnWick2[JohnWick2]:JohnWick:Chapter2Finish a task (partial match available):~taskfinishMoviesJohnList tasks:~tasklistMoviesMovies================================[]TheIrishman[x]JohnWick2[x]ToyStory4[]OneUponaTimeinHollywood[x]Avengers:EndGame================================Export the tasks to.txtfile:~taskexportMoviespath/to/saveor to.pdf:~taskexportMoviespath/to/save--pdfInstallationInstall using python 3.8 and pip3:pip3installcli-taskVersions0.2.0Added remove functionality:~taskremoveMoviesJohnFutureI try to add sorting feature for list and exports, also I might try
to add attributes to each task (due date, urgency, ...).The big next feature would be syncing the tasks in the cloud so
you could access your tasks anywhere.AuthorAmin FadaeeCheckout my channel:BackendLife
Package: clitbl
tbl -catfor csv filestbllets you print out csv files to your terminal, formatted and "prettified".A lot of the hard work is done with therapidtablespackage, check it out!cattblCheck out this recorded example:RequirementsPython 3.4+Installationpipinstall--userclitblUsage optionsUsetbl -h / tbl --helpto see help.The most common use it to just print the tabletblfile.csv--headersThe headers options lets you explicitly specify the headers for the table. Use this option when you csv files does
not include headers, (e.gexampleFiletblfile.csv--headers'#Index#Item#Cost#Tax#Total'--selectThe select options lets you select what columns to print (similar to SQL SELECT)tblfile.csv--select'#Item#Tax':exclamation: Bothheadersandselectuse the first charcter as a separator,
it can be any character (kinda like asedexpressions):exclamation: The headers specified with this option are case-sensitive:star2: Theheadersandselectheaders can be used together--format(defualt: rstgrid)The format options lets you specify the format used when printing the table.The available formats are:rstgridrstmdsimpleRestrictionsThere are several casestbldoes not support:Duplicated headers, all headers must be distinctVery long headers, while tbl can wrap long paragraph of text in a cell,
it cannot wrap text in the headers, which may lead to disfigured output:exclamation: This is not the use case for tbl anyway, but dont try to print huge tables (several GBs),
as tbl (and rapidtable) read the entire table to memory before printing* Example csv were downloaded fromhere
Package: cli-test-helpers
Useful helpers for writing tests for your Python CLI program.Writing tests for a command line interface (CLI) toolmay not seem strictly
straight-forwardwhen you think in terms of unit tests. Especially, when you
use theargparsemodule or theclickpackage, control of the application
entry point is a bit taken away from you.But it’s not all that bad. This package is here to help. Theexamplesgive
you some guidance on how to get started, and the helpers allow you to deal with
common cases, such as mocking CLI arguments and environment variable values.DocumentationSee thedocumentationfor installation instructions and a tutorial.ExamplesTheexamplesfolder contains hands-on example projects you can start to use
directly.DevelopmentThis project uses Tox to run its test suite. Install and use it locally like
this:python3-mpipinstalltoxtoxlist# list available environmentstox-eruff,py311# run a few environmentstox-epy# run tests with local default Pythontox# run entire suiteThe included example projects can be tested independently with their dedicated
environments, e.g.tox-eexample-docopt
Package: cli-thesaurus
ThesaurusThesaurus is asimpleelementaryandfastexpeditiousCLI for all
of yourwordypleonasticneeds. It supports compound words (for example,
"good day") and even supportssepllchekingspellchecking!InstallationThesaurus requires python 3 and can be installed either throughpip3orHomebrew:$ pip3 install cli-thesaurusor$ brew install cli-thesaurusThis tool was inspired by otherdiscontinuedantediluvianworks[1][2].
Package: cli-todoer
CLI-todoerAn easy command line interface for tracking your to-do listInstallUsingpipcli-todoer is only supported with python 3.6 due to the use of f-strings be aware before pip installingpip install cli-todoerBuild from sourcegit clone https://github.com/VladaZakharova/CLI-todoer.git
cd todoer
python setup.py installUsageHelptodoer --helpAdd tasks to your to-do listtodoer add "Task description" "Category"Update tasks description or categoryBoth of the parameters are optional. You can specify only one argument in case you want to change only part of to-do task.todoer update 1 --description "New task description" --category "New category"Complete specified task and set status to Donetodoer complete 1Show a list of all tasks for current daytodoer showDelete specified task from to-do listtodoer delete 2Clear to-do list and delete all the taskstodoer clear
Package: clitoo
clitoo: execute python callables from CLI too !Sometimes I want to execute a python callback with some args on the command
line, but i get frustrated that it always requires to wrap my command in a
wrapper of some sort or do something more than, just call a parameterized
callback from the CLI.Clitoo unfrustrates me.Install:$ pip install clitooHelp:Clitoo makes your python callbacks work on CLI too !

This CLI can execute python callbacks with parameters.

Clitoo recognizes 4 types of command line arguments:

- lone arguments are passed as args
- arguments with = are passed as kwargs
- dashed arguments like -f arrive in context.args
- dashed arguments like -foo=bar arrive in context.kwargs

It doesn't matter how many dashes you put in the front, they are all
removed.

To use the context in your callback just import the clitoo context::

    from clitoo import context
    print(context.args, context.kwargs)

Clitoo provides 2 builtin commands: help and debug. Any other first
argument will be considered as the dotted path to the callback to import
and execute.

Examples:

clitoo help your.mod.funcname
    Print out the function docstring.

clitoo debug your.func -a --b --something='to see' how it=parses
    Dry run of your.mod with arguments, dump out actual calls.

clitoo your.mod.funcname with your=args
    Call your.mod.funcname('with', your='args').Demo:$ clitoo debug your.func -a --b --something='to see' how it=parses
Could not import your.func nor clitoo.your.func
Args: ('how',)
Kwargs: {'it': 'parses'}
Context args: ['a', 'b']
Context kwargs: {'something': 'to see'}FallbacksClitoo will attempt to fallback on packages of its own. If it doesn’t find thegit.clonecallback from thegitpackage, or doesn’t find thegitpackage
itself, it will findclitoo.git.clonewhich is a builtin command that we use
in CI.Making your own commandSee the djcli repository for an example of command that is packaged as
standalone, but it looks like:# Declare the following as CLI entry_point
def cli():
    clitoo.context.default_module = __name__
    return clitoo.main()
Package: clitool
One line argument parsing function and decoratorSimple configuration loaderStream utility with some loggingCSV reader/writer unicode support for Python 2.x (in official document)Apache accesslog parserRequirementsPython 2.7 or 3.xPython 2.4, 2.5, 2.6 are not supported.InstallUsepipvia PyPI.pip install clitoolBootstrapAt first, create your script file using module script,clitool.cli.$ python -m clitool.cli -o your-script.pyThis file can parse basic command line options and arguments.$ ./your-script.py --help
usage: your-script.py [-h] [-c FILE] [-o FILE] [--basedir BASEDIR]
                      [--input-encoding INPUT_ENCODING]
                      [--output-encoding OUTPUT_ENCODING]
                      [--processes PROCESSES] [--chunksize CHUNKSIZE]
                      [-v | -q]
                      [FILE [FILE ...]]

positional arguments:
  FILE

optional arguments:
  -h, --help            show this help message and exit
  -c FILE, --config FILE
                        configuration file
  -o FILE, --output FILE
                        output file
  --basedir BASEDIR     base directory
  --input-encoding INPUT_ENCODING
                        encoding of input source
  --output-encoding OUTPUT_ENCODING
                        encoding of output distination
  --processes PROCESSES
                        count of processes
  --chunksize CHUNKSIZE
                        a number of chunks submitted to the process pool
  -v, --verbose         set logging to verbose mode
  -q, --quiet           set logging to quiet modeEdit this script on your own :DExamplesExample scripts exist in git repository.csv2db.py: read csv data and import database via ‘SQLAlchemy’.csv2gexf.py: read csv data and dump them by GEXF format via ‘NetworkX’.csv2json.py: read csv data and dump them by JSON format.csv2kml.py: read csv data and dump them by KML format via ‘simplekml’.logfile.py: parse Apache access log and create report.logparams.py: parse Apache access log and analyze query parameters.
Package: cli-toolkit
CLI toolkit for shell command utilitiesThis module contains modules to implement CLI scripts by wrapping
python argparse.ArgumentParser to user friendly utility classes.Create a script classMain class to use is the Script class. It will get it's name from
sys.argv[0].Example:fromcli_toolkit.scriptimportScriptif__name__=='__main__':script=Script()script.add_argument('files',nargs='*',help='Files to process')args=script.parse_args()forfilenameinargs.files:script.debug('PROCESSING',filename)script.message(filename)Running the example:> python test.py foo bar
foo
barThis is pretty straightforward ArgumentParser, except itsets SIGINT handleradds --debug and --quiet flagsaddsdebugandmessagefunctions which honor the debug and quiet flagsUsing script with subcommandsMore useful is using a script with subcommands. The subcommands require
at leastnameclass variable and should haveusage,descriptionandepilog.You also should implementrunmethod and call script.run() to run correct
subcommand. Arguments for subcommand parser are registered with methodregister_parser_arguments.fromcli_toolkit.scriptimportScriptfromcli_toolkit.commandimportCommandclassListCommand(Command):name='list'usage='List files'description='Lists files specified on command line'defregister_parser_arguments(self,parser):parser.add_argument('files',nargs='*',help='Files to process')defrun(self,args):forfilenameinargs.files:self.debug('PROCESSING',filename)self.message(filename)if__name__=='__main__':script=Script()script.add_subcommand(ListCommand(script))script.run()Running the example:>pythontest.pylistfoobar
foo
barUsing nested subcommandsThe subcommands can be nested. You need to pass the parser in paren't
register_parser_subcommand to add_subcommand.fromcli_toolkit.scriptimportScriptfromcli_toolkit.commandimportCommandclassFilesCommand(Command):name='demo'usage='Run nested demo subcommands'defregister_parser_arguments(self,parser):"""Register 'list' command under demo subcommand"""self.add_subcommand(ListCommand(self),parser)returnparserclassListCommand(Command):name='list'usage='List files'description='Lists files specified on command line'defregister_parser_arguments(self,parser):"""Register 'list' command arguments"""parser.add_argument('files',nargs='*',help='Files to process')returnparserdefrun(self,args):ifnotargs.files:self.exit(1,'No files provided')forfilenameinargs.files:self.debug('PROCESSING',filename)self.message(filename)if__name__=='__main__':script=Script()script.add_subcommand(FilesCommand(script))script.run()Running the example:>pythontest.pydemolistfoobar
foo
bar
Package: cli-translate
Console TranslatorInstallationpip3 install cli_translate --userFeaturesQuick translation for text in clipboardAbility for replace text in clipboard with translationAbility for output with notify-send (useful with hotkey binding)Store all translated texts in sqlite databaseGoogle or Yandex translation clientsConfigure Yandex Api keyThe usage yandex translator require following stepsgo tohttps://translate.yandex.ru/developers/keysand register free api keydefine environment variable with name YANDEX_TRANSLATE_API_KEY and with api key as valueGuideUsage Examplesitrans -to esClipboard text will be translateditrans -to fr "Some text""Some text" will be translateditrans -to en -iInteractive text input modeitrans -to en -pClipboard text will be translated and replaced with translationitrans --helpSee All available optionsTips and Tricksregister bash/zsh aliases with most useful options; example `alias et="itrans -to en -p -o -c yandex"save translation to fileitrans [options] > file.txttranslate text from fileitrans [options] "$(cat /path/to_file.txt)"pipe result to anotheritrans --raw "Hello World"|cowsayLimitationsThis utility is for personal use, not automated translations.The volume of translated text lenght  is limited per-requestScreens
Package: clitt
ClittEver wanted to tweet straight from your terminal? Wait, is it just me?How to install it?Install Clitt using pip or pipxpipinstall--userclitt\\pipxinstallclittHow to use it?Clitt is meant to be simple (or at least as simple as a command line client for Twitter can be), so you just need to callclittortt, choose an action and pass the required parameters to perform the action.Runningclittorttfor the first time will open a new tab on your browser with an authorization consent from Twitter, hit the authorize button, copy the code that will pop-up and paste it into the terminal. After the first time, your authorization token will be saved on your computer (and only there) for further uses.What can i do with Clitt?Read your timeline$ clitt readWrite a Tweet$ clitt post "Hey, i'm using Clitt to write this!"DM someone$ clitt dm @target "Hey, i'm using Clitt to send you this DM!"Read your chat with another user$ clitt chat @targetFuture featuresSearch for tweets using keywordsDisplay and attach images to tweetsImplement filters and other customization optionsSupport theme colorsContributingHave you thought about any cool features you wanted to see in Clitt? Send a PR. Found any bugs in the current implementation? Feel free to open an issue. Here's a guide to some things you might need to work on Clitt.Twitter dev accountYou will need to make an application for aTwitter developer accountif you want to publish your own version of Clitt, but for testing and development within this project you can use my key that is already included with this repository. If you have you own key, put it on theconfig/keys.jsonfile inside the package.TweepyTweepy is a Python wrapper for the Twitter REST API, it really makes life much more easier, you can check theirdocsand probably will find what you looking for, but if you don't, search in theTwitter docs.Clitt project structureIf you want to implement a new feature, write it in theactions.pyfile and if you need to, add a new argument treatment in__main__.py. Write simple and multiplatform code.
Package: clitui
CLITUIInstallingpip install clituimodule v 0.1.0keyboard support only on:
Mac
LinuxTUI is a module for making custom CLI/Console App's with pythonTerminal suportMacLinuxWindows CMDHope to add more cool things to package like window manager but
I'm not sure what I'll need yet do to this projects is only made
to help another project I am working on.https://github.com/cowboy8625/WordRPGhere is a example on how to use clitui
code found in projects examples folder.#  First off we import all the things needed for this#  examplefromclituiimportMenu,getchar,fg_by,bg_by,safe_run,is_pressed#  There many ways of setting colors in clitui but here is one where#  We made a global variable to use throughout codeFG_CYAN=fg_by(0,160,160)# We first create instances of any kind of menu or submenui# with Menu class.  Menu takes a x and y and an option argument# if no x, y is given submenu's default to parant menu's x, y.main_menu=Menu("Main Menu",x=10,y=10)options_menu=Menu("Options Menu")key_controls=Menu("Key Controler")# to set color for any menu or submenu just call background_color method.# it takes a wide array of valid options.# string of "black" or "cycan"# a tuple (0, 160, 160) or just put bg_by function directly in theremain_menu.background_color((50,0,0))# here we add items to are menu# you can stack method calls on here as well# you need a Name and a id for all menu items.main_menu.add("New Game",0).font_color_for(0,(0,255,0))main_menu.add("Load",1).font_color_for(1,FG_CYAN)main_menu.add("Save",2).font_color_for(2,"Cyan")# if the menu item has a submenu then give it a Menu instances# in submenu methodmain_menu.add("Options",3).submenu(3,options_menu)main_menu.add("Exit",4).add_action(4,exit)# here we are adding submenu itemsoptions_menu.add("Sound",0)options_menu.add("Controls",1).submenu(1,key_controls)key_controls.add("Key0",0)key_controls.add("Key1",1)key_controls.add("Key2",2)key_controls.add("Key3",3)# finally we call the create method to genorate all the need# items for drawing.main_menu.create()defmain():whileTrue:# to get key presses call getcharkey=getchar()# finally to get the fun part and draw the menu just call the draw# methodmain_menu.draw()# to get the curser to move pass in key to method# move_curser and use up and downmain_menu.move_curser(key)ifis_pressed("ESC",key):exit()#  if you want to hide the curser you can call them directly from the curser_controller#  module in clitui but it is advised to use the safe_run function so you dont get#  your terminal out of syncsafe_run(main)
Package: cliTunes
For now, this is just a command-line interface to iTunes. It’s pretty
simple, but I am considering making it do a lot of more interesting
things as time goes by.InstallationTo install, simply usepiporeasy_install:easy_install clitunesUsagePut bin/clitunes somewhere in your path. Now, you can handle playback like
this:clitunes play
clitunes pause
clitunes stopYou can also navigate files like this:clitunes rewind
clitunes fast forward
clitunes resumeor perform a lot of other useful actions:clitunes subscribe "http://example.com/podcast.xml"Running clitunes without any options will assume that you want to use the
“playpause” command. This will play unless already playing, at which time
it will pause instead.TODOFigure out how to be smarter about stringifying things. Passing strings to
iTunes shouldn’t require a user to escape every quote manually.0.0.2Fixed error reportingAdded ability to perform multi word commands (next track, previous track)Added shortcuts to some operations (ff=fast forward, rw=rewind, next=next
track, prev=previous track, etc.)0.0.1Initial version. Basic play/stop functionality.
Package: cli-ui
python-cli-uiTools for nice user interfaces in the terminal.NoteThis project was originally hosted on theTankerHQorganization, which was my employer from 2016
to 2021. They kindly agreed to give back ownership of this project to
me. Thanks!DocumentationSeepython-cli-ui documentation.DemoWatch theasciinema recording.Usage$pipinstallcli-uiExample:importcli_ui# coloring:cli_ui.info("This is",cli_ui.red,"red",cli_ui.reset,"and this is",cli_ui.bold,"bold")# enumerating:list_of_things=["foo","bar","baz"]fori,thinginenumerate(list_of_things):cli_ui.info_count(i,len(list_of_things),thing)# progress indication:cli_ui.info_progress("Done",5,20)cli_ui.info_progress("Done",10,20)cli_ui.info_progress("Done",20,20)# reading user input:with_sugar=cli_ui.ask_yes_no("With sugar?",default=False)fruits=["apple","orange","banana"]selected_fruit=cli_ui.ask_choice("Choose a fruit",choices=fruits)#  ... and more!ContributingWe useoptimistic mergingso you don’t have to worry too much about formatting the code, pleasing the linters or making sure all the test pass.That being said, if you want, you can installjustand use it to check your changes automatically. Just runjustto see available tasks.