Saravanan666/pypi-org huggingface dataset:
Package: winsible
winsible is an experimental wrapper foransible-playbookthat enhances its multiprocessing and connection persistence, for platforms where OpenSSH can’t transparently do its own connection pooling (such as EL5 and Cygwin).And unlike Ansible’s ownaccelerateorfireballmodes, it doesn’t require installing anything on the target computers: you just install it on the machine where you run your playbooks, and usewinsible-playbookinstead ofansible-playbook.Installation and UseInstall winsible withpip install winsibleoreasy_install winsible.  If you don’t have these commands on your system, try installing your platform’spython-setuptoolspackage.  (Also, if you’re not on Cygwin, you’ll need to be root or use sudo, or install them to a virtualenv.)If you have a current version ofgeventon your system (1.0.1 or better), winsible can use it to eliminate forking altogether and run plays against all hosts with a single process.  But this is a relatively small performance boost compared to connection pooling (and is somewhat experimental), so it’s optional and has to be explicitly activated.  If you want to try it, you can install gevent withsudo pip install"gevent>=1.0.1"orsudo easy_install"gevent>=1.0.1".  (Then enable it withANSIBLE_PROCESS_MODE=geventin the environment orprocess_mode=geventin your ansible.cfg’s[defaults]section.)Last, but not least, make sure you’ve got ansshcommand: if you’re on Cygwin, install theopensshpackage, or on Linux distros it might be in anopenssh-clientspackage.Once you have these things installed, you’re ready to usewinsible-playbookin place ofansible-playbook, to enjoy faster playbook runs.   (Awinsiblescript is also included, for completeness, but it doesn’t provide much in the way of acceleration.  It does, however, tweak ansible’s defaults so that thesshtransport will work correctly on Cygwin.)Note: At the moment, this project as a whole is still pretty alpha.  (Especially thegeventmode.)  In general, winsible hasnotbeen run on a very wide variety of hosts, modules, or plugins, so experience reports are welcome.  If something breaks, or if it doesn’t improve performance in your use case, please file an issue on the github page with some details so I can have a look at it.  Thanks!For more information on how this works and how to configure it, check out the docs athttps://github.com/pjeby/winsible/#how-it-works
Package: winsign
winsignis a python module for signing and manipulatingAuthenticodesignatures in PE and MSI files.Works on Python 3.6 and up.Free software: MPL2RequirementsMost dependencies are specified in requirements/base.txt, however, currently
you also needosslsigncodeinstalled to perform signing. This utility can be
fetched from your distribution’s package repository, or from e.g.https://github.com/theuni/osslsigncodeSigning MSIX/APPX files currently requires Mozilla’s fork ofmsix-packaging.Installationpip install winsignCLI Usageusage: winsign [-h] --certs CERTS --key PRIV_KEY [-n COMMENT] [-i URL] -d
               {sha1,sha256} [-t {old,rfc3161}] [-v] [-q]
               infile [outfile]

positional arguments:
  infile            unsigned file to sign
  outfile           where to write output to. defaults to infile

optional arguments:
  -h, --help        show this help message and exit
  --certs CERTS     certificates to include in the signature
  --key PRIV_KEY    private key used to sign
  -n COMMENT        comment to include in signature
  -i URL            url to include in signature
  -d {sha1,sha256}  digest to use for signing. must be one of sha1 or sha256
  -t {old,rfc3161}
  -v, --verbose
  -q, --quietFuture plansStop using osslsigncode for PE signaturesRefactor code so that osslsigncode functionality is in its own moduleAdd python support for MSI, then we can drop dependency on osslsigncodeDevelopmentHighly recommended to create a virtualenv, then run:python setup.py developmake your changes to the source filesrun local tests:toxupon successful r+ and merging tomasterbranch, you need to release a new version on PyPi.edit setup.py to adjust the versiongenerate .whl file locally:python setup.py bdist_wheelfile will exist in:./dist/winsign-{version}-py3-none-any.whl(assuming you have pypi access to upload)upload to pypi:twine upload –verbose dist/winsign-{version}-py3-none-any.whlCreditsChris AtLeeBen Hearsum <bhearsum@mozilla.com>Joel Maher <jmaher@mozilla.com>History2.2.4 (2022-05-24)minor changes to rfc3161 timestamps2.2.3 (2021-11-26)make timestampfile an argument to sign_file and use with -untrusted2.2.2 (2021-10-20)make CAfile an argument to sign_filesmall tweaks to readme, history, version number2.2.0 (2021-10-13)Added support for osslsigncode 2.1+ (required -CAfile cli)updated documentation for packaging and ownership2.1.0 (2021-07-14)Added support for MSIX/APPX signing2.0.0 (2019-10-17)Breaking API: Some functions are now async. In particular, the top-levelsign_filefunction is now an async function.Restructured module layoutAdded docs1.3.0 (2019-09-12)Fixed old style timestamp generationAdded signature verification codeRemoved autograph support. Client code can implement their own autograph
