Saravanan666/pypi-org huggingface dataset:
Package: clickpanda
PandahousePandas interface for Clickhouse HTTP APIInstallpipinstallpandahouseUsageWriting dataframe to clickhouseconnection={'host':'http://clickhouse-host:8123','database':'test'affected_rows=to_clickhouse(df,table='name',connection=connection)Reading arbitrary clickhouse query to pandasdf=read_clickhouse('SELECT * FROM{db}.table',index_col='id',connection=connection)
Package: click-params
click-paramsA bunch of useful click parameter types.Why?I often find myself wanting to use a click parameter able to handle list of strings, so I decide to put this in a library
and I ended adding more parameter types that can be useful for various scripts including network, mathematics and so on.Installationpipinstallclick-paramsclick-params starts working frompython 3.8. It has a few dependencies:click>= 7.0validatorsdeprecatedUsageimportclickfromclick_paramsimportIpv4AddressListParamType@click.command()@click.option('-a','--addresses',help='list of ipv4 addresses',prompt='list of ipv4 addresses to reserve',type=Ipv4AddressListParamType())defpool(addresses):click.echo('reserved ips:')foripinaddresses:click.echo(ip)$pool--addresses='192.168.1.1,192.168.1.14'reservedips:192.168.1.1192.168.1.14You can change the default separator "," by passing it when initializing the parameter type.DocumentationDocumentation is available athttps://click-params.readthedocs.io/en/latest/.
Package: click-path
Advanced Path Types for ClickA library of path-like types for the Click command-line library.I really like theclicklibrary for creating Python command-line interfaces, however, I've run into issues because it lacks the ability to do a couple of key things - namely the ability to produce apathlib.Pathargument and the ability to use glob-based arguments. I am hoping to fix both of these with, and eventually add more useful commandline parameter types to this library. This library primarily implemented custom types for click parameters similar to how they'redescribed here.Installation & SetupTo install click-path withpipexecute the following:pipinstall/path/to/repo/click-pathIf you don't want to re-install every time there is an update, and prefer to just pull from the git repository, then use the-eflag.Usage ExamplesPathlibPathAllows the user of this library (andclick) to create CLIs which outputPathparameter types with a lot of the same validation as what's available for the standardclick.Pathtype. Here is an example:frompathlibimportPathimportclickfromclick_pathimportPathlibPathEXISTING_READABLE_FILE=PathlibPath(exists=True,file_okay=True,dir_okay=False,writable=False,readable=True,resolve_path=True)@click.command()@click.option('-t','--test',type=EXISTING_READABLE_FILE)defcli_existing_readable_file(test:Path):click.echo(str(test))GlobPathsGlobPathsallow you to take commandline arguments in the form of/path/to/directory/*which then produces aniterableofpathlib.Pathobjects for you to work with. It also allows filtering of said iterable of paths based on some specific parameters, like read/write permissions, and files vs. directories.importclickfromclick_pathimportGlobPathsREADABLE_FILES=GlobPaths(extant_only=False,files_okay=True,dirs_okay=False,writable_only=False,readable_only=True,resolve=False,at_least_one=True)@click.command()@click.option('-t','--tests',type=READABLE_FILES)@typecheckeddefcli(tests:Iterable[Path]):click.echo(str(tests))DevelopmentFor development, you're going to want to set up a virtual development environment withpipenvby following the linked instructions. I also strongly recommend setting theexport PIPENV_VENV_IN_PROJECT=1environment variable in your~/.bashrcor~/.zshrcfile because that makes the venvs much easier to work with.Then execute the following in the repo directory:pipenv--threeTo install the package for development, please use thedevextrainside the virtualenvpipenvinstall-e"/path/to/repo/click-path[dev]"The-einstalls the package in place for development, so that you don't have to reinstall when you make changes.Running TestsYou can run all the tests with pytest and coverage (or all the unit tests, by changing the path totests/unit) like so inside the virtualenv (pipenv shell):(click-path)pytest-s-vv--cov=click_path--cov-report=term-missing--cov-branchtestsSimilarly, if you'd like to add HTML coverage reporting:(click-path)pytest-s-vv--cov=click_path--cov-report=html:htmlcov--cov-report=term-missing--cov-branchtests
Package: click-pathlib
Click PathlibA Pythonclicktype which is similar toclick.Pathbut returns aPathlib.Path.ContentsClick PathlibInstallationUsageCreditsContributingInstallation$pipinstallclick-pathlibThis supports Python 3.8+.UsageUse theclick_pathlib.Pathjust like aclick.Pathtype and your function will receive apathlib.Path.importclickimportclick_pathlib@click.command('delete')@click.argument('existing_file',type=click_pathlib.Path(exists=True),)defdelete(existing_file):existing_file.unlink()CreditsThanks to@jeremyhfor describing this solution on GitHub athttps://github.com/pallets/click/issues/405#issuecomment-470812067.ContributingSeeCONTRIBUTING.rst.
Package: clickplc
clickplcPython ≥3.8 driver and command-line tool forKoyo Ethernet ClickPLCs.Installationpip install clickplcUsageCommand Line$ clickplc the-plc-ip-addressThis will print all the X, Y, DS, and DF registers to stdout as JSON. You can pipe
this as needed. However, you'll likely want the python functionality below.PythonThis uses Python ≥3.5's async/await syntax to asynchronously communicate with
a ClickPLC. For example:importasynciofromclickplcimportClickPLCasyncdefget():asyncwithClickPLC('the-plc-ip-address')asplc:print(awaitplc.get('df1-df500'))asyncio.run(get())The entire API isgetandset, and takes a range of inputs:>>>awaitplc.get('df1')0.0>>>awaitplc.get('df1-df20'){'df1':0.0,'df2':0.0,...,'df20':0.0}>>>awaitplc.get('y101-y316'){'y101':False,'y102':False,...,'y316':False}>>>awaitplc.set('df1',0.0)# Sets DF1 to 0.0>>>awaitplc.set('df1',[0.0,0.0,0.0])# Sets DF1-DF3 to 0.0.>>>awaitplc.set('y101',True)# Sets Y101 to trueCurrently, only X, Y, C, DS, DF, and CTD are supported:xboolInput pointyboolOutput pointcbool(C)ontrol relaydffloat(D)ata register, (f)loating pointdsint16(D)ata register, (s)igned intctdint32(C)oun(t)er Current Values, (d)ouble intWe personally haven't needed to use the other categories, but they are
straightforward to add if needed.Tags / NicknamesRecent ClickPLC software provides the ability to export a "tags file", which
contains all variables with user-assigned nicknames. The tags file can be used
with this driver to improve code readability. (Who really wants to think about
modbus addresses and register/coil types?)To export a tags file, open the ClickPLC software, go to the Address Picker,
select "Display MODBUS address", and export the file.Once you have this file, simply pass the file path to the driver. You can nowsetvariables by name andgetall named variables by default.asyncwithClickPLC('the-plc-ip-address','path-to-tags.csv')asplc:awaitplc.set('my-nickname',True)# Set variable by nicknameprint(awaitplc.get())# Get all named variables in tags fileAdditionally, the tags file can be used with the commandline tool to provide more informative output:$ clickplc the-plc-ip-address tags-filepath
Package: click-plus
This package helps creating re-usable flags for click scripts.FeaturesThe flags (defined elsewhere) can be used as:import click
import click.plus

@click.command()
.. normal click options/arguments
@click.plus.configure(["boost"])
def main():
    ...There’s a commented example with amainscript and the arguments
groupargs.RequirementsPython>= 3.5.clickInstallationYou can installclick-plusviapipfromPyPI:$ pip install click-plus
Package: clickpoints
Click Points is a program written in the Python programming language, which serves on the one hand as an image viewer and on the other hand as an data display and annotation tool. Every frame can be annotated by a description, marked points/tracks, or marked areas (paint brush). This helps to view image data, do manual evaluation of data, helps to create semi-automatic evaluation or display the results of automatic image evaluation.Please refere to ourDocumentationfor more information and instructions on installing it.
Package: click-prompt
click-promptclick-prompt provides more beautiful interactive options for the Python click
library. The library is inspired by a post onstackoverflow.comUsageThe library can be used in two ways: 1) as decorator, or 2) as type parameter.With decoratorsimportclickfromclick_promptimportchoice_option@click.command()@choice_option('--fruit',type=click.Choice(['Apples','Bananas','Grapefruits','Mangoes']))defselect_fruit(fruit:str):print(fruit)As classimportclickfromclick_promptimportChoiceOption@click.command()@click.option('--fruit',type=click.Choice(['Apples','Bananas','Grapefruits','Mangoes']),cls=ChoiceOption)defselect_fruit(fruit:str):print(fruit)ExampleAvailable DecoratorsHere is a list of available decorators that can be used with the click library
instead of aclick.Optiondecoratorchoice_option: Select a single item out of a list. Use the parametermultiple=Trueto select multiple items out of a listconfirm_option: Yes/No confirmationfilepath_option: Select a file path with auto completionauto_complete_option: Auto completion given a listfor everyclick.Optionthere is also aclick.Argumentimplementation
Package: click-pwsh
PS>click-pwshAclickextension to support shell completion forPowerShell 7.This extension is written based on click8.x(i.e., the rewritten click's completion system). Be aware of your click version before using it.Hope it can provide smooth experiences for Windows users. d(`･∀･)bInstallationYou can get the package from PyPI:PS>pipinstallclick-pwshQuickstartAdd the following code at the top of your script:fromclick_pwshimportsupport_pwsh_shell_completionsupport_pwsh_shell_completion()And run the following command to install the shell completion:PS>python-mclick_pwshinstallfoo-bar
Complete.wherefoo-baris your command name.Then ... all done. Re-open PowerShell 7 and enjoy the shell completion!Update Shell Completion ScriptsIf you upgrade click-pwsh, you can use the following command to update your shell completion scripts:PS>python-mclick_pwshupdatefoo-bar
Complete.wherefoo-baris your command name whose shell completion scripts have already installed before.
Package: clickpy
clickpyAutomated mouse clicker script usingPyAutoGUIandTyper.This app will randomly click your mouse between 1 second and 3 minutes, to prevent your screen and apps from sleeping or displaying anawaystatus.The rational behind the random interval is: if the mouse contiually clicked every second or millisecond, it could easily be detected as an automated process.The random interval provides a sembalance of feasability, although the interval could be reduced and extended as needed, or move the cursor after a couple consecutive clicks. (Possibe future feature?)PyAutoGUI provides a simple interface to the mouse, and Typer provides simple cli parsing. You can find out more about these libraries with the links provided above.InstallationThis package supports Python 3.6 through 3.9. It does not support any version of Python 2, nor any version of 3 lower than 3.6. Please upgrade our Python version, if possible.I highly recommend usingpipxfor installing standalone packages, as it adds a layer of isolation to your installation. But pip will also work.pipxinstallclickpy# -- or --pipinstallclickpyIf you're using macOS or Linux, you may have to install additional dependencies for PyAutoGUI to work properly. Please review theirdocsfor additional information.Windows users don't have to install any additional software.To uninstall, type in your terminal:pipxuninstallclickpy# -- or --pipuninstallclickpyRunningOnce this package is installed, and any additional dependencies too, run the app like so:clickpyTo stop it, pressctrl+c.There are 3 flags you can use;-dwill display debug information,-fwill speed the app up to 1 click every second, and--helpwill display the help menu.For DevelopersPlease readcontributing.mdfor more information about this repo, how it's maintained and developed. And feel free to make PRs.
Package: click-repl
click-replInstallationInstallation is done via pip:pip install click-replUsageIn yourclickapp:importclickfromclick_replimportregister_repl@click.group()defcli():pass@cli.command()defhello():click.echo("Hello world!")register_repl(cli)cli()In the shell:$ my_app repl
> hello
Hello world!
> ^C
$ echo hello | my_app repl
Hello world!Features not shown:Tab-completion.The parent context is reused, which meansctx.objpersists between
subcommands. If you're keeping caches on that object (like I do), using the
app's repl instead of the shell is a huge performance win.!- prefix executes shell commands.You can use the internal:helpcommand to explain usage.Advanced UsageFor more flexibility over how your REPL works you can use thereplfunction
directly instead ofregister_repl. For example, in your app:importclickfromclick_replimportreplfromprompt_toolkit.historyimportFileHistory@click.group()defcli():pass@cli.command()defmyrepl():prompt_kwargs={'history':FileHistory('/etc/myrepl/myrepl-history'),}repl(click.get_current_context(),prompt_kwargs=prompt_kwargs)cli()And then your custommyreplcommand will be available on your CLI, which
will start a REPL which has its history stored in/etc/myrepl/myrepl-historyand persist between sessions.Any arguments that can be passed to thepython-prompt-toolkitPromptclass
can be passed in theprompt_kwargsargument and will be used when
instantiating yourPrompt.
Package: click-rich-help
click-rich-helpmake a beautiful click app with richTable of ContentsAbout The ProjectBuilt WithGetting StartedInstallationUsageContributingAcknowledgmentsAbout The ProjectI wanted a simple python package to make my click app's help more readable.Since writing this package the more opinionatedrich-clickhas been written.
If that output is more your speed, go check it out! This project aims to provide a slightly different API and set of features.Getting StartedInstallationwith pip:pipinstallclick-rich-helpwith conda/mamba:condainstall-cconda-forgeclick-rich-help(back to top)UsageAs ofv22.1.0you may no longer generate styles using named args.At a minimum you should applyStyledGroupto yourclickgroup.
If you have only oneCommandorMulticommandyou may also use the includedStyledCommandorStyledMultiCommand.importclickfromclick_rich_helpimportStyledGroup@click.group(cls=StyledGroup,)defcli():passimportclickfromclick_rich_helpimportStyledCommand@click.command(cls=StyledCommand,)defcmd():passSee thedocumentationfor more infoTo non-interactively preview the included example module in your own terminal you can runW/click-rich-helpandcurlcurl-shttps://raw.githubusercontent.com/daylinmorgan/click-rich-help/main/scripts/example.sh|bashYou can also run it yourself if you have installedclick-rich-help. Which you should!python-mclick_rich_help.example-h(back to top)ContributingTo contribute please utilizepoetryandpre-commit.optionally manage python installation withconda:condacreate-p./envpythonpoetryThen follow the below stepsFork the ProjectInstall the package and dev dependencies w/poetry(cd click-rich-help; poetry install)Create your Feature Branch (git checkout -b feat/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Run the tests (mypy click_rich_help; py.test tests)Push to the Branch (git push origin feat/AmazingFeature)Open a Pull Request(back to top)Acknowledgmentsclickrichclick-help-colors(back to top)
Package: click-shell
click-shell is an extension toclickthat easily turns your click app into a shell utility.
It is built on top of the built in pythoncmdmodule, with modifications to make it work with click.FeaturesAdds a “shell” modewith command completionto any click appJust a one line change for most click appsUsageSimply replace@click.groupwith@click_shell.shellon the root level command:fromclick_shellimportshell# @click.group()  # no longer@shell(prompt='my-app > ',intro='Starting my app...')defmy_app():pass@my_app.command()deftestcommand():print('testcommand is running')# more commandsif__name__=='__main__':my_app()When run, you should expect an output like so:$pythonmy_app.pyStartingmyapp...my-app>testcommandtestcommandisrunningmy-app>NoteIt should be noted that this decoratoronlyalters functionality if no arguments are
passed on the command line.  If you try to run a command directly
(likepython my_app.py the_commandin the above example), your app will function
identically to how it did before.For more advanced usage, check out our docs athttps://click-shell.readthedocs.io/
Package: clickshot
ClickshotA framework for easier cross-platform GUI testing.InstallationpipinstallclickshotUsageTODODevelopmentRequiresPoetry.gitclonehttps://github.com/sneakypete81/clickshot.git
poetryinstallThen you can use the following:poetryrunpytest# Run all unit testspoetryrunflake8# Run the linterpoetryrunblack.# Run the code autoformatterpoetryruntox# Run all checks across all supported Python versionspoetryshell# Open a venv shell with your local clone installed
Package: click-spinner
Click SpinnerSometimes you would just like to show the user some progress,
but a progress bar is not suitable because you don’t know how much longer it would take.
In these cases you might want to display a simple spinner using thespinner()function.Example usage:withclick_spinner.spinner():do_something()do_something_else()It looks like this:Spinner class based on on agist by @cevaris.Introduced inPR #649.Installpip install click-spinnerSupports Python 2.7 and 3.Authors@yoavram@andy-maier@AdrienPensart
Package: click-stream
Click option type for http/https/file inputsUsageimportclickfromclick_streamimportStream@click.command()@click.option('--in',type=Stream())defstreamcli(inp):click.echo(inp.read())Supported inputs# files
$ cli --in /path/to/file.txt

# stdin
$ echo input from stdin | cli --in -

# HTTP/S
$ cli http://google.com
Package: clicktypes
clicktypesAdditional types for theclickmodule that I find useful.For a list of available types check theREADMEfile from the module.InstallationInstall from PyPI:## Python 3python3-mpipinstallclicktypes## PyPy3pypy3-mpipinstallclicktypesExamplesThe following are some examples. For complete examples check the appropriate README.NetworkingIf you accept an IP address parameter:fromclicktypes.networkimportIPAddressParam@click.argument('ip',nargs=-1,required=True,type=IPAddressParam(),)This will validate the IP or IP's provided are IPv4 or IPv6 addresses and return them as anIPv4AddressorIPv6Addressobject.WebIf you accept an email address parameter:fromclicktypes.webimportEmailParam@click.argument('email',nargs=-1,required=True,type=EmailParam(),)This will validate the email address provided matches an approved regex and it will convert it to lowercase.
Package: click-types
click-types: Python library that provides useful click typesclickis theCommand line interface creation kitand it helps you to create command line interfaces with some few lines of code. Click comes with meaningful defauls to make starting with it as easy as possible.A powerful feature of click is to develop custom types to convert and/or validate user input. There are several custom types in the wild but this repository is intended to collect such custom types to make it easily accessable.InstallationCurrently we support two ways of installingclick-typeson your system. We will both illustrate short in the following sections.Installing from pypiWe release all versions onpypi.org, so you can simply usepipto install it.pipinstallclick-typesInstall from repositoryAlternatively you can install it from a local clone of ourgithub repository.$gitclonehttps://github.com/codeaffen/click-types.git
Cloninginto'click-types'...
remote:Enumeratingobjects:83,done.
remote:Countingobjects:100%(83/83),done.
remote:Compressingobjects:100%(59/59),done.
remote:Total83(delta25),reused72(delta16),pack-reused0Unpackingobjects:100%(83/83),29.77KiB|441.00KiB/s,done.
$cdclick-types/
$pythonsetup.pyinstallCustom typesNameModuleDescriptionAnsibleVaultParamTypeclick_types.ansibleManages secret values in ansible vaults. This type open the configured vault put the value to the given path and close vault.SemVerParamTypeclick_types.codingProvides validity checks for semantic versions.CIDRParamTypeclick_types.netChecking a given IP network/prefix if it's a valid CIDR. Both ip version (v4 and v6) are supported.VlanParamTypeclick_types.netValidates vlan ids according to IEEE 802.1Q standard.
Package: clickui-unofficial
Unofficial Click UISo, you have just designed a new command line app that works for you.
Now, you have a user base, who is not an IT/Software professional.And you need an UI probably!And a Basic one would suffice?Then you can use this project/library to quickly create an UI with just 3 Lines of extra code.Add this project in your requirement.txt/setup.pyImport the annotationUse the annotationThis project is not promising you any fairytale UI framework.
It ONLY promises to be less obnoxious to non-IT non-Techinacal people.
If you need something extravagant, you better design your own framework.Also, I never intend it to be part of any other framework.
As I don't want make any other person to alter their way of working or coding because of this.InstallationCurrently this project is published in the pypi index.
I wanted to publish it when it is stable. But seems like people will use it before it's stable.
Simply install it using pip, or add it to your requirements.txt or setup.pypipinstallclickui-unofficialUsagefromclickuiimportmake_ui# This one is from this frameworkimportclick# Decorate your existing click command if you need an UI@make_ui@click.command('Sample Command')defsample_command():passLinksScreenshot
Package: clickup-priorities
Prioridades Clickupsacar las prioridades de una(varias) vista(s) de clickup ᕙ( • ᴗ • )ᕗPrerequisitosPython 3.9+Ejemplo de usopip installfrom clickup_priorities import priorities


priorities("Your_view_urls", {"Authorization": 'Your_authorization'})Output{'date': '2022-11-03', 'urgent_count': 4, 'urgent_time': 8.0, 'high_count': 26, 'high_time': 6.5, 
'normal_count': 41, 'normal_time': 20.2, 'low_count': 28, 'low_time': 41.0}
Package: clickup-python
clickup-pythonClickUp API wrapper written in pythonInstallingpip install git+https://github.com/GearPlug/clickup-python.gitRequirementsrequestsContributingWe are always grateful for any kind of contribution including but not limited to bug reports, code enhancements, bug fixes, and even functionality suggestions.You can report any bug you find or suggest new functionality with a newissue.If you want to add yourself some functionality to the wrapper:Fork it (https://github.com/GearPlug/clickup-python)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Adds my new feature')Push to the branch (git push origin my-new-feature)Create a new Pull Request
Package: clickuptoexcel
ClickUp to ExcelReplicate ClickUp Database using Excel.Developed byDipan Nanda(c) 2023Example of UsagefromclickuptoexcelimportMigrate2Excellocation='C:/Data/'attributes=Noneapi_key="""<YOUR_API_KEY>"""helper=Migrate2Excel(location=location,clickup_api_token=api_key,attribute_values=attributes)""":param string location: specify where you would want the database to be replicated:param list attributes: list of attributes that you want in your excel files:param string api_key: your Clickup API Token"""helper.start()ChangelogGohereto checkout the complete changelog.LicenseThis is under GNU GPL v3.0 License