Saravanan666/pypi-org huggingface dataset:
Package: waifu2x-vulkan
waifu2x-ncnn-vulkan-pythonThis is modifiedwaifu2x-ncnn-vulkan, Export pyd and so files to PythonSupport Linux, Windows, MacOsSupport import JPG, PNG, BMP, GIF, WEBP, Animated WEBP, APNGSupport export JPG, PNG, BMP, WEBP, Animated WEBP, APNGSupport vulkan gpu and cpuInstallpipinstallwaifu2x-vulkanUsefromwaifu2x_vulkanimportwaifu2x_vulkan# initsts=waifu2x_vulkan.init()print("init, code:{}".format(str(sts)))isCpuModel=Falseifsts<0:# cpu modelisCpuModel=TruegpuList=waifu2x_vulkan.getGpuInfo()print(gpuList)sts=waifu2x_vulkan.initSet(gpuId=0)print("init set, code:{}".format(str(sts)))# Model List:#'MODEL_ANIME_STYLE_ART_RGB_NOISE0', 'MODEL_ANIME_STYLE_ART_RGB_NOISE0_TTA', 'MODEL_ANIME_STYLE_ART_RGB_NOISE1', 'MODEL_ANIME_STYLE_ART_RGB_NOISE1_TTA', 'MODEL_ANIME_STYLE_ART_RGB_NOISE2', 'MODEL_ANIME_STYLE_ART_RGB_NOISE2_TTA', 'MODEL_ANIME_STYLE_ART_RGB_NOISE3', 'MODEL_ANIME_STYLE_ART_RGB_NOISE3_TTA', 'MODEL_ANIME_STYLE_ART_RGB_NO_NOISE', 'MODEL_ANIME_STYLE_ART_RGB_NO_NOISE_TTA', 'MODEL_CUNET_NOISE0', 'MODEL_CUNET_NOISE0_TTA', 'MODEL_CUNET_NOISE1', 'MODEL_CUNET_NOISE1_TTA', 'MODEL_CUNET_NOISE2', 'MODEL_CUNET_NOISE2_TTA', 'MODEL_CUNET_NOISE3', 'MODEL_CUNET_NOISE3_TTA', 'MODEL_CUNET_NO_NOISE', 'MODEL_CUNET_NO_NOISE_TTA', 'MODEL_CUNET_NO_SCALE_NOISE0', 'MODEL_CUNET_NO_SCALE_NOISE0_TTA', 'MODEL_CUNET_NO_SCALE_NOISE1', 'MODEL_CUNET_NO_SCALE_NOISE1_TTA', 'MODEL_CUNET_NO_SCALE_NOISE2', 'MODEL_CUNET_NO_SCALE_NOISE2_TTA', 'MODEL_CUNET_NO_SCALE_NOISE3', 'MODEL_CUNET_NO_SCALE_NOISE3_TTA', 'MODEL_CUNET_NO_SCALE_NO_NOISE', 'MODEL_CUNET_NO_SCALE_NO_NOISE_TTA', 'MODEL_PHOTO_NOISE0', 'MODEL_PHOTO_NOISE0_TTA', 'MODEL_PHOTO_NOISE1', 'MODEL_PHOTO_NOISE1_TTA', 'MODEL_PHOTO_NOISE2', 'MODEL_PHOTO_NOISE2_TTA', 'MODEL_PHOTO_NOISE3', 'MODEL_PHOTO_NOISE3_TTA', 'MODEL_PHOTO_NO_NOISE', 'MODEL_PHOTO_NO_NOISE_TTA'# add picture ...# waifu2x.add(data=imgData, modelIndex=waifu2x_vulkan.MODEL_ANIME_STYLE_ART_RGB_NOISE0, backId=0, scale=2.5)# waifu2x.add(data=imgData, modelIndex=waifu2x_vulkan.MODEL_ANIME_STYLE_ART_RGB_NOISE0, backId=0, format="webp", width=1000, high=1000)# load picture...# newData, format, backId, tick = waifu2x.load(0)
Package: waifuim
A Python wrapper for the Waifu.im API.https://waifu.im/is an API that provides a variety user-uploaded anime images.FeaturesAsync Support (sync support coming soon)Fully typedEasy to useDocumentationInstallingTo install, just run the following command:# MacOS/Linuxpython3-mpipinstall-Uwaifuim# Windowspy-3-mpipinstall-UwafiuimRequirementsPython ≥3.10aiohttpDocumentationDocumention can be foundhere.
Package: waifuim.py
waifuim.pyA Python wrapper for waifu.im API.Table of ContentsInstallationUsageLicenseInstallationPython 3.6 or higher is required.Install from PyPI$pipinstallwaifuim.pyInstall from source$pipinstallgit+https://github.com/Waifu-im/waifuim.pyUsageFor now, you can only use WaifuAioClient which is async. Maybe a sync client will be released in the future.
Most of the methods returns anImageinstance, the attributes are the same from the ones returned by the API.Examples with WaifuAioClientimportasynciofromwaifuimimportWaifuAioClientasyncdefmain():wf=WaifuAioClient()# Get a completely random imageimage=awaitwf.search()# Get an image by tagsimage=awaitwf.search(included_tags=['waifu','maid'],excluded_tags=['ero'],)image=awaitwf.search(excluded_tags=['maid'],is_nsfw='null',height="<=252")# Get sfw waifu images ordered by FAVORITESimages=awaitwf.search(included_tags=['waifu'],is_nsfw='null',many=True,order_by='FAVORITES',)# Get a user favoritesfavorites=awaitwf.fav(token='if not provided, use the one in the client constructor',)# Edit your favoritesawaitwf.fav_delete(3133)awaitwf.fav_insert(3133,user_id=11243585148445,token='user_id and token are optional',)fav_state=awaitwf.fav_toggle(4401)# will be equal to 'INSERTED' or 'DELETED'awaitwf.close()# You can also use a context manager but for multiple request it is not recommendedasyncwithWaifuAioClient()aswf:# Do your stuffasyncio.run(main())The Image and Tag instanceIn most of the case the methods will return anImageinstance.
The attributes are the same as the json keys that the api returns.image=awaitwf.search()>>><waifuim.types.Imageobjectat0x76217ccf10>image.url>>>'https://cdn.waifu.im/1982.jpg'str(image)>>>'https://cdn.waifu.im/1982.jpg'image.signature>>>aa48cd9dc6b64367image.tags[0]>>><waifuim.types.Tagobjectat0x73214ccf10>image.tags[0].name>>>'waifu'Some useful kwargs in the constructorfromwaifuimimportWaifuAioClientwf=WaifuAioClient(session=an_aiohttpClientSession_created_asynchronously,app_name="TheNameOfYourApplication",token="The default token to use in routes requiring authentication.",)# ...LicenseMIT Â©Buco
Package: waifu-pics
Waifu picsA simple command line app to open a waifu image/gif on the browser. This is a wrapper for thewaifu.picsAPI.Installationpip install waifu-picsor, since you're probably usingpython3pip3 install waifu-picsUsagewaifu help                  shows this message
waifu                       open a random sfw image on your browser
waifu [type] [category]     open an image from a particular type and category

