Saravanan666/pypi-org huggingface dataset:
Package: click-complete-fig
Autogenerate Completions for CLI tools built withclickAdd the integration to your CLI tool:pipinstallclick_complete_figAdd new subcommand to your CLI tool.You must pass in the root level CLI.Theadd_completion_spec_commandfunction will add a newgenerate-fig-specto the passed inclifromclick_complete_figimportfig@click.group()defcli():passfig.add_completion_spec_command(cli)You can now automatically generate the completion spec skeleton by running the following command:$CLIgenerate-fig-spec>$CLI.ts
Package: click-completion-helper
Click Completion InstallerHelps setting up click-completion when a pip package with click is installed.
Supportsbashfish (currently not implemented)zsh (currently not implemented)Using in your setup.py (setuptools)append as requirement to your setup.pyREQUIRED=['click','inquirer','arrow','pathlib','click-completion-helper','click-default-group']...classInstallCommand(install):defrun(self):install.run(self)self.setup_click_autocompletion()defsetup_click_autocompletion(self):forconsole_scriptinsetup_cfg['options']['entry_points']['console_scripts']:console_call=console_script.split("=")[0].strip()# if click completion helper is fresh installed and not available nowsubprocess.run(["click-completion-helper","setup",console_call,])setup(...setup_requires=['click-completion-helper',...],...)or in setup.cfg:[options]
setup_requires =
  click-completion-helper
Package: click-configfile
clickis a framework to simplify writing composable commands for
command-line tools. This package extends theclickfunctionality
by adding support for commands that use configuration files.EXAMPLE:A configuration file, like:# -- FILE: foo.ini[foo]flag=yesname=Alice and Bobnumbers=1 4 9 16 25filenames=foo/xxx.txtbar/baz/zzz.txt[person.alice]name=Alicebirthyear=1995[person.bob]name=Bobbirthyear=2001can be processed with:# EXAMPLE:# -- FILE: example_command_with_configfile.py (ALL PARTS: simplified)fromclick_configfileimportConfigFileReader,Param,SectionSchemafromclick_configfileimportmatches_sectionimportclickclassConfigSectionSchema(object):"""Describes all config sections of this configuration file."""@matches_section("foo")classFoo(SectionSchema):name=Param(type=str)flag=Param(type=bool,default=True)numbers=Param(type=int,multiple=True)filenames=Param(type=click.Path(),multiple=True)@matches_section("person.*")# Matches multiple sectionsclassPerson(SectionSchema):name=Param(type=str)birthyear=Param(type=click.IntRange(1990,2100))classConfigFileProcessor(ConfigFileReader):config_files=["foo.ini","foo.cfg"]config_section_schemas=[ConfigSectionSchema.Foo,# PRIMARY SCHEMAConfigSectionSchema.Person,]# -- SIMPLIFIED STORAGE-SCHEMA:#   section:person.*        -> storage:person.*#   section:person.alice    -> storage:person.alice#   section:person.bob      -> storage:person.bob# -- ALTERNATIVES: Override ConfigFileReader methods:#  * process_config_section(config_section, storage)#  * get_storage_name_for(section_name)#  * get_storage_for(section_name, storage)# -- COMMAND:CONTEXT_SETTINGS=dict(default_map=ConfigFileProcessor.read_config())@click.command(context_settings=CONTEXT_SETTINGS)@click.option("-n","--number","numbers",type=int,multiple=True)@click.pass_contextdefcommand_with_config(ctx,numbers):# -- ACCESS ADDITIONAL DATA FROM CONFIG FILES: Using ctx.default_mapforperson_data_keyinctx.default_map.keys():ifnotperson_data_key.startswith("person."):continueperson_data=ctx.default_map[person_data_key]process_person_data(person_data)# as dict.
Package: clickcounter
ClickCounterCreate redirect url's with click monitoring from multiple providers.FeaturesGrowing list of click count providers (with a common lib interface)Commandline tool (CLI)Simple and easy to useSupport the development ❤️You can support the development by:Buying the maintainer a coffeeBuying some Lambdarest swagInstallInstall from pypi:$pipinstallclickcounterUsage (module)using the default provider (shorturl.at)importosimporttimeimportclickcountertrack_url=clickcounter.register_url("https://example.com")print(track_url)first_count=clickcounter.get_visits(track_url)print(first_count)clickcounter.make_visit(track_url)time.sleep(2)second_count=clickcounter.get_visits(track_url)print(second_count)# https://shorturl.at/iANR5# 0# 1more examples here:shorturl.at examplelinkclickcounter.com exampleUsage (CLI)usage:_cli.py[-h][--providerPROVIDER][--usernameUSERNAME][--passwordPASSWORD][--urlURL][--trackurlTRACKURL]commandpositionalarguments:commandvalidcommands:register,get,getall

