Saravanan666/pypi-org huggingface dataset:
Package: wsadmin-type-hints
wsadmin-type-hintsPython package providingtype hintsforwsadminJythoncommands.Thisspeeds upthe development ofwsadminJythonscripts inside an IDE since it provides intellisense on every method of the 5 main objects provided at runtime by thewsadmin:AdminControlAdminConfigAdminAppAdminTaskHelp📚Read the full documentationFeaturesList all module commandsthrough intellisense:Checkparameter and return types, as well as a brief description of the command (usingGoogle syntax):Quick startDownloadUsingpip:pip install wsadmin-type-hintsUsingpoetry:poetry add wsadmin-type-hints --group devUsageUse it like this:try:(AdminControl,AdminConfig,AdminApp,AdminTask,Help)exceptNameError:fromwsadmin_type_hintsimportAdminControl,AdminConfig,AdminApp,AdminTask,Helpelse:print("AdminControl is already defined, i'm not needed here 😃")Thetry..exceptblock is used to differentiate between the development and production environment.DisclaimerThis is an unofficial package created for speeding up the development process and is not in any way affiliated with IBM®. All trademarks and registered trademarks are the property of their respective company owners.The code does not include any implementation detail, and includes only the informations (such as parameter numbers, types and descriptions) publicly available on the official Websphere Application Server® documentation.
Package: wsaio
wsaio is a callback-based WebSocket library for Python.ExamplesimportasynciofromwsaioimportWebSocketClientclassEchoClient(WebSocketClient):asyncdefon_text(self,data):awaitself.write(data)asyncdefon_binary(self,data):awaitself.write(data,binary=True)asyncdefmain(loop):client=EchoClient(loop=loop)awaitclient.connect('wss://localhost/helloWorld')awaitclient.wait_until_closed()loop=asyncio.get_event_loop()loop.run_until_complete(main(loop))
Package: wsblib
WSBLibWeb Server Base Library (WSBLib), a library that serves as a basis for creating other web server frameworks in Python. The goal is to be simple, fast and secure.To create server frameworks, you need to use this library and theHTTPPyParserlibrary to get data from the request, as it is your framework that will manage the entire request cycle, theWSBLiblibrary just makes it easier for you.InstallationYou can use the PIP package manager to installWSBLib...pip install wsblibOr install manually, cloning the repository and running the command below:python3 setup.py installExamplesYou can seeWSBLib Usage Examplesto get an idea of how this library works or get inspired to create your own project usingWSBLib.LicenseBSD 3-Clause
Copyright (c) 2022, Jaedson Silva
All rights reserved.This project use theBSD 3-Clauselicense. Pleasesee LICENSE filetomore informationabout license.
Package: ws.caldavcheck
This packages creates a test event in a CalDAV calendar, and checks that it can
be read back.UsageCreate a configuration file:[default]
url = https://caldav.example.com/
calendar = testcalendar
username = test@example.com
password = secret
# loglevel = WARNING  # This default means no output for a successful run.Now runcaldav-check-roundtripexample.conf. It will create an event in the
given calendartestcalendarwith a random string in theX-Mailcheck-Tokenheader, check if an event with that string exists, and
then delete the event. The exit status is 0 if sucessful, 1 on errors (e.g.
connection failed) and 2 if the event could not be found.1.0.2 (2023-04-04)ChangesSwitch from setup.py to pyproject.toml (wheel)CHANGES1.1.0 (unreleased)Nothing changed yet.1.0.1 (2018-04-08)Fix typo in console script name.1.0.0 (2018-04-08)First release.
Package: wscan
wscan v2.4wscan——一个基于协程的轻量级Web目录扫描器写来平时用来打CTF，探测敏感信息和目录结构的，主要目的还是要优雅 、快捷一点:)适用于CTF这类网站页面不多，需要敏感文件、目录结构探测的网站扫描安装$python3-mpipinstallwscan特性Fuzz网站目录遍历爬取网站url多协程更效率可随机User-agent自定义Fuzz后缀名指定爬取协程数404页面识别（粗略）友好的界面以及优雅快捷的使用方法 : )Demo用法:Type-hfor help::$ wscan [-u URL] [-f] [-m] [Extend options]-u  URL:          目标URL-f:   启用Fuzz功能-m:   启用链接爬取功能（就是遍历爬取，网站大的话会炸锅）-b  BASE:  Fuzz的基址如:-b /cms/app.   [ Default: / ] （将会从/cms/app为基础，在其后面添加字典路径进行Fuzz）-e  EXTEND:   Fuzz的后缀名. [Default: php]-max   NUM:     协程最大值. [ Default: 20 ]-t TIMEOUT:     请求超时时间. [Default: 12]-404 NOT_FOUND:      自定义404页面的关键字，用于判断自定义404页面。如： "Not found"-o:       指定输出路径-s:       爬取静态资源链接（一般XSS、CSRF等题里面会用到静态资源如js，css，img等）--no-re:      爬链接的时候禁止重定向--no-map:      在扫描报告中不输出站点结构图-v,-vv:      -v显示详细信息，-vv显示最详细的信息-h:       帮助例子$wscan-u"http://www.example.com/"-f-m安装依赖Python >=3.5aiohttpcoloramabs4感谢开源作者maurosoria开源的dirsearch为wscan提供的灵感以及Fuzz字典。English Documentwscan is a Fast & Simple web site scanner.Base on aiohttp and refer to the dirsearch of multi-threading version.Can both run on Linux & Windows.Install$python3-mpipinstallwscanFeaturesFuzz web site pathMapping a site mapMulti-co-routineUser-agent randomizationCustom extensionsCustom maximum of co-routineFriendly interfaceElegant and convenient :)DemoUsage:Type-hfor help::$ wscan [-u URL] [-f] [-m] [Extend options]-u  URL:          Target URL.-f:   Fuzz target url with dictionary .-m:   Crawl all URL on the target to get a map.-b  BASE:  Base URL of fuzzinge.g-b /cms/app.   [ Default: / ]-e  EXTEND:   Suffix name used for fuzzing. [Default: php]-max   NUM:     Max num of co-routine. [ Default: 20 ]-t TIMEOUT:     Requests timeout. [Default: 12]-o:       Output dir-404 NOT_FOUND:       Customize a 404 identification, it'll be used as a keyword for searching text. e.g. "Not found"-s:       Crawl static resources when mapping target.--no-re:       Don't redirect when requesting.-o:       Don't record site map in scan report-v,-vv:      Show more detail.-h:       Show this help message and exit.Example$wscan-u"http://www.example.com/"-f-mRequiresPython >=3.5aiohttpcoloramabs4更新日志V2.4.12019-12-16:修复Linux下字符重叠问题V2.42019-12-15:修复bug: coroutine never wait修复bug: InvalidURL Error优化扫描日志输出
3.1 日志保存路径设置为当前目录（避免Linux下Permission Denied）
3.2 生成扫描后正常响应的请求路径记录，即日志中Web urls部分添加新特性
4.1 404页面识别（粗略），后面看情况添加simhash计算相似度，避免太臃肿。
4.2 指定请求超时时间、日志生成细节等参数v2.32019/9/20优化爬虫协程以及站点展示
Package: wscelery
Real time celery monitoring using websockets. Inspired byflower.RequirementsPython >= 3.4InstallationPyPI version (recommended):$ pip install wsceleryDevelopment version:$ pip install https://github.com/johan-sports/wscelery/zipball/masterUsageLaunch the websocket listener on port 8001:$ wscelery --port=8001Or launch from celery:$ celery wscelery -A proj --address=127.0.0.1 --port=8001Broker URL and other configuration options can be passed through standard Celery options:$ celery wscelery -A proj --broker=amqp://guest:guest@localhost:5672//To see all command options use:$ wscelery --helpDocumentationFull documentation can be found onRead The Docs.CaveatsTLS encryption not (yet) supportedContributingIf you want to contribute, feel free to submit a PR. Please make sure that the tests pass
(run withpython setup.py test). Make sure you add your name toCONTRIBUTORS.LicenseLicensed under MIT. See the LICENSE file in the project root directory.
Package: wsc-grempy-transport
This package helps you usegremlinpython,
when you can't useasyncio.ProblemIn some settings, e.g. aneventletweb server with monkey patching, you may run into errors if you try to run code
that relies on Python'sasyncioframework.
(Demonstrationhere.)If you want to usegremlinpythonin such a setting, then you need an
alternative to the built-inAiohttpTransportclass.SolutionThis package provides theWebsocketClientTransportclass. It relies on the popularwebsocket-clientpackage,
which runs withoutasyncio.Usagefromgremlin_python.driver.driver_remote_connectionimportDriverRemoteConnectionfromwsc_grempy_transport.transportimportwebsocket_client_transport_factoryremote=DriverRemoteConnection('ws://localhost:8182/gremlin',transport_factory=websocket_client_transport_factory)DevelopmentTheWebsocketClientTransportclass is very rudimentary. It is essentially
just a wrapper for thewebsocket.WebSocketclass, and could probably benefit
from some error checking to make it more robust.Contributions are welcome!
Package: wscheck
WSCheckWSCheckis a static analysis tool for whitespaces.InstallationpipinstallwscheckUsageCheck multiple files:wscheckorange.shpineapple.xmlkiwi.jsExclude rules:wscheck--excludeWSC002--excludeWSC003orange.shGet list of available rules:wscheck--list-rulesFor details about rules, seeRulesWrite CheckStyle output too:wscheck--checkstyleresults.xmlpineapple.xmlExamplewscheckexamples/multiple_problems.pyIn examples/multiple_problems.py line 2:
class LabelPrinter:
^-- WSC007: File begins with newline

