Saravanan666/pypi-org huggingface dataset:
Package: cloup
Cloup— originally from “Click + option groups” — enrichesClickwith several features that make it
more expressive and configurable:option groupsand an (optional) help section for positional argumentsconstraints, likemutually_exclusive, that can be applied to option groups
or to any group of parameters, evenconditionallysubcommand aliasessubcommands sections, i.e. the possibility of organizing the subcommands of aGroupin multiple help sectionsathemeable HelpFormatterthat:has more parameters for adjusting widths and spacing, which can be provided
at the context and command leveluse a different layout when the terminal width is below a certain threshold
in order to improve readabilitysuggestions like “did you mean <subcommand>?” when you mistype a subcommand.Moreover, Cloup improves onIDE supportproviding decorators withdetailedtype hints and adding the static methodsContext.settings()andHelpFormatter.settings()for creating dictionaries of settings.Cloup isstatically type-checkedwith MyPy in strict mode and extensivelytestedagainst multiple versions of Python with nearly 100% coverage.A simple examplefromcloupimport(HelpFormatter,HelpTheme,Style,command,option,option_group)fromcloup.constraintsimportRequireAtLeast,mutually_exclusive# Check the docs for all available arguments of HelpFormatter and HelpTheme.formatter_settings=HelpFormatter.settings(theme=HelpTheme(invoked_command=Style(fg='bright_yellow'),heading=Style(fg='bright_white',bold=True),constraint=Style(fg='magenta'),col1=Style(fg='bright_yellow'),))# In a multi-command app, you can pass formatter_settings as part# of your context_settings so that they are propagated to subcommands.@command(formatter_settings=formatter_settings)@option_group("Cool options",option('--foo',help='This text should describe the option --foo.'),option('--bar',help='This text should describe the option --bar.'),constraint=mutually_exclusive,)@option_group("Other cool options","This is the optional description of this option group.",option('--pippo',help='This text should describe the option --pippo.'),option('--pluto',help='This text should describe the option --pluto.'),constraint=RequireAtLeast(1),)defcmd(**kwargs):"""This is the command description."""passif__name__=='__main__':cmd(prog_name='invoked-command')If you don’t provide--pippoor--pluto:Usage: invoked-command [OPTIONS]
Try 'invoked-command --help' for help.

Error: at least 1 of the following parameters must be set:
  --pippo
  --plutoThis simple example just scratches the surface. Read more in the documentation
(links below).Supporting the projectDesigning, testing and documenting a library takes a lot of time. The most
concrete way to show your appreciation and to support future development is by
donating. Any amount is appreciated.Apart from that, you can help the project by starring it on GitHub, reporting
issues, proposing improvements and contributing with your code!LinksDocumentation (release|development)ChangelogGitHub repositoryQ&A and discussions
Package: clout
docscodetestspackageConvert dataclasses into a command-line interface.QuickstartTo install, usepipinstallcloutDefine some dataclasses and convert them into a command-line interface.importattrimportclickimportclout@attr.dataclassclassDB:host:strport:int@attr.dataclassclassConfig:db:DBdry_run:boolcli=clout.Command(Config)print(cli.build())$myapp--dry-rundb--hostexample.com--port9999Config(db=DB(host='example.com',port=9999),dry_run=True)See the full docs for more information:https://clout.readthedocs.io/
Package: clova-cek-sdk
Clova Extension Kit SDK for PythonThis is a python library to simplify the use of the Clova Extensions Kit API.DocumentationClova Platform GuideSTABLE—most recently tagged version of the API documentation.LATEST—in-development version of the API documentation.Installationpip install clova-cek-sdkDevelopmentRun Testspython -m unittest discover -s ./test -p 'test_*.py'Building docs locallyRequirementspip install -e '.[docs]'Buildsphinx-versioning build docs docs/_build/html
Package: clovaTTS
clovaTTSclova-tts performs text-to-speech usingNaver Clova Speech Synthesis API.Installationpip install clovaTTSQuickstartfrom clovaTTS import clovaTTS

# clovaTTS can save sound data in an internal cache and reuse it. cache_dir should exist.
# Default: use_cache=False
tts = clovaTTS("mijin", "<client_id>", "<client_secret>", use_cache=True, cache_dir="/home/ttscache")

# Input text (in Korean)
text = "그래요. 많은 분들이 저를 찾고 있지요."

# Perform Text-to-Speech
speech = tts.tts(text)