optionalarguments:-h,--helpshowthishelpmessageandexit--providerPROVIDERdefaultstoshorturl.at--usernameUSERNAMEsomeprovidersrequirelogin--passwordPASSWORDsomeprovidersrequirelogin--urlURLusedduringregister--trackurlTRACKURLusedduringgetexample:$clickcounterregister--urlhttps://example.com
https://shorturl.at/wABHQ# visit the link in browser...# and then get click count via:$clickcounterget--trackurlhttps://shorturl.at/wABHQ1
Package: click-creds
click-credsPluggable credentials storage and management forclickCLI applications.Uses~/.netrcfile methodwhich is used by popular CLI applications likeHeroku CLI, AWS CLIs, etc.InstallationRequires python version>=3.6.$pipinstallclick-credsQuickstartHere's an examplecli.pyfile.#!/usr/bin/env python3importclickimportclick_creds@click.group(context_settings=dict(help_option_names=["-h","--help"]))@click_creds.use_netrcstore(name="myawesomeapp",mapping={"login":"username","password":"api_key","account":"url"},)defcli():pass# Register "config" groupcli.add_command(click_creds.config_group)# Entrypointif__name__=="__main__":cli()Now, if we execute./cli.py config,$./cli.pyconfig
Usage:cli.pyconfig[OPTIONS]COMMAND[ARGS]...Setorviewconfigvariables

Options:-h,--helpShowthismessageandexit.