In examples/multiple_problems.py line 6:
        self.print_to_pdf()
                           ^-- WSC002: Tailing whitespace

In examples/multiple_problems.py line 9:
   def __generate_pdf(self):
   ^-- WSC003: Indentation is not multiple of 2

In examples/multiple_problems.py line 10:
        pdf_generator = _LabelPdfGenerator()
                                            ^-- WSC001: Bad line ending '\r\n'

In examples/multiple_problems.py line 16:
--->--->os.makedirs(self.__cache_dir, exist_ok=True)
^-- WSC004: Indentation with non-space character

In examples/multiple_problems.py line 22:
        return os.path.join(self.__cache_dir, pdf_name)
                                                       ^-- WSC006: Too many newline at end of file (+1)BugsBugs or suggestions? Visit theissue tracker.BenchmarkYou can run a quick benchmark:tox--tests/performance--quick-benchmarkYou can run benchmarks and generate histogram for compare calls to each other:tox--tests/performance--benchmark-histogramYou can run benchmarks and save results for later compare:tox--tests/performance--benchmark-save=fooYou can run benchmarks and compare with the last saved result with fail treshold:tox--tests/performance--benchmark-histogram--benchmark-compare--benchmark-compare-fail=mean:5%--benchmark-sort=nameYou can run benchmarks and compare with the last saved result by groups:tox--tests/performance--benchmark-histogram--benchmark-compare--benchmark-group-by=func

