Saravanan666/pypi-org huggingface dataset:
Package: cmdline-image-processor
Image processing libraryBrief descriptionUtility which allows you to store and process field’s images.
Visualize images data using convenient command line interface.RequirementsTo use this utility you should have installed GDAL and rasterio >= 1.0.24Utility featuresImportImport pictureImport set of picturesImport with caching statistical dataExportExport images on a certain timeline by idExport all images into folderProcessingCalculate all statistical data and print it to screenCaching calculations into databaseVisualizationHistogram to visualize cloudiness of images on a timelineHistogram to visualize image bits occurrences of an imageDiagram to visualize multiple data sets statistical dataView databasePrint out all database records onto screenView head N recordsFilter images by multiple idsFilter images by date
Package: cmdline-mini
cmdlinea tiny unsophisticated partial  command line parserObjectiveThis package was written to allow parsing of parts of a command line, just pre-commandline arguments to a command.It is originally written as a front-end command pre-processor for arguments passed to Django'smanage.py, not
swallowing the entire command line but allowing some options to be parsed and actioned before the main show,
without interfering with the specific command being executed.This allows, for example, setting internal or environment variables, modifying or setting the
DJANGO_SETTINGS_MODULE variable or any other use that can be imagined.Parsing rules are a simplified version of what are accepted as POSIX rules for command line processing.Both short '-x' and long '--xoption' are supportedShort options can be concatenated, but to avoid ambiguity any option that requires an argument are consumed
consecutively from subsequent arguments and cannot be appended to the short opt itselfThe form --longopt=argument is supportedOptional arguments are not supportedEvaluation order is significant and is exactly as specified on the command line.You can't mix arguments with command arguments, the parser quits when a command is encountered and
preserves all arguments following that commandThe Option class used in option specifications are NamedTuples which is very compact.Example (based on Django manage.py generated by cookiecutter-django):#!/usr/bin/env python3"""Usage: manage.py [-e <env>] [-d] [-o] [-h] <other manage.py args>-e --env <environment>   set runtime environment local, production-d --docker              set internal configuration for docker-o --dotenv              enhanced configuration via .env-h --help                display this help"""importosimportsysfromcmdlineimportOption,system_argsif__name__=="__main__":opts=[Option('e','env',has_arg=True),# -e or --env switchOption('d','docker'),# -d or --dockerOption('o','dotenv'),# -o or --dotenvOption('h','help'),# -h or --help]environ='local'# defaultdocker=Falseread_dotenv='0'settings=dict(prog=sys.argv[0])defprocess_args(option:Option,key,arg):ifnotoption:# use 2nd arg to do something based on command invokedsettings['prog']=keyelifoption.short=='e':settings['environ']=argelifoption.short=='d':settings['docker']=Trueelifoption.short=='o':settings['read_dotenv']='1'elifoption.short=='h':print(__doc__)exit(0)defexport(var,val):os.environ[var]=valsystem_args(opts,process_args)vars().update(settings)default_settings=f'config.settings.{environ}'export('USE_DOCKER','yes'ifdockerelse'no')export('DOCKER_READ_DOT_ENV_FILE',read_dotenv)os.environ.setdefault("DJANGO_SETTINGS_MODULE",default_settings)try:fromdjango.core.managementimportexecute_from_command_lineexceptImportError:# The above import may fail for some other reason. Ensure that the# issue is really that Django is missing to avoid masking other# exceptions on Python 2.try:importdjango# noqaexceptImportError:raiseImportError("Couldn't import Django. Are you sure it's installed and ""available on your PYTHONPATH environment variable? Did you ""forget to activate a virtual environment?")raiseexecute_from_command_line(sys.argv)
Package: cmdline-mlgridengine-lazy
This is a terminal that implements MLGridEngine apis.RequirementsPython3.6Commandspip3 install -ihttps://pypi.tuna.tsinghua.edu.cn/simple/-r
requirements.txtFor unit testsh unit.shHow to run this terminal appcd Terminal-apisource run.shHave fun with ‘lazy’ command!lazy –help for Usage
Package: cmdlineobserver
Monitors and observes running processes with their command line details.Tested against Windows 10 / Python 3.11 / Anacondapip install cmdlineobserverupdated XMLThisfunctioncontinuouslycollectsinformationaboutrunningprocesses,specificallytheir
commandlinedetails,andstorestheminaPandasDataFrame.Itcanbeconfiguredwitha
custombreakingconditiontostopdatacollectionandsavetheresultstoaCSVfile.