# Save the output into a file
tts.save("output.mp3", speech)ContactAny questions or assistance? Please contact me at minsu(at)etri.re.kr.
Package: clovax
Naver Clova X Unofficial APIUnofficial API for Naver Clova X, a Korean AI LLM (Language Model) service.Installpip install clovaxHow can I get cookie file?InstallGet cookies.txt LOCALLYExport cookieSet cookie file path toget_cookiefunctionUsageStart a conversationfromclovaximportClovaXc=ClovaX()c.get_cookie("[Your netscape cookie file]")log=c.start("Hello world!")print(log["text"])Continue a conversationfromclovaximportClovaXc=ClovaX()c.get_cookie("[Your netscape cookie file]")log=c.start("Hello world!")print(log["text"])# At this time, you can continue the conversation using existed session (conversation ID)log=c.conversation("Who are you?")print(log["text"])Regenerate a conversationfromclovaximportClovaXc=ClovaX()c.get_cookie("[Your netscape cookie file]")log=c.start("Hello world!")log=c.regenerate()print(log["text"])Conversation with a skillsetfromclovaximportClovaXimportjsonc=ClovaX()c.get_cookie("clova-x.naver.com_cookies.txt")log=c.start("가을에 입을만한 바지 추천해 줘",skillsets=["shopping","travel"])withopen("./test.html","w",encoding="utf-8")asf:f.write(log["contents"][1]["content"])print(log["text"])TODOLogin using given naver ID and passwordGet existed conversation using conversation IDProxy supportSupport personas
Package: clove
Cloveversion number: 1.2.16OverviewClove is a library that makes atomic swaps between chains easy.Documentation available atlamden.github.io/clove.InstallationTo install use pip:$ pip install cloveOr clone the repo:$ git clone https://github.com/Lamden/clove.git
$ python setup.py installDevelopmentGetting started$ git clone https://github.com/Lamden/clove.git
$ cd clove
$ virtualenv venv --python=python3.6
$ . venv/bin/activate
$ python setup.py developRunning testsInstall requirements:$ pip install -e '.[testing]'To run all linters and tests:$ toxIf you want to run a specyfic test$ py.test -k test_nameDocumentationInstalling requirements:$ pip install -e '.[docs]'Documentation preview:$ make livedocsUpdating docs formasterbranch$ make gh-pages
Package: clovepy
Clovepy: Python Web Framework built for learning purposesClovepy is a Python web framework built for learning purposes.It's a WSGI framework and can be used with any WSGI application server such as Gunicorn.InstallationpipinstallclovepyHow to use itBasic usage:fromclove.apiimportAPIapp=API()@app.route("/home")defhome(request,response):response.text="Hello from the HOME page"@app.route("/hello/{name}")defgreeting(request,response,name):response.text=f"Hello,{name}"@app.route("/book")classBooksResource:defget(self,req,resp):resp.text="Books Page"defpost(self,req,resp):resp.text="Endpoint to create a book"@app.route("/template")deftemplate_handler(req,resp):resp.body=app.template("index.html",context={"name":"Clove","title":"Best Framework"}).encode()Unit TestsThe recommended way of writing unit tests is withpytest. There are two built in fixtures
that you may want to use when writing unit tests with Clove. The first one isappwhich is an instance of the mainAPIclass:deftest_route_overlap_throws_exception(app):@app.route("/")defhome(req,resp):resp.text="Welcome Home."withpytest.raises(AssertionError):@app.route("/")defhome2(req,resp):resp.text="Welcome Home2."The other one isclientthat you can use to send HTTP requests to your handlers. It is based on the famousrequestsand it should feel very familiar:deftest_parameterized_route(app,client):@app.route("/{name}")defhello(req,resp,name):resp.text=f"hey{name}"assertclient.get("http://testserver/matthew").text=="hey matthew"TemplatesThe default folder for templates istemplates. You can change it when initializing the mainAPI()class:app=API(templates_dir="templates_dir_name")Then you can use HTML files in that folder like so in a handler:@app.route("/show/template")defhandler_with_template(req,resp):resp.html=app.template("example.html",context={"title":"Awesome Framework","body":"welcome to the future!"})Static FilesJust like templates, the default folder for static files isstaticand you can override it:app=API(static_dir="static_dir_name")Then you can use the files inside this folder in HTML files:<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>{{title}}</title><linkhref="/static/main.css"rel="stylesheet"type="text/css"></head><body><h1>{{body}}</h1><p>This is a paragraph</p></body></html>MiddlewareYou can create custom middleware classes by inheriting from theclove.middleware.Middlewareclass and overriding its two methods
that are called before and after each request:fromclove.apiimportAPIfromclove.middlewareimportMiddlewareapp=API()classSimpleCustomMiddleware(Middleware):defprocess_request(self,req):print("Before dispatch",req.url)defprocess_response(self,req,res):print("After dispatch",req.url)app.add_middleware(SimpleCustomMiddleware)
Package: cloverwallpaper
:four_leaf_clover: clover_wallpapercloverwallpaper makes it simple to fetch all images on a 4chan board for a specified resolution, making it ideal for finding wallpapers.InstallationDependenciescloverwallpaper requires:python (>= 3.6)tqdmrequestsUser installationpip install cloverwallpaperUsageusage: cloverwallpaper [-h] --board BOARD --height HEIGHT --width WIDTH