signing hooks forwinsign.sign.sign_file1.2.0 (2019-09-10)Updated logging so that is_signed doesn’t produce error logs when files aren’t signed1.1.0 (2019-09-05)Added is_signed method to check if files are signed1.0.0 (2019-08-30)First release
Package: winspeech
Speech recognition and synthesis library for Windows - Python 2 and 3.
Based on the abandoned Python 2 libraryhttps://github.com/michaelgundlach/pyspeech.This module adds contains a few more features, the important one being the ability to create
in-process speech recognizers.Author: Areeb Beigh <areebbeigh@gmail.com>
GitHub:https://github.com/areebbeigh/winspeechLicense:Copyright 2016 Areeb BeighLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: winstats
A simple Windows status retrieval module with no additional
dependencies.  Wraps common system status queries from Windows’ ugly C-API:Memory statsPerformance statsDisk info, types, and statsPerformance Data Counters (aka PerfMon)Supports Python 2.6 and above; WindowsXP and above.Note:Relicensed as LGPL v3 (or later).InstallD:\> pip install winstatsUseSetup:import winstats

# optional
import locale
locale.setlocale(locale.LC_ALL, '')
fmt = lambda n: locale.format('%d', n, True)Memory Stats:meminfo = winstats.get_mem_info()
print '    Total: %s b' % fmt(meminfo.TotalPhys)
print '    usage: %s%%' % fmt(meminfo.MemoryLoad)
printPerformance Stats:pinfo = winstats.get_perf_info()
print '    Cache: %s p' % fmt(pinfo.SystemCache)
print '    Cache: %s b' % fmt(pinfo.SystemCacheBytes)
printDisk Stats:drives = winstats.get_drives()
drive = drives[0]
fsinfo = winstats.get_fs_usage(drive)
vinfo = winstats.get_vol_info(drive)

print '    Disks:', ', '.join(drives)
print '    %s:\\' % drive
print '        Name:', vinfo.name
print '        Type:', vinfo.fstype
print '        Total:', fmt(fsinfo.total)
print '        Used: ', fmt(fsinfo.used)
print '        Free: ', fmt(fsinfo.free)
printPerfmon - Performance Counters:# take a second snapshot 100ms after the first:
usage = winstats.get_perf_data(r'\Processor(_Total)\% Processor Time',
                               fmt='double', delay=100)
print '    CPU Usage: %.02f %%' % usage

# query multiple at once:
counters = [ r'\Paging File(_Total)\% Usage', r'\Memory\Available MBytes']
results = winstats.get_perf_data(counters, fmts='double large'.split())
print '    Pagefile Usage: %.2f %%, Mem Avail: %s MB' % resultsResultsThe examples above are built into the module, and double as a minimal test
suite:D:\> python.exe -m winstats

Memory Stats:
    Total: 536,330,240 b
    usage: 31%

Performance Stats:
    Cache: 35,921 p
    Cache: 147,132,416 b

Disk Stats:
    Disks: C, D, O
    C:\
        Name: System
        Type: NTFS
        Total: 10,725,732,352
        Used:  3,160,956,928
        Free:  7,564,775,424

PerfMon queries:
    CPU Usage: 10.00 %
    Pagefile Usage: 0.55 %, Mem Avail: 347 MBAnd more …