Parameters:
-breakcondition(callable,optional):AfunctionthattakesaDataFrameasinputandreturnsabooleanindicatingwhethertostopdatacollection.IfnotprovidedorsettoFalse,datacollectioncontinuesindefinitely.
-save_path(str,optional):Ifspecified,thecollecteddatawillbesavedtoaCSVfileatthespecifiedpathwhenthebreakingconditionismet.

Returns:
-pandas.DataFrame:ADataFramecontaininginformationaboutrunningprocesses,includingcolumnssuchas'CommandLine','ProcessId',andmore.

Example:#columnsforpossibleconditions:#CommandLine,CSName,Description,ExecutablePath,ExecutionState,Handle,HandleCount,InstallDate,KernelModeTime,#MaximumWorkingSetSize,MinimumWorkingSetSize,Name,OSName,OtherOperationCount,OtherTransferCount,PageFaults,#PageFileUsage,ParentProcessId,PeakPageFileUsage,PeakVirtualSize,PeakWorkingSetSize,Priority,PrivatePageCount,#ProcessId,QuotaNonPagedPoolUsage,QuotaPagedPoolUsage,QuotaPeakNonPagedPoolUsage,QuotaPeakPagedPoolUsage,#ReadOperationCount,ReadTransferCount,SessionId,Status,TerminationDate,ThreadCount,UserModeTime,#VirtualSize,WindowsVersion,WorkingSetSize,WriteOperationCount,WriteTransferCount,procidExample:fromcmdlineobserverimportobserve_cmdlinedf=observe_cmdline(#breakcondition=lambdadf:notdf.loc[df.CommandLine.str.contains("cmd.exe")].empty,save_path="c:\\cmdlineobserver.csv",)print(df)


Note:
-TheDataFramecolumnscorrespondtovariousprocessattributes,andyoucancustomizetheconditionstobreaktheobservationloopbasedonspecificcriteria.
Package: cmdline-provenance
Command line provenancecmdline_provenanceis a Python package for keeping track of your data processing steps.It was inspired by the popularNCOandCDOcommand line tools,
which automatically generate a record of what was executed at the command line,
append that record to the history attribute from the input (netCDF) data file,
and then set the new extended record as the history attribute of the output (netCDF) data file.For example, after selecting the 2001-2005 time period from a rainfall data file
and then deleting thelong_namefile attribute,
the command log would look as follows:Fri Dec 08 10:05:47 2017: ncatted -O -a long_name,pr,d,, rainfall_data_2001-2005.nc
Fri Dec 01 07:59:16 2017: cdo seldate,2001-01-01,2005-12-31 rainfall_data_1850-2005.nc rainfall_data_2001-2005.ncFollowing this simple approach to data provenance,
it is possible maintain a record of all data processing steps
from intial download/creation of your data files to the end result (e.g. a .png image).cmdline_provenancecontains a series of functions for generating history records in the NCO/CDO format,
and for combining the current record with previous records to maintain a complete command log.Documentationhttp://cmdline-provenance.readthedocs.io/en/latest/Installationpip install cmdline-provenanceorconda install cmdline_provenance
Package: cmdliner
cmdlinerCmdliner is a python command line parsing library focus on extending scripts/applications with command line parsing features while requiring miminal code for the setup.Minimal Use CaseThe minimal use case provides--versionand-v(vv)for verbosity:fromcmdlinerimportcli,verbose# You just need to decorate your "main" function with cli(version)# version is a required argument, it will be used to provide --version@cli("1.0")defmain():print("hello")verbose(1,"You see this with -v")# Instead of calling your main function directly you call cli(), it will handle# the argument parsing and invoke the previously decorated functionif__name__=="__main__":cli()Testing:$ python test.py
hello
$ python test.py --version
test.py 1.0
$ python test.py -v
hello
You see this with -vUsing command line argumentsfromcmdlinerimportcli@cli("1.0")defmain(name,age):print(f"{name}is{age}years old")if__name__=="__main__":cli()Result:$ python test.py
Missing required command line parameter 'name' !
Usage:
  test.py <name> <age>