optional arguments:
  -h, --help       show this help message and exit
  --board BOARD    target board to scrape images from
  --height HEIGHT  height of the images you wish to download
  --width WIDTH    width of the images you wish to download
Package: clowder
# Clowder Python ClientThis is the python repository for the Clowder python client.### How to install```sudo pip install clowder```### How to testBasic example for tracking memory usage on serverCreate a python file memory_usage.py```import clowderimport psutilclowder.api_key = '29rTtCyrBfZvABBMMbne'clowder.ok({'name': 'Memory Utilization','value': psutil.phymem_usage().percent})```### How to useRun the file and make sure it works```python memory_usage.py```Then create a cron job to run every 5 minutes```*/5 * * * * python memory_usage.py```### ParametersPassed as python dictionary- *name*: (string - REQUIRED) A unique name for the check. All checks with this name will be combined.- *url*: (string - optional) The url to send data to. Defaults to www.clowder.io- *value*: (float - optional) The value of the check (such as response time, queue length, rows processed, etc.)- *status*: (integer - optional) Whether our not the check is passing (1, 0, -1). If failing, an alert is send.- *frequency*: (integer - optional) Duration in minutes until next check. If time passes without check, alert sounds.- *alert*: (function - optional) A lamdba function that passes or fails based on *value*
Package: clown
# hummer[![Build Status](https://travis-ci.com/Jack-Kingdom/hummer.svg?branch=master)](https://travis-ci.com/Jack-Kingdom/hummer)portal access utils.
![hummer](https://raw.githubusercontent.com/wiki/Jack-Kingdom/humer/assets/hummer.jpg)## Install`shell pip install hummer `## Documentation
Check [wiki](https://github.com/Jack-Kingdom/hummer/wiki) for details.## LICENSE
MIT
Package: clowrie-test
这是python制品库测试项目
官方文档：https://pypi.org/遇到的一些问题
1.WARNING: 401 Error, Credentials not correct forhttp://bkrepo.example.com/pypi/blueking/pypi-local/simple/build/令牌过期重新申请
2.安装包python3 -m pip install --upgrade build --trusted-host bkrepo.example.com 失败
ERROR: Could not find a version that satisfies the requirement build (from versions: none)
ERROR: No matching distribution found for build
该包在我们仓库不存在，需要配置下远程代理、代理配置不生效导致无法打包posthttp://bkrepo.example.com/web/auth/api/user/token/admin/hanji-test?projectId=blueking&expiredAt=Request Method:
POST
{
"code" : 0,
"message" : null,
"data" : {
"name" : "hanji-test",
"id" : "8426a5bf982a8e1be6796620fbfac131",
"createdAt" : "2023-06-06T15:27:34.893",
"expiredAt" : null
},
"traceId" : "7f091ac6ee78b2c9d88fe1f4271f81e2"
}
Package: clozer
clozerPrequisitespython3Instalationpip3 install clozerExamplePython file (sumquiz.py):import random

from clozer import Quiz, QuestionVar


class SumQuiz(Quiz):
    file = 'template.html'

    def __init__(self):
        super().__init__()
        self._name = 'SumQuiz' 

    @QuestionVar
    def A(self):
        return random.randint(1,10)

    @QuestionVar
    def B(self):
        return random.randint(1,10)

    @QuestionVar
    def C(self):
        return self.A + self.B


if __name__ == "__main__":
    quiz = SumQuiz()
    quiz.store()Template (template.html):<p>Solve:</p>
<p>{A}+{B}={{:NUMERIC:={C}}}</p>Run:python3 sumquiz.py
Package: clpb
Command Line Progress Bar for Python 3.xInstallationpip install clpbExamples>>> from clpb import ProgressBar
>>> items_length = 69
>>> pb = ProgressBar(0, items_length)
>>> pb.initial_print()
...     pb.current_print(i+1)
Progress |████████████████████████████████████████| 100.0% Complete>>> from clpb import ProgressBar
>>> items_length = 69
>>> pb = ProgressBar(0, items_length, fill='#')
>>> pb.initial_print()
...     pb.current_print(i+1)
Progress |########################################| 100.0% Complete
Package: clp-cognitojwt
Decode and verifyAmazon CognitoJWT tokensNote: tested on Python >= 3.6, compatible with PEP-492 (async/await coroutines syntax)InstallationPackage works in two modes: synchronous -requestsas http-client and asynchronous -aiohttpas http-client.
In order to avoid installing unnecessary dependencies I separated installation flow into two modes:Async mode -pip install cognitojwt[async]Sync mode -pip install cognitojwt[sync]Usageimportcognitojwtid_token='<YOUR_TOKEN_HERE>'REGION='**-****-*'USERPOOL_ID='eu-west-1_*******'APP_CLIENT_ID='1p3*********'# Sync modeverified_claims:dict=cognitojwt.decode(id_token,REGION,USERPOOL_ID,app_client_id=APP_CLIENT_ID,# Optionaltestmode=True# Disable token expiration check for testing purposes)# Async modeverified_claims:dict=awaitcognitojwt.decode_async(id_token,REGION,USERPOOL_ID,app_client_id=APP_CLIENT_ID,# Optionaltestmode=True# Disable token expiration check for testing purposes)Note: if the application is deployed inside a private vpc without internet gateway, the application will not be able to download the JWKS file.
In this case set theAWS_COGNITO_JWSK_PATHenvironment variable referencing the absolute or relative path of the jwks.json file.This project was originally forked fromhttps://github.com/borisrozumnuk/cognitojwt
Package: clplot
clplotclplotis a command line utility to create plots and pages of plots from
csv-like files.It is a thin wrapper over matplotlib with a few conveniences built in.RationaleIf you find yourself opening a csv file in a spreadsheet-like program to quickly plot and visualize your results,clplotmay be a useful alternative for you.It allows you to get summary information about columns in your dataset, plot given variables, plot all variables, and specify the manner in which plots (or pages of plots) are formatted.Installation$ pip install git+https://breisfeld@github.com/breisfeld/clplot.gitDependenciesnumpymatplotlibUsageExamplesAssume that the data file is namedmyfile.csvand that it has a header
row with the names of the columns. Each subsequent row is assumed to
have numerical values corresponding to the header field names. For the
examples below, the header would have, at least, the field names (column
headers)y1,y2,y3,y4,y5, andv1.Show the help:$ clplot-script.py -hDon’t make any plots; just list all of the column names that are present in the data
file:$ clplot-script.py -l myfile.csvDon’t make any plots; just list some statistics and information about columns ‘y1’ and
‘y2’:$ clplot-script.py -i -c y1 -c y2 myfile.csvPlot all of the columns in the file using the default independent variable (the one in the first column):$ clplot-script.py myfile.csvPlot just the columns ‘y1’ and ‘y2’ and use ‘v1’ as the independent
variable:$ clplot-script.py -c y1 -c y2 -x v1 myfile.csvPlot all of the columns except ‘y3’ and ‘y4’, put 12 plots on each
figure, and make the axis font size large:$ clplot-script.py  -e y3 -e y4 -n 12 --fontsize=20.0 myfile.csvPlot columns matching the regular expression ‘y.(1|5)’ and put nine plots on each figure:*$ clplot-script.py -n 9 -cr 'y.*(1|5)' myfile.csv(The regular expression may need different quoting, depending on the OS
or shell)Plot all of the data columns using red, dashed, thick lines:$ clplot-script.py --linecolor='red' --linestyle='--' --linewidth=5 myfile.csvPlot all of the data except those column names matching the regular
expression ‘.y.1’, and assume that the entries in the file are
separated by tabs instead of commas:$ clplot-script.py -er '.*y.*1' -d '\t' myfile.csvOn Windows, useclplot.exeinstead ofclplot-script.pyin the
lines above.LicenseThis program is freely available for anyone to use under an MIT license.
Please consult the MIT-LICENSE file.
Package: clprint
clprintA Python package that adds color to your print statements.Colors ( 5 )red -> print_rblue -> print_bgreen -> print_gyellow -> print_ypurple -> print_pInstallation 🚀To install clprint, run the following command:pipinstallclprintUsage ⚡️Import the package in your Python script:fromclprintimport*# imports everythingfromclprintimportprint_g# print_g("Hello")importclprintascl# cl.print_r("Hello")Printing in different colors ✨Use the following functions to print in different colors:print_r("Hello")# to print in redprint_g("Hello")# to print in greenprint_b("Hello")# to print in blueprint_y("Hello")# to print in yellowprint_p("Hello")# to print in purpleAdding a label ✨To add a label to your print statement, pass the label argument to the print function:print_r("Hello",label="My Label")This will print the label in square brackets before the text:[MyLabel]HelloAdding a highlight ✨To highlight your print statement, add the letter h to the end of the function nameprint_rh("Hello",label="My Label")This will print the text with a background color, like this:------------------------------------[MyLabel]:Hello
------------------------------------ExampleHere is an example of how to use clPrint in your script:importclprint

print_g("Hello, world!",label="Greeting")print_b("This is a message in blue.",label="Info")print_y("Warning: something went wrong.",label="Warning")print_rh("This text is highlighted in red.",label="Error")Noteclprint uses ANSI escape codes to change the color of the text in the terminal. This means that the colors may not show up correctly in IDEs or other environments that do not support ANSI escape codes.
Package: clquery
clquery: SQL interface to your cloud resourcesOne-linerclqueryallows you to perform live queries on your cloud resources, and use the power of SQL to combine and filter across multiple types of services and resources.Install$virtualenvvenv&&sourcevenv/bin/activate
$pipinstallclquery
$clquery
clquery>.tablesExample queriesSee all AWS elastic IPs inus-west-2region and their associated EC2 instances:SELECTpublic_ip,instance_idFROMaws_elastic_ipWHEREregion='us-west-2';See all non-default VPCs and their CIDRs in all regions:SELECTregion,vpc_id,cidrFROMaws_vpcWHEREis_defaultisFALSE;Find EC2 instances inus-west-2region that have a Security Group rule that is open to the world:SELECTvm.instance_id,sgr.ip_range,sgr.ip_protocol,sgr.from_port,sgr.to_portFROMaws_ec2_instanceasvmJOINaws_ec2_instance_security_groupisgUSING(instance_id)JOINaws_ec2_security_group_rulesgrUSING(security_group_id)WHEREvm.region='us-west-2'ANDsgr.direction='ingress'ANDsgr.ip_range='0.0.0.0/0';Other triviaThe SQL engine is powered bySQLiteandAPSWthroughVirtual TablesThe shell is also (almost) a SQLite shell, and dot commands will work (e.g..tables)Inspiration and realityThe goal is to support mainstream services on major cloud providers. However, it currently only supports AWS for a few services.This project is inspired byosquery.
Package: clr
clris a simple terminal string styling library. Its API is a port of the popularchalkmodule for javascript.Install$ pip install clrUsageimportclrprint(clr.red.bold('Hello world!'))APIclr.style*[.style](*objects,sep=' ')Chainstylesand call the last one as a method with an argument. Order doesn’t matter, and later styles
take precedence in case of a conflict, e.g.clr.red.yellow.greenis equivalent toclr.green.Multiple arguments will be separated bysep, a space by default.StylesModifiersColorsBackground colorsbolddimitalicunderlineinversehiddenstrikethroughblackredgreenyellowbluemagentacyanwhitelight_blacklight_redlight_greenlight_yellowlight_bluelight_magentalight_cyanlight_whiteon_blackon_redon_greenon_yellowon_blueon_magentaon_cyanon_whiteon_light_blackon_light_redon_light_greenon_light_yellowon_light_blueon_light_magentaon_light_cyanon_light_white
Package: clrc
CLRC - easy print with colors (clrc.info, clrc.warn, etc)DescriptionI made this package for easy printing colored messages to output. Under the hood - print function with usage of colorama (https://github.com/tartley/colorama) package colors.Why? I wanted the simpliest way possible to import package - start right after with colored messages. All functions inside this package satisfy my and possible yours basic needs for colored outputInstallationpipenv install clrcorpip install clrcUsageYou can pass additional *args like in plain print()import clrc

# Available functions

clrc.info()
clrc.warn()
clrc.success()
clrc.error()
clrc.danger()

# Example:

clrc.error("This is error", True, 2, False, 43.2)Update Log0.0.3 - 16.03.2019

- Reformatted code, now using AbstractPrinter and printers instead of raw using of print function
- Now there is way to attach Loguru via LoguruPrinterLicenceSee licence file inside repository. But basically it's good old MIT