Package: winston
A bit like the PostGISST_SummaryStatsfunction for rasters on your filesystem.
Mostly we’re just stringing together some awesome libraries:RasterioShapelyNumpyTablibInstallActivate your project virtual environment, and then:pip install winstonIf you just want to use the command-line features, you could:pip install --user winstonUsageYou can either use Winston on the command-line or as a module.Command-lineTo see your options, simply:winston --helpFor example, to get stats for all WKTs in a text file for a given raster:winston some_file.tif -f wkts.txtor just for one point, including raster metadata:winston /path/to/data/*.tif -w 'POINT (-4.483545 54.150744)' -mSince we requirerasterio, you can also use theriocommand-line tool to inspect your rasters:rio insp /path/to/geo.tifRead more in theRasterio docs.ModuleYou can also use Winston in your code:>>>importrasterio>>>fromwinston.statsimportsummary>>>fromshapely.geometryimportPoint>>>src=rasterio.open('/path/to/raster.tif')>>>printsummary(src)Summary(count=37324800, sum=49041320.0, mean=5.8627439, min=0.0, max=10.0, std=2.2037256)>>>printsummary(src,bounds=(4,6))Summary(count=37324800, sum=9569182.0, mean=5.1044292, min=4.0, max=5.9999995, std=0.56939822)>>>printsummary(src,bounds=(4,6),mean_only=True)5.09>>>printsummary(src,Point(-2.36,51.38).buffer(0.25))Summary(count=169, sum=1229.4401, mean=8.9740152, min=8.3602285, max=9.4269724, std=0.24473859)Exporting results is reasonably simple withtablib:>>>importrasterio>>>importtablib>>>fromwinston.statsimportsummary>>>fromshapely.geometryimportPoint>>>src=rasterio.open('/path/to/raster.tif')>>>shapes=[Point(x,y).buffer(0.25)forx,yinzip(range(5),range(5,0,-1))]>>>summaries=[summary(src,shape)forshapeinshapes]>>>d=tablib.Dataset()>>>d.dict=[s.__dict__forsinsummaries]>>>printd.headers['count', 'sum', 'mean', 'min', 'max', 'std']>>>open('output.csv','w').write(d.csv)History0.3.0 (2016-12-19)Updated CLI defaults to be more… saneRemovedata_countfrom summary resultsNow accept aexclude_nodata_valueto be consistent with PostGISAdded some basic tests0.2.3 (2016-10-13)Invert default value ofall_touchedflag to be consistent with RasterioAdded missing requirement (six) and reorganised requirements files0.2.2 (2016-10-13)Bugfix in namedtuple parameter ordering (oops!)0.2.1 (2016-10-12)Accept WKT strings as well as GeoJSON & Shapely geometriesFix the processing of ‘no result’ summaries0.2.0 (2016-10-12)winston.stats.summary:now accepts Shapely geometries as well as GeoJSON-like objectswe no longer round results to 3 decimal placesthe stats are now returned as anamedtuplerather than a list0.1.1 (2016-10-12)Minor packaging fixes.0.1.0 (2016-10-12)First release on PyPI.
Package: winsvc
winsvcA Windows Service Creator API.Installpip install winsvcExample# test_svc.pyimportosimportsysimporttimeimportclickimportpathlibfromwinsvc.cmdimportadd_svc_commandfromwinsvc.svcimportServiceclassTestService(Service):_svc_name_='winsvc'_svc_display_name_="WIN SVC"_svc_description_='A Windows Service Creator'_exe_name_=sys.executabledef__init__(self,path):self.running=Trueself.path=pathself._exe_args_=f'{os.path.abspath(__file__)}{path}'defstart(self):whileself.running:pathlib.Path(self.path).touch()time.sleep(5)defstop(self):self.running=False@add_svc_command()@click.group(invoke_without_command=True)@click.argument("path",type=click.Path())@click.pass_contextdefmain(ctx,path):s=TestService(path)ifctx.invoked_subcommandisNone:# Run in command lines.start()else:# Run in Windows servicectx.obj=sif__name__=='__main__':main()Run in command line:python test_svc.py test.txtRun in service:python test_svc.py test.txt svc -d . install
python test_svc.py test.txt svc -d . start
Package: winsyspath
winsyspathDefinitive Python wrapper for Windows System PathCompatibilityPython 2.7.xPython 3.x and newerExampleimport winsyspath

# Directory to add in the System Path
path = 'C:\\'

# Init System Path wrapper and read its actual value
syspath_wrapper = winsyspath.WinSysPath()

# Try to add a path into System path
try:
    if syspath_wrapper.add(path):
        print("The path "{}" is correctly added to the System Path".format(path))
    else:
        print("The path "{}" is already in System Path, so cannot be added".format(path))
except (EnvironmentError, WindowsError, OSError, ValueError) as ex:
    print("Error -> {}".format(str(ex)))

# Reload System path value (needed only if it is modified outside python)
syspath_wrapper.reload()

# Print System Path value as a list
print(syspath_wrapper.get())

# Print System Path value as a string
print(syspath_wrapper.get_str())

# Try to remove a path from System path
try:
    if syspath_wrapper.remove(path):
        print("The path "{}" is correctly removed from System Path".format(path))
    else:
        print("The path "{}" is not in System Path, so cannot be removed".format(path))
except (EnvironmentError, WindowsError, OSError, ValueError) as ex:
    print("Error -> {}".format(str(ex)))Sourceshttps://docs.python.org/2/library/_winreg.htmlhttps://docs.python.org/3/library/winreg.html
Package: wint
Wint - dependency injection with type hints.IntroWint is a lightweight library that implements dependency injection via type hinting.InstallationJust use pip:$ pip install wintHow it worksThere are a ton of approaches to DI, and this library implements only property injection.Whenautowireddecorator is applied then class is inspected for all
annotated properties. If property has no value, then it is replaced withDependencyDescriptor.Dependency is resolved when attribute is accessed on instantiated class instance.This behaviour allows to resolve dependencies in lazy manner with the downside of a side effect — instance
receives a descriptor property that was not existed earlier.Examplefromwintimportautowired,ContainerProviderclassPrinter:"""Abstract class for printing messages."""defprint(self,message):raiseNotImplementedErrorclassRealPrinter(Printer):"""Implementation of `Printer` which uses `print` to output messages."""defprint(self,message):print(message)@autowired()classPrintService:# RealPrinter will be automatically injected on property access.printer:Printerdefrun(self,msg):self.printer.print(f"{msg}, i'm running!")if__name__=="__main__":container=ContainerProvider.get()# Register RealPrinter as singleton implementation of Printer.container.register(Printer,RealPrinter())PrintService().run('hey')$pythonexample.py
hey,i'mrunning!NotesThis library is built onpunq(MIT License) and uses it's vendored version.
Package: wintappy
Wintap-PyUtilPython utilities for working with Wintap dataMinimum System RequirementsPython 3.10Getting StartedSetup the python venv and install from source for development testing.$makevenv
$pipenvrun--pip3install-e.Import the module in a python notebook or file, or use the commandline tools$pipenvrunrawtorolling--help
usage:rawtorolling.py[-h][-dDATASET][-sSTART][-eEND][-lLOG_LEVEL]ConvertrawWintapdataintostandardform,partitionedbyday

options:-h,--helpshowthishelpmessageandexit-dDATASET,--datasetDATASETPathtothedatasetdirtoprocess-sSTART,--startSTARTStartdate(YYYYMMDD)-eEND,--endENDEnddate(YYYYMMDD)-lLOG_LEVEL,--log-levelLOG_LEVELLoggingLevel:INFO,WARN,ERROR,DEBUGfromwintappy.datautils.rawutilimportinit_dbconnection=init_db()print(connection.query('select 1'))Seewintappy/examples/for additional examples.ReleaseLLNL-CODE-837816
Package: wintemp
Temp Remover for WindowsThe Temp Remover for Windows, as the name suggests, is a basic Windows Temporary File remover that removes all unwanted .tmp files from the C:/Windows/Temp directory.InstallationYou can install Temp Remover for Windows using Pippip install wintemp==1.0.0How to UseUsage of the Temp Remover is very simple and staightforward. You can use the following sample code to clean you Windows Temp directory.from wintemp import wintemp

clean = wintemp.temp_cleaner()The defaultTempfolder is set toC:/Windows/TempYou can, if you want to, use a custom directory to clean.Look at the sample code belowfrom wintemp import wintemp

clean = wintemp.temp_cleaner(folder = 'your custom folder')Just replaceyour custom folderwith the path of the directory you want to empty.You can also get an output.txtfile that has the information of all the files deleted.Look at the sample code belowfrom wintemp import wintemp

clean = wintemp.temp_cleaner(out_file = True)The default value forout_fileparameter is set toFalse. Changing itTruewould create an output file with information of all the Deleted Files and also the Files with Error.ContactEmail atarjunbasandrai2004@gmail.comto report any bugs or for module usage queries.
Package: winterapi
winterapiAPI interactions for WINTERInstallationWe advise you to install the package in a virtual environment or conda environment.
You will need python 3.10 or later to use this package.Install from pypipipinstallwinterapiInstall from sourcegitclonegit@github.com:winter-telescope/winterapi.gitcdwinterapi
pipinstall--editable".[dev]"pre-commitinstallUpdating the packageYou will need to occasionally update the package to get the latest features and bug fixes.
Sometimes the server will require a newer version of the package to interact with it,
and you will receive a warning when using winterapi.
You can update by running the following command:Updating for pypipipinstall--upgradewinterapiorUpdating from sourcecdwinterapi
gitpull
pipinstall--editable".[dev]"pre-commitinstallUsing winterapiYou can find example usage undernotebooks/directory in this repository.
The notebooks are numbered, and walk you through setting up credentials,
triggering a ToO, checking on the status of a ToO, and downloading images after
observations are complete.Problems?The first port of call if you have any problems is to download the latest
version of the package. You might even get a warning when using the package that your
version is out of date. If you are still having problems after updating,
you could also try re-entering your credentials.If you are still having problems, please open a Github Issue and we will
try to help you as soon as possible.
Package: winterstone
AboutWinterstone – framework for PyQt application.FeaturesTemplate for applicationSome pre-defined UISettings managerPluginsDev toolsQuick startInstallRun winter_admin.py new appname (its created appname dir with simple application)Fill appname/config/main.cfg with your dataRun appname/main.pySee docs folder and source of main.py for other informationProject folder structure.
├── config
│   ├── debug.cfg   --  options of debug widget (WinterDebug)
│   ├── main.cfg    --  options of application. use this file for your settings
│   └── plugins.cfg --  list of active plugins. do not edit
├── etc
│   └── pre-commit  --  hook for git. do winter_ver.py before commit (bump version in main.cfg)
├── icons           --  some icons. place your icons here
├── plugins         --  usful examples of plugins
│   ├── QSciConfig
│   │   ├── plugin.cfg
│   │   └── QSciConfig.py
│   └── UIConfig
│       ├── plugin.cfg
│       └── UIConfig.py
├── ABOUT           --  information about your application
├── core.py         --  main logic of your app
├── __init__.py
├── LICENSE
├── main.py         --  main executable file. all UI logic here
└── TODOLib structure.
├── base.py         --  base classes of library
├── baseQt.py       --  base classes of UI
├── extraQt.py      --  some extra widgets
├── snowflake.py    --  small useful functions
└── winterBug.py    --  all about debug widgetDependenciesPython Config:http://www.red-dove.com/config-doc/
install:
sudo pip install config
or
sudo easy_install configPython KDE:**optional**
requires for color comboboxes in settings manager
install:
sudo apt-get install python-kdePython QScintilla2:**optional**
requires for dev tools
install:
sudo apt-get install python-qscintilla2
Package: wintersweet
wintersweet介绍基于fastapi高性能web框架，结合aiohttp、aiomysql、aioredis等常用异步库，整合为一套简单易用的二次封装框架，使用者可以通过简单的demo和配置，即可快速搭建web服务，其中还包含各种易用的工具供开发者使用软件架构asyncs                                    														异步工具库pool																						 池相关base																				 基类context                                                                            上下文管理mysql                                                                               mysql池相关redis                                                                                 redis池相关mongo                                                                             mongo池相关task                                                                                         任务工具库interface                                                                         接口定义tasks                                                                                任务相关tools                                                                                       其他工具circular                                                                           循环器framework                                                                                   框架工具库conf                                                                                       配置文件解析fastapi                                                                                   fastapi主启动工具exception_handlers                                                            全局异常处理器global_setting                                                                      全局配置文件middlewares                                                                        中间件request                                                                                 请求相关工具response                                                                              标准返回定义utilsbase                                                                                      基础工具errors                                                                                   错误定义logging                                                                                 日志模块metaclass                                                                            元类安装教程Version: python >=3.8下载gitclonegit@gitee.com:xixigroup/wintersweet.gitpip安装pipinstallwintersweet使用说明本项目指在提供一套快速开发工具，使用者仅通过少量的配置即可快速便捷的使用包括框架、数据库、缓存等工具，在尽可能的精简的前提下最大限度满足使用者的开发场景要求。本项目立足于fastapi，集成各异步库，以最大程度降低使用者异步编程学习成本，体会并发编程的乐趣参与贡献@xixi.Dong @wsb特技基于Redis的分布式锁# acquire周期内将持续持有锁asyncwithMutexLock(redis_pool,'test-key',60)aslock:is_locked=awaitlock.acquire()ifis_locked:# do somethingelse:# do something....
Package: wintertoo
wintertooGeneral package for Target-of-Opportunity (ToO) observations with theWINTER observatory.Current functionality includes:Converting RA/DEC positions to fieldsBuilding ToO schedulesVerifying ToO schedulesInstallationInstall from pypipipinstallwintertooInstall from sourcegitclonegit@github.com:winter-telescope/wintertoo.gitcdwintertoo
pipinstall--editable".[dev]"pre-commitinstall
Package: win-textio
About Module
Hey This Is A Module For Python It Makes Easy To Do Some Animated Text first do:import textiotextio has an alphs variable which has a list of alphabets to import use:textio.alphsand textio also has arenderText()function which is different fromprint()you are thinking what is different fromprint()? because this function has animated text it uses 2 args 1 isstring2 iswritetimeyou can putwritetime0.1 to 0.10 now don't think more aboutwritetimeput any number from this. then second function isdeleteText()which will delete therenderText()you have written before it takes 1 argwaitwhich is how many seconds after it should delete the text thats the brief explaination of TextIO.