$ python test.py Joe 12
Joe is 12 years oldHow to installpip install cmdliner
Package: cmdln
cmdln.pyis an extension of Python’s defaultcmd.pymodule that
provides “a simple framework for writing line-oriented command
interpreters”.  The idea (with both cmd.py and cmdln.py) is to be able
to quickly build multi-sub-command tools (think cvs or svn) and/or
simple interactive shells (think gdb or pdb).  Cmdln’s extensions make
it more natural to write sub-commands, integrate optparse for simple
option processing, and make having good command documentation easier.
Package: cmdlogtime
How to use CMD Log time:Write a Command file that teaches cmdlogtime how to parse your input args:# first line is the description of what the program does.
# subsequent lines list positional arguments (PA), then key-value (KV)arguments (KVA).
# Positional line:
# PA_name|PA_Description|Is_out_dir|Is_Dir|Check_Directory|Is_file|Check_File|||
# Key/Value Line:
# KVA_name|KVA_Description|Is_out_dir|Is_Dir|Check_Directory|Is_file|Check_File|alternate_KVA_name|default value|type
# -print_x_thresh|print every X threshold|0|0|0|0|0|--print_every_x_threshold|1|int
# For KVAs for booleans, set default value to BOOLEANFALSE or BOOLEANTRUE.
# If default is BOOLEANFALSE, then if you set the flag it will be True. (or vice-versa)
# -get_top_words|get top most probable words|0|0|0|0|0|--get_top_probable_words|BOOLEANFALSE|
#  out_dir must be given.
# 
# Example below. First line describes the program
Compute AUCROC and other stats from infile. Print AUCROC and PR curves.
out_dir|Top level directory that holds all the results|1|1|1|0|0|||
infile|file path of file with a file with header in format call(1 or 0)\tX\tValue|0|0|0|1|1|||
-print_x_thresh|print every X threshold|0|0|0|0|0|--print_every_x_threshold|1|intCall cmdlinetime from your code as follows:#!/usr/bin/env python#  need to import cmdlogtimeimportcmdlogtime#need to specify a command line definition file.  See example command line definition file in this directory.COMMAND_LINE_DEF_FILE="./processLincsCommandLine.txt"#There is also an example python file that uses all this stuff in this directory.defmain():# Call cmdlogtime.begin() at the beginning of main()(start_time_secs,pretty_start_time,my_args,logfile)=cmdlogtime.begin(COMMAND_LINE_DEF_FILE,sys.argv[0])# the command line arguments will be in the my_args dictionary returned, so you can access them like this:get_treats_vectors=my_args["get_treats_vectors"]#  Then you put all of your code here.....# if you want to add stuff to the logfile:logfile.write("Run Skim here for each of the B terms files in B_TERMS_DIR")#The only functions you probably will ever need in cmdlogtime are begin(), end(), and maybe make_dir. Here's an example:cmdlogtime.make_dir(intermediate_out_dir)# Call cmdlogtime.end() at the end of main()cmdlogtime.end(logfile,start_time_secs)if__name__=="__main__":main()Reference Blog:https://towardsdatascience.com/an-end-to-end-guide-to-publish-your-python-package-bdb56639662c
Package: cmd-monitor
Command MonitorThis is a command line utility for reporting the status of a long-running job.
This project started because the author got tired of buildingc++code and
having to choose between staring at a screen while waiting for the job to end
or starting another task only to come back much after a job had ended. With
this utility, instead of typing:$ makeyou can instead type:$ cmd_monitor.py "make"When the make job ends, a status notification will show up on your desktop
along with a sound indicating whether the job was successful or not.Installation$ pip install cmd_monitorAdditionally, the default sounds are provided on Ubuntu with theubuntu-soundspackage. Pulseaudio is used to play the sounds (from the packagepulseaudio-utils).
If you are on another distribution, you can override
the default sounds with the following flags:$ cmd_monitor --success_sound /my/success/sound --fail_sound /my/fail/soundOr to have no sound at all:$ cmd_monitor --success_sound "" --fail_sound ""LibraryUsers can also call this as a libraryLICENSEMIT License.
Package: cmdnote
cmdnotecmdnoteis a command line tool which stores your future commands. It can help you to save time in your next demo.Installationpip3 install cmdnoteImportant: Please add the following command to your.bash_profile,.bashrcor other startup script:eval "$(cmdnote func)"Usageusage: cmdnote [-h]
               {func,append,insert,list,next,prev,seek,clear,play,config} ...