tox--tests/performance--benchmark-histogram--benchmark-compare--benchmark-group-by=name
Package: ws-cli-chat
Chat ApplicationThis is a command-line chat application built with Python that allows users to connect to a websocket server and chat with other users in real-time.RequirementsPython 3.7+websockets libraryasyncio libraryPySimpleGUIInstallationTo install run the following command in your terminal:pipinstallws-cli-chatUsage
To start the application, run the following command in your terminal:chatYou will be prompted to choose a username. After entering your username, the application will connect to the websocket server and you will be able to chat with other users in real-time.To send a message, simply type your message and hit enter. Your message will be sent to all other users currently connected to the chat room.FeaturesReal-time messaging: Messages are sent and received in real-time, allowing for seamless communication between users.Multiple users: The chat room can accommodate multiple users at the same time, allowing for group conversations.Usernames: Users can choose their own usernames, which are displayed alongside their messages in the chat room.Clearing console: The console is cleared after each new message is received, making the chat experience cleaner.ContributingContributions are welcome! If you have any suggestions or feature requests, please open an issue or submit a pull request.LicenseThis project is licensed under the MIT License. See the LICENSE file for more information.
Package: wscrape
AboutWscrape is a package that allows you to quickly scrape things off a website. Other utils have been added for debugging. CheckPyutils-crfor more debugging/info on the other functions included.ExamplesScrape information on Cars off Wikipediaimportrequestsfrombs4importBeautifulSoupfromwscrapeimportScrape#variable=input("What word would you like to search: ")url="https://en.wikipedia.org/wiki/Cars_(film)"f=Scrape()f.qresult(f.page_content(url))y=f.relems("i","lang","la")print(y.text)#Returns content of provided tagsRetrieve content from a websiteimportwscrape.scrape.miscasreqprint(req.rcontent("abcdefg.com"))#Returns stringScan the website for a specific elementimportwscrape.etc.misc.scan_elemsasscan_elemprint(scan_elem("https://en.wikipedia.org/wiki/Cars_(film)","i","lang","la")#Returns BoolGithub
Package: wscreenshot
wscreenshotwscreenshot is a package which helps you to take screenshot of active windows running in windows OS.
You just have to specify the name of the window which you want to take screen shot.If you don't specify name of any window it takes the default screenshot of current view.Implemented using win32 library and numpy so that it can be directly used by opencv.To take Default ScreenshotfromwscreenshotimportScreenshotimportcv2ascvk=Screenshot()x=k.screenshot()cv.imshow('My Screenshot',x)cv.waitKey(0)cv.destroyAllWindows()To list out the active windows you can useimportwscreenshotwscreenshot.list_window_names()This prints all the active windows.To take screenshot of only specific window useobj = Screenshot('Name of the window')orobj = Screenshot(window_name = 'Name of the window')Example to take the screenshot of File Explorer which is currently runningTo get the exact name of the window usewscreenshot.list_window_names()fromwscreenshotimportScreenshotimportcv2ascvk=Screenshot('File Explorer')x=k.screenshot()cv.imshow('My Screenshot',x)cv.waitKey(0)cv.destroyAllWindows()For taking the cropped screenshot you can specifywidthandheightof the imageobj.screenshot(w = None, h = None)Example:fromwscreenshotimportScreenshotimportcv2ascvk=Screenshot()x=k.screenshot(w=200)cv.imshow('My Screenshot with width 200',x)cv.waitKey(0)cv.destroyAllWindows()x=k.screenshot(h=200)cv.imshow('My Screenshot with height 200',x)cv.waitKey(0)cv.destroyAllWindows()x=k.screenshot(w=200,h=200)cv.imshow('My Screenshot with width and height 200',x)cv.waitKey(0)cv.destroyAllWindows()Advance stuffThis can be used to process games and lot many stuffTo capture each frame we can usefromwscreenshotimportScreenshotfromtimeimporttimeimportcv2ascvwincap=Screenshot('name of some active window')loop_time=time()whileTrue:screenshot=wincap.screenshot()cv.imshow('Computer Vision',screenshot)print(f'FPS{1/(time()-loop_time)}')loop_time=time()ifcv.waitKey(1)==ord('q'):cv.destroyAllWindows()breakprint('Done.')This can be used from processing a game or many image processing application where you can capture each frame and process the image.LimitationsIt will take blank screenshot for applications build using electron and some other framework.
Will try to resolve in next update
Package: ws-dash-components
Whetstone Dash ComponentsWhetstone Dash Components is a Dash component library.Get started with:Install Dash and its dependencies:https://dash.plotly.com/installationRunpython usage.pyVisithttp://localhost:8050in your web browserContributingSeeCONTRIBUTING.mdInstall dependenciesIf you have selected install_dependencies during the prompt, you can skip this part.Install npm packages$ npm installCreate a virtual env and activate.$ virtualenv venv
$ . venv/bin/activateNote: venv\Scripts\activate for windowsInstall python packages required to build components.$ pip install -r requirements.txtInstall the python packages for testing (optional)$ pip install -r tests/requirements.txtWrite your component code insrc/lib/components/S3Upload.react.js.The demo app is insrc/demoand you will import your example component code into your demo app.Test your code in a Python environment:Build your code$ npm run buildRun and modify theusage.pysample dash app:$ python usage.pyWrite tests for your component.A sample test is available intests/test_usage.py, it will loadusage.pyand you can then automate interactions with selenium.Run the tests with$ pytest tests.The Dash team uses these types of integration tests extensively. Browse the Dash component code on GitHub for more examples of testing (e.g.https://github.com/plotly/dash-core-components)Add custom styles to your component by putting your custom CSS files into your distribution folder (ws_dash_components).Make sure that they are referenced inMANIFEST.inso that they get properly included when you're ready to publish your component.Make sure the stylesheets are added to the_css_distdict inws_dash_components/__init__.pyso dash will serve them automatically when the component suite is requested.Review your codeCreate a production build and publish:Build your code:$ npm run buildCreate a Python distribution$ python setup.py sdist bdist_wheelThis will create source and wheel distribution in the generated thedist/folder.
SeePyPAfor more information.Test your tarball by copying it into a new environment and installing it locally:$ pip install ws_dash_components-0.0.1.tar.gzIf it works, then you can publish the component to NPM and PyPI:Publish on PyPI$ twine upload dist/*Cleanup the dist folder (optional)$ rm -rf distPublish on NPM (Optional if chosen False inpublish_on_npm)$ npm publishPublishing your component to NPM will make the JavaScript bundles available on the unpkg CDN. By default, Dash serves the component library's CSS and JS locally, but if you choose to publish the package to NPM you can setserve_locallytoFalseand you may see faster load times.Share your component with the community!https://community.plotly.com/c/dashPublish this repository to GitHubTag your GitHub repository with the plotly-dash tag so that it appears here:https://github.com/topics/plotly-dashCreate a post in the Dash community forum:https://community.plotly.com/c/dash
Package: wsdiff
wsdiffA python script that produces a diff of two files or directories as a single, self-contained HTML file. The resulting
diff works without Javascript and will automatically switch between inline and side-by-side formats depending on
available screen space.Installationpip install wsdiffUsageusage: wsdiff [-h] [-b] [-s SYNTAX_CSS] [-l LEXER] [-L] [-t PAGETITLE]
                    [-o OUTPUT] [--header] [--content]
                    [old] [new]

Given two source files or directories this application creates an html page
that highlights the differences between the two.

positional arguments:
  old                   source file or directory to compare ("before" file)
  new                   source file or directory to compare ("after" file)

options:
  -h, --help            show this help message and exit
  -b, --open            Open output file in a browser
  -s SYNTAX_CSS, --syntax-css SYNTAX_CSS
                        Path to custom Pygments CSS file for code syntax
                        highlighting
  -l LEXER, --lexer LEXER
                        Manually select pygments lexer (default: guess from
                        filename, use -L to list available lexers.)
  -L, --list-lexers     List available lexers for -l/--lexer
  -t PAGETITLE, --pagetitle PAGETITLE
                        Override page title of output HTML file
  -o OUTPUT, --output OUTPUT
                        Name of output file (default: stdout)
  --header              Only output HTML header with stylesheets and stuff,
                        and no diff
  --content             Only output HTML content, without headerExample Output
Package: wserver-compound
WSQluse - фреймворк на основе psycopg2, используемые в микросервисах проекта Watchman1.3:
Исправлено поведение метода try_execute_get, когда метод get_table_dict запрашивает у него записи и названия полей,
а транзакция проваливается, try_execute_get все равно возвращал status=’succes’, с кривыми данными в ключе info.
Package: wsgi2cgi
Run CGI apps under Python WSGI protocol (PEP 333).This is a simple WSGI application that executes an external process
and translates the WSGI protocol to the Common Gateway Interface (CGI).Example:from wsgiref.simple_server import make_server
import wsgi2cgidef app(environ, start_response):wapp = wsgi2cgi.CGI(‘/path/to/executable.cgi’)
return wapp.application(environ, start_response)httpd = make_server(‘127.0.0.1’, 8000, app)
print “Serving on 127.0.0.1:8000…”
httpd.serve_forever()The CGI class supports two arguments:command: absolute path to the CGI application executable.extra_env: additional environment variables.The WSGI application can be used with any server supporting WSGI.More information:PEP-333:http://www.python.org/dev/peps/pep-0333/WSGI Servers:http://wsgi.readthedocs.org/en/latest/servers.htmlInstallThe module can be installed using setup.py:python setup.py installAlternativelly it can be installed with pip:pip install wsgi2cgiLicenseThis package is open source under the MIT license terms. Check COPYING
file for further details.AuthorJuan J. Martinez <jjm@usebox.net>
Package: wsgiakismet
Validates form submissions against the Akismet service to verify that they are not spam.Simple usage example:import cgi
from wsgiakismet import akismet

# Wordpress API Key and website name are required arguments
@akisimet('3489012ab121', 'http://blog.example.com/')
def app(env, start_response):
     usersub = cgi.parse(fp=env['wsgi.input'], environ=env)
     start_response('200 OK', [('Content-type', 'text/plain')])
     return ['Comment is %s' % usersub['comment'][0]]
Package: wsgiappversion
Adds a/versionurl that returns a json response of the current
application version.Example usage:fromwsgiappversionimportApplicationVersionfrommy_projectimportMyWSGIAppapplication=MyWSGIApp()application=ApplicationVersion(application,determine_version='my_project')The requireddetermine_versionargument is used to determine what the
current version actually is.determine_versioncan be either a string or a
callable that takes no arguments. When a string is used then the version is
determined by callingpkg_resources.require(package_name). If that would
not work for your application then a callable that returns the correct
version can be used.Since a package version would likely not change without an application
restart we would recommend using a closure (or some other similar method of
caching a value) as your callable.