Valid types:
    sfw, nsfw

Valid sfw categories:
    bite, yeet, handhold, slap, hug, waifu, kiss, wink, bonk, smile, poke, highfive, shinobu, bully, wave, nom, smug, cuddle, cringe, glomp, dance, kill, neko, blush, pat, awoo, happy, megumin, cry, lick

Valid nsfw categories:
    neko, trap, blowjob, waifuExamplewaifu sfw hug
Package: waifu-py
waifu-pyA simple Python wrapper for the waifu.pics API.Table of ContentsInstallationUsageContributeLicenseInstallationPython 3.6 or higher is required.Install from PyPI$pipinstallwaifu-pyInstall from source$pipinstallgit+https://github.com/IchBinLeoon/waifu-pyUsageYou can use either WaifuClient or WaifuAioClient, depending on whether you want a synchronous wrapper class, or an asynchronous wrapper class. Below are some examples of how to use WaifuClient and WaifuAioClient.Usage Examples with WaifuClientfromwaifuimportWaifuClientclient=WaifuClient()# Get one SFW imagesfw_waifu:str=client.sfw(category='waifu')# Get 30 unique SFW imagessfw_megumin_list:list=client.sfw(category='megumin',many=True)# Get 30 unique SFW images and exclude images in listsfw_megumin_list_exclude:list=client.sfw(category='megumin',many=True,exclude=['https://i.waifu.pics/IqD8csE.png','https://i.waifu.pics/NV-dfTH.png'])# Get one NSFW imagensfw_neko:str=client.nsfw(category='neko')# Get 30 unique NSFW imagesnsfw_trap_list:list=client.nsfw(category='trap',many=True)Async Usage Examples with WaifuAioClientimportasynciofromwaifuimportWaifuAioClientasyncdefmain():asyncwithWaifuAioClient()asclient:# Get one SFW imagesfw_neko:str=awaitclient.sfw(category='neko')# Get 30 unique SFW imagessfw_shinobu_list:list=awaitclient.sfw(category='shinobu',many=True)# Get one NSFW imagensfw_waifu:str=awaitclient.nsfw(category='waifu')# Get 30 unique NSFW imagesnsfw_neko_list:list=awaitclient.nsfw(category='neko',many=True)asyncio.run(main())importasynciofromwaifuimportWaifuAioClientasyncdefmain():client=WaifuAioClient()# Get one SFW imagesfw_waifu:str=awaitclient.sfw(category='waifu')# Get 30 unique NSFW imagesnsfw_waifu_list:list=awaitclient.nsfw(category='waifu',many=True)awaitclient.close()asyncio.run(main())Usage Examples with own SessionIf you want to use your own requests or aiohttp session, you can do that too.WaifuClientimportrequestsfromwaifuimportWaifuClientsession=requests.Session()client=WaifuClient(session=session)# ...WaifuAioClientimportasyncioimportaiohttpfromwaifuimportWaifuAioClientasyncdefmain():session=aiohttp.ClientSession()asyncwithWaifuAioClient(session=session)asclient:# ...asyncio.run(main())importasyncioimportaiohttpfromwaifuimportWaifuAioClientasyncdefmain():session=aiohttp.ClientSession()client=WaifuAioClient(session=session)# ...awaitclient.close()asyncio.run(main())Image CategoriesYou can also view all valid image categories.fromwaifuimportImageCategoriesprint(ImageCategories)Output:{"sfw":["waifu","neko","shinobu","megumin","bully","cuddle","cry","hug","awoo","kiss","lick","pat","smug","bonk","yeet","blush","smile","wave","highfive","handhold","nom","bite","glomp","slap"."kill","kick","happy","wink","poke","dance","cringe"],"nsfw":["waifu","neko","trap","blowjob"]}ContributeContributions are welcome! Feel free to open issues or submit pull requests!LicenseMIT ©IchBinLeoon
Package: wai.json
Python library for working with JSON and JSON schema.Changelog0.0.5 (2020-03-18)Removed unnecessary validation from sub-components of objects which already validate themselves.0.0.4 (2020-03-04)Fixed bug in ArrayProxy where __iadd__ wasn’t returning itself.Fixed default values for list methods of ArrayProxy.0.0.3 (2020-02-26)EnumProperty now returns its values as a frozen-set to avoid copy operation.Optional properties can now have default values for if they’re not specified.Additional methods/options for introspecting/altering properties.0.0.2 (2020-02-21)Added the ability to create a JSONObject property directly from the class.Properties can now be reused between JSON objects, as long as the attribute
name stays the same.ConstantProperty and EnumProperty can now report their values.StaticJSONValidator can now cache schema/validators for unhashable objects.Pretty serialisation.Can query the optionality of a property.Can specify initial values by attribute name.Can see if the class OR an instance has a property (instances include additional
properties).Iterating over properties now only iterates over the names, and can be done on the
class or an instance, as above.Sub-types can pass programmatic properties in __init_subclass__.0.0.1 (2020-02-20)Initial release
Package: wai.lazypip
Allows installation of additional packages at runtime (from within virtual environments).
Usespipunderneath the hood for installing the packages.See project page for more details and examples.Changelog0.0.3 (2021-03-17)switched from usingpip.mainto launching external process viapython -m pipas it is the
recommended way of calling pip (seehttps://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program)0.0.2 (2020-09-04)theinstall_packagesmethod now backs up the root logger before callingpip.mainand restores it afterwards again0.0.1 (2020-07-29)initial release
Package: wailord
Wailord is a python library to interact withORCAFree software: GNU General Public License v3Documentation:https://wailord.xyzBeing written up. Till then feel free to use theZenodoDOI.FeaturesIntegrates with SLURM in a manner of speakingGeneric helpers for building arbitrary input filesGenerates data-frames for all supported runsLimitationsBy choice, the split-job syntax has not been includedCreditsInitially conceived duringEFN115FThis package was based off theaudreyr/cookiecutter-pypackageCookiecuttertemplateThe image is fromwallhaven.ccThe favicon is fromBulbagarden
Package: wai.ma
Python library of 2-dimensional matrix algorithms.Changelog0.0.8 (2023-12-19)Updated/relaxed dependenciesUsingintinstead ofnp.intnow0.0.7 (2020-06-29)Fixed Downsample so it filters columns instead of rows.0.0.6 (2019-11-18)Added tranformations based on scikit-learn: PowerTransformer, QuantileTranformer and RobustScalar.0.0.5 (2019-11-01)Added Log transformation.Updated to wai.common v0.0.170.0.4 (2019-10-04)Standardize now implements Serialisable interface.Serialisable can now serialise strings.0.0.3 (2019-08-21)Added FFT as a transformation.Fixed bug in initialize(Matrix, Matrix) for YGradientEPO and OPLS where any error message wasn’t being returned.Removed utilities to wai.common, and import them back to here.read/write in matrix.helper can now accept open file handles as well as file names.Calling inverseTransform on SavitzkyGolay now raises a NotImplementedError, instead of silently passing.Testing infrastructure is now imported from wai.test.Added a Serialisable interface, which allows objects to write their state to a binary stream. SavitzkyGolay
and SIMPLS implement this.Added Equidistance resampling filter.0.0.2 (2019-07-25)Modified RowNorm to reconfigure itself for every matrix it sees.0.0.1 (2019-07-15)Initial release
Package: waimoku
waimokuワイもくのConnpasで取得しているアンケートから運営に必要な情報を抽出するPythonのScript
です。インストールpipを使ってこのパッケージはインストールすることができますpip install --upgrade waimokuライセンスこのソフトウェアは、MITライセンスのもとで公開されています。詳しくはLICENSEを御覧ください。
Package: waio
🤖 waio - is a pretty simple and fully asynchronous framework for WhatsApp Business API written in Python 3.7 with asyncio and aiohttp.
Used API official Facebook partner -Gupshup.ioYou can create an account and use aSandboxto develop a bot
and test functionality, and when you finish - create your own business
number and transfer the functionality to your number,
make verification (check mark) and be cool!Official waio resources:Documentation:readthedocsCommunity RU:@waioruPyPI:waioSource:Github repo
Package: wai.pytorchimageclass
Thepytorch-image-classificationcommand-line tools can be used for building
image classification models with PyTorch using various model architectures.The code is base on the PyTorch imagenet example code:https://github.com/pytorch/examples/tree/master/imagenetChangelog0.0.2 (2022-05-10)fixed error in plain text output ofpic-infoaddedpic-predict-redisconsole script (pic/predict_redis.py) for making predictions via Redis0.0.1 (2021-01-11)initial release
Package: wait4it
python-wait4itWait-For-It Python module, that waits until a certain TCP port is available.Based on the idea behind the well-knownwait-for-itscript,
but created mainly as a Python package to be used on other Python applications, services or modules,
instead of being mainly a CLI tool.InstallingPackage is available atPyPi, so you can install it withpip install wait4it-
or from sources withpython setup.py install.Usagefromwait4itimportwait_for,WaitForTimeoutError# This should return instantly (if you have connection)wait_for(host="google.com",port=80)# This should fail in 5 secondstry:wait_for(host="google.com",port=12345,timeout=5)exceptTimeoutError:# Actually will raise custom WaitForTimeoutError exception, but inherits from TimeoutError (except on Python2)print("Failed! (as expected)")# This should return False in 15 secondswait_for(host="google.com",port=12345,raise_error=False)# Normally you will want to check for a port in localhost (e.g. a MySQL/MariaDB database).# This can be done directly like:wait_for(3306)# The exceptions include the failing host/porttry:wait_for(host="google.com",port=12345)exceptWaitForTimeoutErrorasex:assertex.host=="google.com"assertex.port==12345wait_for_pass decoratorIt works similarly to wait_for, but if the considered exceptions are raised on the decorated function, it will re-run
until it runs without raising these errors, or until the given retries limit is reached.The following example will randomly raise ZeroDivisionError in the functiondivide_by_random, which runs 10 times.
If fails more than twice, the exception will be thrown outside the function.fromrandomimportrandintfromwait4itimportwait_for_pass@wait_for_pass(ZeroDivisionError,retries=2)defdivide_by_random(n=10):d=randint(0,1)print("Gonna divide",n,"/",d)returnn/dfor_inrange(10):r=divide_by_random()print("Got result:",r)Ifretriesis set to 0, the function will run forever until it passes without raising exceptions.wait_for_pass also allows a parameterretries_delay, which can be used to define a delay, in seconds, between failed function executions.Dependencies & CompatibilityNot external dependencies are required. Compatible (tested with) Python 2.7, 3.4, 3.5, 3.6, 3.7, 3.8 - under Linux.Changelog0.2.1 - Add retries_delay parameter to wait_for_pass0.1.2 - Fix wait_for_pass decorator not looping indefinitely when retries=00.1.1 - Add wait_for_pass decorator0.0.1 - Initial releaseTODOSet retries limit on wait_forSet timeout on wait_for_pass
Package: wait4localstack
wait4localstackA Python package for ensuring that localstack has fully started.Application Programming Interface (API) DocumentationTo see the documentation for the API (auto-generated) please seehttps://github.com/locp/wait4localstack/blob/main/docs/index.mdCommand Line Interface (CLI) InterfaceA script calledwait4localstackis provided the synopsis of the
command is:usage: wait4localstack [-h] [-d] [-e LOCALSTACK_ENDPOINT] [-m MAXIMUM_RETRIES] [-t TEST_INTERVAL] [-v] [-x]

Wait for Localstack to be ready.

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Should log level be DEBUG.
  -e LOCALSTACK_ENDPOINT, --endpoint LOCALSTACK_ENDPOINT
                        The endpoint for the Localstack healthcheck (default http://localhost:4566/health).
  -m MAXIMUM_RETRIES, --maximum-retries MAXIMUM_RETRIES
                        The maximum retries. If zero, try infinitely (default is zero).
  -t TEST_INTERVAL, --test-interval TEST_INTERVAL
                        The time in seconds to wait between retries (default is 2).
  -v, --verbose         Should log level be INFO.
  -x, --exponential_backoff
                        Should the time between retries by doubled at each attempt.
Package: waitcondition-hook-for-aws-fargate-task
Waitcondition Hook for AWS Fargate taskThis module will create an ECS cluster and run a Fargate task as you defined. It will pause the CloudFormation Stack until the Fargate task is complete and success.Usage:import*ascdkfrom'aws-cdk-lib';import{RemovalPolicy}from'aws-cdk-lib';import{Vpc}from'aws-cdk-lib/aws-ec2';import*asecrfrom'aws-cdk-lib/aws-ecr';import*asecsfrom'aws-cdk-lib/aws-ecs';import{LogGroup}from'aws-cdk-lib/aws-logs';import{Construct}from'constructs';import{FargateRunner}from'fargate-runner';import{Queue}from'aws-cdk-lib/aws-sqs';exportclassFargateRunnerTestStackextendscdk.Stack{constructor(scope:Construct,id:string,props?:cdk.StackProps){super(scope,id,props);//DefinetheFargateTaskconsttaskDefinition=newecs.FargateTaskDefinition(this,'MyTask',{});//importexitingecrrepoconstrepo=ecr.Repository.fromRepositoryName(this,'MyRepo','RepoName');//AddacontainertothetasktaskDefinition.addContainer('MyContainer',{image:ecs.ContainerImage.fromEcrRepository(repo),});//CreatetheFargaterunnerconstmyFargateRunner=newFargateRunner(this,'MyRunner',{fargateTaskDef:taskDefinition,timeout:`${60*5}`,vpc:vpc,});//CreatetheSQSqueueconstmyQueue=newQueue(this,'MyQueue',{});//AdddependencymyQueue.node.addDependency(myFargateRunner);}}constapp=newcdk.App();constenv={account:process.env.CDK_DEFAULT_ACCOUNT,region:process.env.CDK_DEFAULT_REGION,};newFargateRunnerTestStack(app,'FargateRunnerTestStack',{env:env});With AWS CDK script above (in typescript), it will create a AWS Faragate task and run in a ECS Cluster, with the the task definition that defined. The SQS queue which depends on the will be create only after the Fargate task execute complete and succeed (exit with EXIT CODE: 0)
Package: waiter.py
waiter.pyA more efficient way of conforming to limits via waitingThink ofwaiteras Python's built-insleep()function but instead of sleeping every time it is called, it will only sleep if itneedsto. This makes it easier to conform to known rate limits while avoiding unnecessary sleeps.Let's assume you are consuming a REST API that has a rate limit of 2 requests per second. Naturally you could simply sleep for 500ms after each request as to not hit this limit. However what if you make one request, sleep for 500ms, do something else that takes longer than 500ms, make another request, and then sleep once more for 500ms? The last sleep would be unnecessary.waiterlets you create functions that will only sleep when needed:fromwaiterimportcreate_waiterwait=create_waiter(500)make_quick_request()# takes 10mswait()# sleeps for 490msmake_slow_request()# takes 1000mswait()# does not sleepYou can also decorate functions:fromwaiter.decoratorimportwill_wait@will_wait(500)defmy_func():#  ...#  You know the drill
Package: wai.test
Python library for unit tests.
Changelog
=========0.0.1 (2019-08-19)Initial release0.0.2 (2019-08-19)RegressionSerialiser.compare now returns a message saying why the comparison failed,
or None if the comparison passed, for better failure messages.0.0.3 (2019-08-19)Changed the meta-class for all test classes so that it prevents unittest from trying
to instantiate abstract test-classes. This way standard base-line tests can be written
as a base-class and all tests in the base class will be run in the sub-class tests, but
the base-class itself won’t try to run (and fail).
Package: wai.tflite-model-maker
Thewai.tflite_model_makerlibrary offers command-line tools for training tflite
models and applying them.The following domains are supported:image classificationobject detectionFor making predictions, the following approaches are available:single imagebatch/continuous processing using file-pollingcontinuous processing via a Redis backend (for receiving images and sending predictions back to)Changelog0.0.4 (2021-10-20)added ability to store results of evaluation (imgcls and objdet) in JSON file0.0.3 (2021-10-06)handling custom hyper parameters now correctly0.0.2 (2021-10-06)added tools for image classification (train/predict)added support for model optimization (float16, dynamic)0.0.1 (2021-10-05)initial release
Package: wait-for
IntroductionWaits for a certain amount of time for an action to complete
Designed to wait for a certain length of time,
either linearly in 1 second steps, or exponentially, up to a maximum.
Returns the output from the function once it completes successfully,
along with the time taken to complete the command.NoteIf using the expo keyword, the returned elapsed time will be inaccurate
as wait_for does not know the exact time that the function returned
correctly, only that it returned correctly at last check.Usagefromwait_forimportwait_forclassIncrementor():value=0defi_sleep_a_lot(self):time.sleep(.1)self.value+=1returnself.valueincman=Incrementor()ec,tc=wait_for(incman.i_sleep_a_lot,fail_condition=0,delay=.05)print("Function output{}in time{}".format(ec,tc))
Package: wait-for-amqp
wait-for-amqpThis is a quick'n'dirty utility to wait for an
AMQP broker instance
to become available. This proves to be an issue in CI development,
where jobs that are tested for rabbitmq need to wait for it
to become available. Well, no problem with that!Installationpip install wait-for-amqpUsagewait-for-amqp <hostname> <max time to wait for> <login> <password> <virtual_host>All of these arguments are required.
Package: wait-for-cassandra
wait-for-cassandraThis is a quick'n'dirty utility to wait for a Cassandra instance
to become available. This proves to be an issue in CI development,
where jobs that are tested for Cassandra need to wait for it
to become available. Well, no problem with that!Installationpip install wait-for-cassandraUsagewait-for-cassandra <optional hostname> <optional timeout>Default hostname is localhost, and default timeout is 5 minutes
(300 seconds).If you need to specify an user and a password, call this tool like this:wait-for-cassandra <hostname> <timeout> <login> <password>Executing specified CQLIf you want to load a CQL file, just use:wait-for-cassandra <hostname> -l <name_of_cql_file> ...