cmdnote is a command line tool which stores your future commands.

optional arguments:
  -h, --help            show this help message and exit

sub-commands:
  {func,append,insert,list,next,prev,seek,clear,play,config}
                        cmdnote sub-commands
    func                print the cmdnote function for CLI initialization
    append              append commands to the end of note
    insert              insert commands to the beginning of note
    list                list future commands
    next                get the next command to run
    prev                get the previous command to run
    seek                set the note's current position
    clear               clear future commands
    play                run all future commands
    config              configure cmdnote
Package: cmdOS
def MD(self,nano):#     print("self MD")
  #     ##############
  #     import platform 
  #     self.linuex = (False) if (platform.system()=="Windows") else (True)
  #     ### linux 環境
  #     if  self.linuex:   
  #         with open( '/content/cmd.py/README.md' , 'w+' ,encoding='utf-8') as f:
      
  #             ## 寫入
  #             f.seek(0,0) ## 規0
  #             nano=[ i.strip()+'\n' for i in nano.split('\n') ]
  #             f.writelines( nano ) ## 建檔內容

  #     return self  ###########################
  #     ################ 下一個建構子 必須是接收(物件)
Package: cmd-plan
CmdPlanCmdPlanwill help you plan launch of the system commands. Just define target node name and script will search it at described nodes dictionary, but it will launch their dependencies at first.RequiresPython3Install$pipinstallcmd-planUsageExample:importcmd_planNODES={'TEST':{'command':'python3 manage.py runserver 127.0.0.1:8000',},'TEST_WITH_NOHUP':{'command':'nohup python3 manage.py runserver 127.0.0.1:8000 >/dev/null 2>&1 &',},'SERVER_SIDE':{'command':'./server.sh &',},'CLIENT_SIDE':{'command':'python3 ./client.py','dependencies':['SERVER_SIDE',],}}# Example 1cmd_plan.launch('TEST',NODES)# Run Django debug WEB-server# Example 2cmd_plan.launch('CLIENT_SIDE',NODES)# Run some `client`, but run it `server` at firstLicenseFrom Russia with love.
Package: cmdprogress
cmdprogressCross Platform Python Command Line Progress BarsMacOSWindowsLinuxContentsInstallationProgBarMultiBarAcknowledgementsInstallationUsepipviaPyPipipinstallcmdprogressOrusegitgitclonegit://github.com/luciancooper/cmdprogress.gitcmdprogresscdcmdprogress
pythonsetup.pyinstallUsagethis project consists of two instantiatable classes:ProgBarandMultiBarProgBarThere are two ways to use aProgBarEither give it a length when you instantiate the object, and then directly loop through itfromcmdprogress.barimportProgBarbar=ProgBar(max=5)forxinbar:# x = (0 .. 5)# do some workOr do not provide it a length when you instantiate it, instead provide it an iterable to wrapfromcmdprogress.barimportProgBarbar=ProgBar()forxinbar.iter(range(5)):# x = (0 .. 5)# do some workMultiBarThere are 3 ways to use aMultiBar.fromcmdprogress.multiimportMultiBarbar=MultiBar(lvl=2)foriinbar.iter(range(5)):forjinbar.iter(range(10)):# do some workfromcmdprogress.multiimportMultiBarbar=MultiBar(5,lvl=2)forxinrange(5):foriinbar.iter(range(10)):# do some workfromcmdprogress.multiimportMultiBarbar=MultiBar(5,10)forxinbar:# x will be the tuple (i,j)# do some workAcknowledgementsThis project depends oncoloramato work in the Windows Command LineShoutout to thisstack overflow answer
Package: cmdpxl
cmdpxl: a totally practical command-line image editorFeaturescmdpxl has many exciting functionalities, includingEditing pixelsone at a time!Saving images!An undo function!A fill tool!Cool image filters!InstallationInstall the package with:pipinstallcmdpxlUsageRun withcmdpxl.You can also specify the file path and resolution: for example, to create a new image that is 20px wide and 10px tall you can usecmdpxl -f new_image.png -res 20,10To get the full list of options:$ cmdpxl --help
Usage: main.py [OPTIONS]