Commands:getEchoconfigvariablessetUpdateconfigvariablesDocumentationPlease see theexample_project.Changelog / ReleasesAll releases should be listed in thereleases tab on GitHub.SeeCHANGELOGfor a more detailed listing.LicenseThis project is published with theBSD License. Seehttps://choosealicense.com/licenses/bsd/for more information about what this means.Creditstinynetrc
Package: click-default-group
Click Default GroupDefaultGroupis a sub class ofclick.Group.  But it invokes a default
subcommand instead of showing a help message when a subcommand is not passed.UsageDefine a default subcommand bydefault=NAME:importclickfromclick_default_groupimportDefaultGroup@click.group(cls=DefaultGroup,default='foo',default_if_no_args=True)defcli():pass@cli.command()deffoo():click.echo('foo')@cli.command()defbar():click.echo('bar')Then you can invoke that without explicit subcommand name:$cli.py--helpUsage: cli.py [OPTIONS] COMMAND [ARGS]...Options:--help    Show this message and exit.Command:foo*bar$cli.pyfoo$cli.pyfoofoo$cli.pybarbarCompatibilityclick-default-groupis compatible with these Click versions:Click-7.0Click-6.xClick-5.1Click-5.0Click-4.1Click-4.0See thelatest build statusat Travis CI.LicensingWritten byHeungsub Lee, and distributed under theBSD 3-Clauselicense.
Package: click-demo
click_demoClick commands Implementation along with Test casesFree software: MIT licenseDocumentation:https://click-demo.readthedocs.io.FeaturesSimple click greeting commandsExamples fromClick DocumentationTesting Click Commands using click.testing.CliRunnerUsageCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-05-06)First release on PyPI.0.2.0 (2019-05-08)More Examples fromClick Documentation.Testing Click Commands using click.testing.CliRunner
Package: click-extra
What is Click Extra?A ready-to-use wrapper forClick, the Python CLI framework.It is a drop-in replacement with good defaults that saves lots of boilerplate code and frustration.
It also comes withworkarounds and patchesthat have not
reached upstream yet (or are unlikely to).ExampleIt transforms this vanillaclickCLI:Into this:To undestrand how we ended up with the result above,go read the tutorial.FeaturesConfiguration fileloader for:TOMLYAMLJSON, with inline and block comments (Python-style#and Javascript-style//)INI, with extended interpolation, multi-level sections and non-native types (list,set, …)XMLAutomatic inference of the configuration file structure from your CLI's optionsRemote loading ofconfiguration files from URLsOptionalstrict validationof configurationRespect thedefault application pathon each platform (XDG spec on Linux)Glob search patternsfor configuration filesRespect ofCLI>Configuration>Environment>DefaultsprecedenceNormalization and discoverability of environment variables--show-paramsoptionto debug parameters defaults, values, environment variables and provenanceClick parameters introspectionColorization of help screensat the semantic-level of options, parameters, subheadings, choices, metavars and defaultsGlobalshow_envvaroption to display all environment variables in help screens-h/--helpoption names (seerant on other inconsistencies)--color/--no-coloroption flag--telemetry/--no-telemetryflag to opt-in/out of tracking codeRecognize traditional environment variable conventions:NO_COLORfromno-color.orgDO_NOT_TRACKfromconsoledonottrack.comColored--versionoptionColored--verbosityoption and logs--time/--no-timeflag to measure duration of command executionGlobalshow_choicesto activate selection of choices on user input promptsPlatform recognitionutilities (macOS, Linux, Windows, UNIX, *BSD, …)New conditional markers forpytest:@skip_linux,@skip_macosand@skip_windows@unless_linux,@unless_macosand@unless_windows.. click:example::and.. click:run::Sphinx directivesto document CLI source code and their executionInline testing of CLI examplesin documentationANSI-capable Pygments lexersfor shell session and console outputFixes 40+ bugsfrom other Click-related projectsRely onCloupto add:option groupsconstraintssubcommands sectionsaliasescommand suggestion (Did you mean <subcommand>?)Used inCheck these projects to get real-life examples ofclick-extrausage:Meta Package Manager- A unifying CLI for multiple package managers.Mail Deduplicate- A
CLI to deduplicate similar emails.fireproxng- A rewrite of the fireprox tool.badger-proxy- An mDNS-based reverse
proxy for naming services on a local network.Feel free to send a PR to add your project in this list if you are relying on Click Extra in any way.DevelopmentDevelopment guidelinesare the same asparent projectmpm, from
whichclick-extraoriginated.
Package: click-fuzzy
Fuzzy Commands for ClickFuzzy command matching and aliases for clickAllows use of automatic prefix aliases and matching small typos:$commandhWARNING: Assuming 'h' is short for 'hello'Hello world!$commandhelolWARNING: Assuming 'helol' is slang for 'hello'Hello world!Explicit aliases can also be defined:$command--helpUsage: command [OPTIONS] COMMAND [ARGS]...Commands:hello, hi  The traditional greeting$commandhi--helpUsage: command hello [OPTIONS]Install$pipinstallclick-fuzzyUsagefromclick_fuzzyimportFuzzyCommandGroup@click.group(cls=FuzzyCommandGroup)defmain(...):...@main.command("hello")@main.alias("hi")defhello():...That's it.  Everything else happens automatically.If you only want explicit aliases, and don't want automatic prefix or fuzzy
matching, useAliasedCommandGroupinstead ofFuzzyCommandGroup:LicenseFuzzy Commands is copyright Amethyst Reese, and licensed under the MIT license.
Package: click-groups
click-groupsEnable grouping and ordering of commands.Would you like to split your commands into sub-groups so that they are nicely organized? Or perhaps you would like to ensure that the order of your commands stays consistent?Now you can do this by specifying few additional group attributes.In yourclickapp:importclickfromclick_groupsimportGroupedGroup@click.group(cls=GroupedGroup)defcli():pass@cli.command(help_group="Group 1",priority=10)defcommand_1():"""Run a command."""@cli.command(help_group="Group 1")defcommand_2():"""Run a command."""@cli.command(help_group="Group 2")defcommand_3():"""Run a command."""@cli.command(help_group="Group 3")defcommand_4():"""Run a command."""@cli.command()defcommand_5():"""Run a command."""@click.group(cls=GroupedGroup)defcommand_6():"""Run a command."""cli.add_command(command_6)@click.group(cls=GroupedGroup)defcommand_7():"""Run a command."""cli.add_command(command_7,help_group="Group 1",priority=0)Which will result in:Usage: cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Group 1:
  command-7  Run a command.
  command-2  Run a command.
  command-1  Run a command.

Group 2:
  command-3  Run a command.

Group 3:
  command-4  Run a command.

Commands:
  command-5  Run a command.
  command-6  Run a command.ContributingContributions are always welcome. Please feel free to submit PRs with new features, bug fixes, or documentation improvements.gitclonehttps://github.com/lukasz-migas/click-groups.git

pipinstall-e.[dev]
Package: click-help-colors
Colorization of help messages inClick.Usageimportclickfromclick_help_colorsimportHelpColorsGroup,HelpColorsCommand@click.group(cls=HelpColorsGroup,help_headers_color='yellow',help_options_color='green')defcli():pass@cli.command()@click.option('--count',default=1,help='Some number.')defcommand1(count):click.echo('command 1')@cli.command(cls=HelpColorsCommand,help_options_color='blue')@click.option('--name',help='Some string.')defcommand2(name):click.echo('command 2')$pythonexample.py--help$pythonexample.pycommand1--help$pythonexample.pycommand2--helpimportclickfromclick_help_colorsimportHelpColorsGroup,HelpColorsCommand@click.group(cls=HelpColorsGroup,help_headers_color='yellow',help_options_color='green',help_options_custom_colors={'command3':'red','command4':'cyan'})defcli():pass@cli.command(cls=HelpColorsCommand,help_headers_color=None,help_options_color=None,help_options_custom_colors={'--count':'red','--subtract':'green'})@click.option('--count',default=1,help='Count help text.')@click.option('--add',default=1,help='Add help text.')@click.option('--subtract',default=1,help='Subtract help text.')defcommand1(count,add,subtract):"""A command"""click.echo('command 1')...$pythonexample_with_custom_colors.py--help$pythonexample_with_custom_colors.pycommand1--helpfromclick_help_colorsimportversion_option@click.group()defcli():pass@cli.command()@version_option(version='1.0',prog_name='example',message_color='green')defcmd1():pass@cli.command()@version_option(version='1.0',prog_name='example',version_color='green',prog_name_color='yellow')defcmd2():pass@cli.command()@version_option(version='1.0',prog_name='example',version_color='green',prog_name_color='white',message='%(prog)s%(version)s\npython=3.7',message_color='bright_black')defcmd3():passInstallationWithpip:$pipinstallclick-help-colorsFrom source:$gitclonehttps://github.com/click-contrib/click-help-colors.git$cdclick-help-colors$pythonsetup.pyinstall
Package: click-hotoffthehamster
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary. It’s the “Command
Line Interface Creation Kit”. It’s highly configurable but comes with
sensible defaults out of the box.It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.Click in three points:Arbitrary nesting of commandsAutomatic help page generationSupports lazy loading of subcommands at runtimeInstallingInstall and update usingpip:$ pip install -U clickA Simple Exampleimportclick@click.command()@click.option("--count",default=1,help="Number of greetings.")@click.option("--name",prompt="Your name",help="The person to greet.")defhello(count,name):"""Simple program that greets NAME for a total of COUNT times."""for_inrange(count):click.echo(f"Hello,{name}!")if__name__=='__main__':hello()$ python hello.py --count=3
Your name: Click
Hello, Click!
Hello, Click!
Hello, Click!DonateThe Pallets organization develops and supports Click and other popular
packages. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects,please
donate today.LinksDocumentation:https://click.palletsprojects.com/Changes:https://click.palletsprojects.com/changes/PyPI Releases:https://pypi.org/project/click/Source Code:https://github.com/pallets/clickIssue Tracker:https://github.com/pallets/click/issuesChat:https://discord.gg/pallets
Package: click-hotoffthehamster-alias
Add (multiple) aliases to aclickgroup or command.In yourclickapp:importclick_hotoffthehamsterasclickfromclick_hotoffthehamsterimportClickAliasedGroup@click.group(cls=ClickAliasedGroup)defcli():pass@cli.command(aliases=['bar','baz','qux'])deffoo():"""Run a command."""click.echo('foo')Will result in:Usage: cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  foo (bar,baz,qux)  Run a command.
Package: clickhouse2pandas
clickhouse2pandasSelectClickHousedata, convertto pandasdataframes and various other formats, by using theClickHouse HTTP interface.FeaturesThe transmitting data iscompressedby default, which reduces network traffic and thus reduces the time for downloading data.Comes with a dynamic download label, which shows how many data is downloaded.Converts the ClickHouse query result into proper pandas data types, e.g.,ClickHouse DateTime-> pandas datetime64.Minimum dependencies, 5 standard python libraries (urllib, http, gzip, json, time) and 1 external library (pandas).Installationpip install clickhouse2pandasUsageimportclickhouse2pandasasch2pdconnection_url='http://user:password@clickhouse_host:8123'query='select * from system.numbers limit 1000000'df=ch2pd.select(connection_url,query)# df is a pandas dataframe converted from ClickHouse query resultAPI Referenceclickhouse2pandas.select(connection_url,query=None,convert_to='DataFrame',settings=None)Return a formatted query result specified by "convert_to" parameter.Parameters:connection_url: the connection url to the ClickHouse HTTP interface, e.g.,http://user:password@clickhouse_host:8123query: the SQL query, the query should start with 'select'convert_to: convert the query result into specific format, could be one of the following: 'DataFrame', 'TabSeparated', 'TabSeparatedRaw', 'TabSeparatedWithNames', 'TabSeparatedWithNamesAndTypes', 'CSV', 'CSVWithNames', 'Values', 'Vertical', 'JSON', 'JSONCompact', 'JSONEachRow', 'TSKV', 'Pretty', 'PrettyCompact', 'PrettyCompactMonoBlock', 'PrettyNoEscapes',  'PrettySpace', 'XML'. Refer to ClickHouseInput and Output Formatssettings: a dict containing the setting key-values, default settings are {'enable_http_compression': 1, 'send_progress_in_http_headers': 0,'log_queries': 1, 'connect_timeout': 10, 'receive_timeout': 300, 'send_timeout': 300, 'output_format_json_quote_64bit_integers': 0, 'wait_end_of_query': 0}. Refer to ClickHouseSettings
Package: clickhouse-arrow
Clickhouse Arrow 🏠 🏹A minimalClickHouseclient that uses the HTTP API and Apache Arrow.You should probably useClickhouse Connectinstead.Installationpipinstallclickhouse_arrowExamplesimportclickhouse_arrowaschimportpyarrowaspa# Initialise a clientclient=ch.Client("http://localhost:8123",password="password")# Create a tableclient.execute("""CREATE TABLE test (col1 Int64,col2 String)ENGINE = Memory""",)# Import a tabletable=pa.Table.from_pydict({"col1":[1,2,3],"col2":["a","b","d"],},)client.insert("test",table)# Read into a tabletable=client.read_table("SELECT * FROM test")print(table)# Read iterator of batchesbatches=client.read_batches("SELECT * FROM test")forbatchinbatches:print(batch)# Use query parameterstable=client.read_table("""SELECT * FROM testWHERE col1 = {value:Int64}""",params={"value":2},)print(table)# Use query settingstable=client.read_table("SELECT col2 FROM test",settings={"output_format_arrow_string_as_string":1},)print(table["col2"])
Package: clickhouse-cityhash
A fork of Python wrapper aroundCityHashwith downgraded version of algorithm. This fork used as 3-rd party library
for hashing data in ClickHouse protocol. Unfortunately ClickHouse
server comes with built-in old version of this algorithm.Please use originalpython-cityhashpackage for other purposes.Getting StartedTo use this package in your program, simply typepipinstallclickhouse-cityhashSee AlsoFor other fast non-cryptographic hashing implementations available as Python
extensions, seeMetroHashandxxh.AuthorsThe Python bindings were originally written by Alexander [Amper] Marshalov and
were subsequently edited for more speed/versatility and packaged for PyPI by
Eugene Scherba. The original CityHash algorithm is by Google.LicenseThis software is licensed under theMIT License.  See the included LICENSE
file for more information.
Package: clickhouse-client-pool
Table of ContentsIntroInstallationInstallationLicenseIntroA NaiveThread Safeclickhouse-client-pool based onclickhouse_driver.Installationclickhouse-client-pool is distributed onPyPIas a universal
wheel and is available on Linux/macOS and Windows and supports
Python 2.7/3.6+.$pipinstallclickhouse-client-poolfromclickhouse_client_poolimportClientclient=Client('127.0.0.1',9000,max_connections=10)client.execute("select 1")InstallationLicenseclickhouse-client-pool is distributed under the terms ofMIT Licenseat your option.
Package: clickhouse-connect
ClickHouse ConnectA high performance core database driver for connecting ClickHouse to Python, Pandas, and SupersetPandas DataFramesNumpy ArraysPyArrow TablesSuperset ConnectorSQLAlchemy 1.3 and 1.4 (limited feature set)ClickHouse Connect currently uses the ClickHouse HTTP interface for maximum compatibility.Installationpip install clickhouse-connectClickHouse Connect requires Python 3.8 or higher.Superset ConnectivityClickHouse Connect is fully integrated with Apache Superset.  Previous versions of ClickHouse Connect utilized a
dynamically loaded Superset Engine Spec, but as of Superset v2.1.0 the engine spec was incorporated into the main
Apache Superset project and removed from clickhouse-connect in v0.6.0.  If you have issues connecting to earlier
versions of Superset, please use clickhouse-connect v0.5.25.When creating a Superset Data Source, either use the provided connection dialog, or a SqlAlchemy DSN in the formclickhousedb://{username}:{password}@{host}:{port}.SQLAlchemy ImplementationClickHouse Connect incorporates a minimal SQLAlchemy implementation (without any ORM features) for compatibility with
Superset.  It has only been tested against SQLAlchemy versions 1.3.x and 1.4.x, and is unlikely to work with more
complex SQLAlchemy applications.Complete DocumentationThe documentation for ClickHouse Connect has moved toClickHouse Docs
Package: clickhouse-connect-micropip
ClickHouse ConnectA high performance core database driver for connecting ClickHouse to Python, Pandas, and SupersetPandas DataFramesNumpy ArraysPyArrow TablesSuperset ConnectorSQLAlchemy 1.3 and 1.4 (limited feature set)ClickHouse Connect currently uses the ClickHouse HTTP interface for maximum compatibility.Installationpip install clickhouse-connectClickHouse Connect requires Python 3.8 or higher.Superset ConnectivityClickHouse Connect is fully integrated with Apache Superset.  Previous versions of ClickHouse Connect utilized a
dynamically loaded Superset Engine Spec, but as of Superset v2.1.0 the engine spec was incorporated into the main
Apache Superset project and removed from clickhouse-connect in v0.6.0.  If you have issues connecting to earlier
versions of Superset, please use clickhouse-connect v0.5.25.When creating a Superset Data Source, either use the provided connection dialog, or a SqlAlchemy DSN in the formclickhousedb://{username}:{password}@{host}:{port}.SQLAlchemy ImplementationClickHouse Connect incorporates a minimal SQLAlchemy implementation (without any ORM features) for compatibility with
Superset.  It has only been tested against SQLAlchemy versions 1.3.x and 1.4.x, and is unlikely to work with more
complex SQLAlchemy applications.Complete DocumentationThe documentation for ClickHouse Connect has moved toClickHouse Docs