Options:
  -f, --filepath PATH      Path for the file you want to open
  -res, --resolution TEXT  Image height and width separated by a comma, e.g.
                           20,10 for a 20x10 image. Note that no spaces can be
                           used.
  --help                   Show this message and exit.ExamplesHere are some images that have been created withcmdpxl. If you have any images you'd like to share, please open a pull request or create an issue.Why?Good question.
Package: cmd.pyo
def MD(self,nano):#     print("self MD")
  #     ##############
  #     import platform 
  #     self.linuex = (False) if (platform.system()=="Windows") else (True)
  #     ### linux 環境
  #     if  self.linuex:   
  #         with open( '/content/cmd.py/README.md' , 'w+' ,encoding='utf-8') as f:
      
  #             ## 寫入
  #             f.seek(0,0) ## 規0
  #             nano=[ i.strip()+'\n' for i in nano.split('\n') ]
  #             f.writelines( nano ) ## 建檔內容

  #     return self  ###########################
  #     ################ 下一個建構子 必須是接收(物件)
Package: cmdr
cmdrCore Model for Data Research (Tentative)Websitehttps://linkml.github.io/cmdrRepository Structureexamples/- example dataproject/- project files (do not edit these)src/- source files (edit these)cmdrschema-- LinkML schema (edit this)datamodel-- Generated python datamodeltests- python testsDeveloper DocumentationUse the `make` command to generate project artefacts:make all: make everythingmake deploy: deploys siteCreditsthis project was made withlinkml-project-cookiecutter
Package: cmdrnafold
Wibble - a template for simple python packagesA minimalist template for a python package.Provides the bl and the blarg commands,
and does basic continuous integraton testing on github.Make a copy of the project, and fix the replacements below.Things to replacegrep -ri word .will find thewordin all the filesfind . | grep wordwill find thewordin any filenamesretospect- changed to your github user namewibble- change to the name of your projectwobble- change to the internal package name you want to useupdate the pyproject.py file to have your name and the right description.
Package: cmds
A library that enables easy running and concatenation of bash commands in
pythonInstallationInstall using pip:pip install cmdsInstall using source code:git clone https://github.com/qiueer/cmds
cd cmds
python setup.py installUsageRun commands as you would in bash:>>> from cmds import cmds
>>> cmds('ls . | grep ".pyc"')
cmds.pycChain commands for the same effect:>>> cmds('ls . ').cmds('grep ".pyc"')
cmds.pycWarningPlease note that this library usesshell=Trueunder the hood. This means
that this library isNOTsuitable for running untrusted commands.(See explanation)Support + ContributingFeel free to make pull requests, or report issues via the repo:https://github.com/qiueer/cmds
Package: cmdsave
CMDSave - Command Line Application for Saving and Managing Terminal Commands for Later UseThis application is only supported on Windows.This application allows you to save and manage terminal commands for easy reference and execution. It provides a command-line interface (CLI) to interact with the application and perform various operations such as saving commands, listing saved commands, deleting commands, and editing the command file.Usage CommandsTo use the application, you can execute the following commands:cmds saveThis command allows you to save a command for easy reference. It prompts you to enter the command you want to save and a name to associate with it. The command and its corresponding name are then stored in a CSV file.cmds listThis command lists all the saved commands stored in the CSV file. You can navigate through the list using the arrow keys and select a command by pressing Enter. The selected command is copied to the clipboard for easy access.cmds deleteThis command enables you to delete a command from the list. It displays the saved commands and allows you to navigate through them using the arrow keys. Pressing Enter on a command prompts you for confirmation to delete it. If confirmed, the selected command is removed from the CSV file.cmds editThis command opens the CSV file in the default text editor (in this case, Notepad). You can use this command to manually edit the CSV file and make changes to the saved commands. Advised to not usecmds editto add new commands. Instead, use thecmds savecommand.Please make sure you have the required dependencies installed before running the application.