Saravanan666/pypi-org huggingface dataset:
Package: webdriver-update-tool
webdriver-update-toolTools for updating the webdriver automatically.InstallationUsepipto install the webdriver-update-tool package like this:$pipinstallwebdriver-update-toolUsagefromwebdriver_update_toolimportupdate_chromedriver4macasucd4macMAC_LOCAL_CHROME_PATH=r"/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"PATH_TO_EXTRACT_DRIVER_ZIP="driver"CHROME_DRIVER_PATH=os.path.join(PATH_TO_EXTRACT_DRIVER_ZIP,"chromedriver")ucd4mac.check_driver(MAC_LOCAL_CHROME_PATH,PATH_TO_EXTRACT_DRIVER_ZIP,CHROME_DRIVER_PATH)LicenseMIT License
Package: webelement-highlighter
WebElementHighlighterWebElementHighlighter is library to highlight WebElements. It was made to use it on automated tests, specially when you want to highlight errors on a webpage.Features.You can make WebElements blink changing their background and border styles.You can change the background style of WebElements.You can change the border styles of WebElements.How to use.fromwebelement_highlighterimportWebElementHighlighterfromseleniumimportwebdriverdriver=webdriver.Chrome()driver.get("https://www.w3schools.com/js/default.asp")wh=WebElementHighlighter(driver)we=driver.find_element_by_id("topnavbtn_references")wes=driver.find_elements_by_class_name("w3-col")wh.make_it_blink(we)wh.make_them_blink(wes,times=20)wh.highlight_element(we)wh.highlight_elements(wes,stop=True)How to install.pip install webelement_highlighter
Package: webenchmark
一款基于命令行的网站压测小工具Webenchmark支持HTTP GET, POST, PUT, DELETE, HEAD操作支持长连接支持多个URL混合测试支持超时时间设置支持身份认证， Basic Auth和Digest Auth用法说明：安装：pip install webenchmark命令行选项：NikanMacBookPro:~nikan$webenchmark
usage:webenchmark[-h][-cCONCURRENCY][-nTOTAL_REQUESTS][-mMETHOD][-fFILE_PATH][-dDATA][-jJSON][-tTIMEOUT][-k][-aAUTH][-HHEADERS][-CCOOKIES][--version]urls[urls...]HTTP压测小工具🎂Author:NiKan(859905874@qq.com)positionalarguments:urls请求URL(一个或多个)optionalarguments:-h,--helpshowthishelpmessageandexit-cCONCURRENCY,--concurrencyCONCURRENCY并发数-nTOTAL_REQUESTS,--numberTOTAL_REQUESTS请求数-mMETHOD,--methodMETHOD请求方式{GET,POST,DELETE,PUT,HEAD,OPTIONS}-fFILE_PATH,--fileFILE_PATH文件路径-dDATA,--dataDATApost/put数据-jJSON,--jsonJSONpost/putjson数据-tTIMEOUT,--timeoutTIMEOUT超时时间-k,--keep-alive是否启用长连接-aAUTH,--authAUTH身份认证eg.basic:user:password-HHEADERS,--headersHEADERS请求头-CCOOKIES,--cookiesCOOKIES请求cookies--version当前版本例子:# 对单个请求进行get测试webenchmark-c10-n30https://www.baidu.com# 允许keep-alivewebenchmark-k-c10-n30https://www.baidu.com# 设置超时时间（整数）webenchmark-t1-c10-n30https://www.baidu.com# 对多个URL进行混合请求webenchmark-c10-n30https://www.baidu.comhttp://example.com/https://www.taobao.com/# basic authwebenchmark-abasic:test_user:test_passwordhttp://example.com/# digest authwebenchmark-adigest:test_user:test_passtest_passwordhttp://example.com/# post jsonwebenchmark-mPOST-j"{'test':'test_json'}"-c10-n100http://example.com/# post datawebenchmark-mPOST-j"{'test':'test_json'}"-c10-n100http://example.com/# Headers和Cookieswebenchmark-H"{'user-agent':'hahah'}"-C"{'a':'1'}"http://example.com/# 有非常多的url可以放于文件中,每行一个urlwebenchmark-fbenchamark.txt输出示例：NikanMacBookPro:~nikan$webenchmark-c10-n30https://www.baidu.com
正在进行压测.....压测结果========================并发数：10请求数：30失败数：0非200请求数：0平均请求时长（秒）：0.100============================请求时间分布（秒）0%（最快）0.07810%0.08050%0.09490%0.11895%0.121100%（最慢）0.183
Package: webencodings
This is a Python implementation of theWHATWG Encoding standard.Latest documentation:http://packages.python.org/webencodings/Source code and issue tracker:https://github.com/gsnedders/python-webencodingsPyPI releases:http://pypi.python.org/pypi/webencodingsLicense: BSDPython 2.6+ and 3.3+In order to be compatible with legacy web content
when interpreting something likeContent-Type:text/html; charset=latin1,
tools need to use a particular set of aliases for encoding labels
as well as some overriding rules.
For example,US-ASCIIandiso-8859-1on the web are actually
aliases forwindows-1252, and an UTF-8 or UTF-16 BOM takes precedence
over any other encoding declaration.
The Encoding standard defines all such details so that implementations do
not have to reverse-engineer each other.This module has encoding labels and BOM detection,
but the actual implementation for encoders and decoders is Python’s.
Package: web-error
Web Errors v0.5.6web_erroris a set of exceptions and handlers for use in web apis to support easy error management and responsesEach exception easily marshals to JSON for use in api errors. Handlers for different web frameworks are provided.ErrorsThe baseweb_error.error.HttpExceptionaccepts amessage,debug_message,codeandstatus(default 500)And will render a response with status as the status code:{"code":"code","message":"message","debug_message":"debug_message",}Some convenience Exceptions are provided, to create custom error subclass these
and definemessageandcodeattributes.web_error.error.ServerExceptionprovides status 500 errorsweb_error.error.BadRequestExceptionprovides status 400 errorsweb_error.error.UnauthorisedExceptionprovides status 401 errorsweb_error.error.NotFoundExceptionprovides status 404 errorsCustom ErrorsSubclassing the convenience classes provide a simple way to consistently raise the same error
and message.Code is an optional attribute to provide a unique value to parse in a frontend/client instead of
matching against messages.fromweb_error.errorimportNotFoundExceptionclassUserNotFoundError(NotFoundException):message="User not found."code="E001"FastAPIInclude theexception_handlerin your app.exception_handler=web_error.handler.fastapi.exception_handlerreturnFastAPI(exception_handlers={Exception:exception_handler,RequestValidationError:exception_handler,HTTPException:exception_handler,},)PyramidInclude the pyramid exception handlers in your config.defmain(global_config,**config_blob):config=Configurator(settings=config_blob)...config.scan("web_error.handler.pyramid")returnconfig.make_wsgi_app()This will handle all unexpected errors, and any app specific errors.@view_config(route_name="test",renderer="json")deftest(request):raiseUserNotFoundError("debug message")FlaskRegister the error handler with your applicationapp.register_error_handler(Exception,web_error.handler.flask.exception_handler)AiohttpDecorate your views with the error handler.@web_error.handler.aiohttp.view_error_handlerasyncdefuser(self):raiseUserNotFoundError("debug message")
Package: webes
Python module for Two It project
management platform (TwoIt API wrapper)<h1>1. Installing</h1>
              
              Open the terminal. And write in cmd: <b>pip install webes</b> or <b>pip install --upgrade webes</b>.
              Create the file <b>[file_name]</b>.py and write in: <b>import webes</b> or <b>from webes import *</b>.
              
                  <h1>2. Commands</h1>
              
                  <h3>Server</h3>
              server() - Start the server(website)
              server(mode='close') - Stop the server
              
                  <h3>Server args</h3>
              getcmd(command) - Run the command on the server.
              gettemp(template) - Get the template.
              
                  <h3>Other</h3>
              getcss(name) - Create the STYLE.CSS path.
              gethtml(name) - Create the INDEX.HTML path.
Package: webevents
WebeventsA little, zero-dependency Python library for making simple HTML/JS GUI appsInstallationNote that only Python >= 3.6 is supportedpip install webeventsExample: ping-pongPython sends a number to Javascript, which outputs it out to console, increments it and sends the number back to Python for displaying in terminal. And so on.We will have the directory structure presented below. Generally speaking, In the "web" folder you can put your HTML/CSS/JS application. "Ping-pong" application will only consist of one "index.html" file.├── example.py
└── web
    └── index.htmlindex.html:<!DOCTYPE html><html><head><metacharset="utf-8"/><metahttp-equiv="X-UA-Compatible"content="IE=edge"><title>Webevents "Ping-pong"</title><metaname="viewport"content="width=device-width, initial-scale=1"><scriptsrc="webevents.js"></script></head><body>Demonstration in console<script>webevents.addEventListener("ping",function(number){console.log(number);webevents.fireEvent("pong",number+1);});</script></body></html>example.py:importwebbrowserimportwebeventsdefpong_callback(number):print(number)snakes_events.fire_event("ping",int(number)+1)address=("localhost",8080)snakes_events=webevents.run(address,"web")snakes_events.add_termination_callback(lambda:print("The end!"))snakes_events.add_event_listener("pong",pong_callback)webbrowser.open_new_tab("http://{}:{}".format(*address))# initial pingsnakes_events.fire_event("ping",0)try:whileTrue:passexceptKeyboardInterrupt:snakes_events.terminate()Multiple callbacks are supported. You can remove events with:remove_event_listener(event_type, callback)in PythonremoveEventListener(event_type, callback)in JSIn Python you can add termination callbacks withadd_termination_callback(callback). It may be useful in multi process applications. Note that there is no need to add termination callbacks if you don't need them.Usually termination is occurred when user closes the browser page. But you can disable this by passingtimeout=Noneinwebevents.run(). You always can terminate the "webevents" withwebevents.terminate().Javascript output:0 2 4 6 8 10 12 ...Python output:1 3 5 7 9 11 13 ... The end!
Package: webex-assistant-sdk
An SDK for developing Webex Assistant Skills based on theMindMeldplatform.Install the SDKpip install webex_assistant_sdkUsing the SDKTo use the SDK we just need to import SkillApplication and pass in the RSA private key as well as the secret for verifying the request's header.Here is an example implementation which is found in thetestsfolder:frompathlibimportPathfromwebex_assistant_sdk.appimportSkillApplicationfromwebex_assistant_sdk.cryptoimportload_private_key_from_filesecret='some secret'key=load_private_key_from_file(str(Path(__file__).resolve().parent/'id_rsa'))app=SkillApplication(__name__,secret=secret,private_key=key)__all__=['app']Similar to MindMeld applications, for development convenience, we have included a Flask server for you to test your application.To run the development server you can use theruncommand:python -m [app] run.We do not recommend using the development server for production purpose. To learn more about productionizing Flask application, please checkDeployment Options.The introduce decoratorThe SkillApplication adds aintroducedecorator in addition to MindMeld's build in decorator. This is used to mark the dialogue state to use when a user calls a skill without any command, i.e. "talk to "Example@app.introducedefintroduction(request,responder):passDebuggingTo debug the server and turn off encryption/decryption, you can set the environment variableWXA_SKILL_DEBUGto beTrue.Command LineInstalling the webex_assistant_sdk package adds a wxa_sdk command line application. Use the-hargument for help.Usage:wxa_sdk[OPTIONS]COMMAND[ARGS]...

Options:--install-completion[bash|zsh|fish|powershell|pwsh]Installcompletionforthespecifiedshell.--show-completion[bash|zsh|fish|powershell|pwsh]Showcompletionforthespecifiedshell,tocopyitorcustomizetheinstallation.--helpShowthismessageandexit.

Commands:generate-keysGenerateanRSAkeypairgenerate-secretGenerateasecrettokenforsigningrequestsinvokeInvokeaskillrunninglocallyorremotelynewCreateanewskillprojectfromatemplate
Package: webex-handler
Webex Logging HandlerThis is a simple Python logging handler that emits messages to Webexincoming Webhooks.InstallingTo install run:python-mpipinstallgit+https://github.com/xorrkaz/webex-log-handler.gitUsageFirst, obtain an incoming webhook URL fromhttps://apphub.webex.com/messaging/applications/incoming-webhooks-cisco-systems-38054.Here is a trivial usage.  But you'll likely want to use alogger.confor the like.importloggingfromwebex_handlerimportWebexHandlerlogger=logging.getLogger(__name__)# The notice level is more severe than INFO but not as severe as WARNING.logger.setLevel(WebexHandler.NOTICE)logging.addLevelName(WebexHandler.NOTICE,"NOTICE")wx=WebexHandler("https://webexapis.com/v1/webhooks/incoming/...")wx.setLevel(WebexHandler.NOTICE)formatter=logging.Formatter('%(asctime)s-%(name)s-%(levelname)s-%(message)s')wx.setFormatter(formatter)logger.addHandler(wx)logger.log(WebexHandler.NOTICE,"Logging from Python!")If you are using asyncio, there is an async version of the handler as well.  It requires theaiologandaiohttppackages, though.  To use it:pipinstallaiologaiohttpimportasyncioimportaiologimportloggingfromwebex_handlerimportAsyncWebexHandlerlogger=logging.getLogger(__name__)# The notice level is more severe than INFO but not as severe as WARNING.logger.setLevel(AsyncWebexHandler.NOTICE)logging.addLevelName(AsyncWebexHandler.NOTICE,"NOTICE")wx=AsyncWebexHandler("https://webexapis.com/v1/webhooks/incoming/...")wx.setLevel(AsyncWebexHandler.NOTICE)formatter=logging.Formatter('%(asctime)s-%(name)s-%(levelname)s-%(message)s')wx.setFormatter(formatter)logger.addHandler(wx)asyncdefdo_work():logger.log(AsyncWebexHandler.NOTICE,"Logging from Python!")aiolog.start()loop=asyncio.get_event_loop()loop.run_until_complete(do_work())loop.run_until_complete(aiolog.stop())Et voilà!Other InfoThe WebexHandler uses markdown-formatted messages by default, but you can passuse_markdown=Falseto the WebexHandler constructor to use plain text.Also, be cognizant than a high level (like INFO or DEBUG) can make things very chatty in Webex.  Consider a lower level to minimize noise.
Package: webex-integration
Webex-Integrationwebex-integrationa simple project which can be used to send webex
messages and emits log records from the native logging moduleInstalling Webex-IntegrationWebex-Integration is available on PyPi$python-mpipinstallwebex-integrationUsageSimple MessageIn order to send a simple webex message, you just have to initialize a newWebexTeamsinstance with you personal token and the appropriate room id:fromwebexintegrationimportWebexTeamswebex_teams=WebexTeams(token=my_token,room_id=my_room_id)response=webex_teams.send_message("This is a bot")response.raise_for_status()logging handlerIn order to send logging message into an selected chat room, you just have to
initialize a newWebexTeamsHandlerwith an appropriateWebexTeamsinstance
and pass the handler to your logging instance:importloggingfromwebexintegrationimportWebexTeamswebex_teams=WebexTeams(token=my_token,room_id=my_room_id)webex_handler=WebexHandler(webex_teams)webex_handler.setLevel(logging.INFO)logging.basicConfig(level=logging.INFO,handlers=[webex_handler])try:raiseRuntimeError()exceptExceptionasex:logging.error("An Error occured")The default logging formatter is set toWebexFormatter, feel free to
override or use a different formatter.
Package: web-express-py
express.pyPython implementation of the widely used express.jsWhyGoing to answer this first: because yes. More out of boredom and wanting to do something with my time rather than playing games. But oh well, here it is.InstallationInstall this package with a very very very very very simple command:# Unix / macOS:python3-mpipinstall--upgradeweb-express-py# Windows:py-3-mpipinstall--upgradeweb-express-pyAfter this, you can just importexpressinto any of your projects using:fromexpressimportexpressOk here comes stealing examples from express.jsHello world examplefromexpressimportexpressapp=express()@app.get("/")defhelloWorld(req,res):res.send("Hello World!")app.listen(3000)Basic routingfromexpressimportexpressapp=express()@app.get("/")defhelloWorld(req,res):res.send("Hello World!")@app.post("/")defaPostRequest(req,res):res.send("Got a POST request")@app.put("/user")defupdateUser(req,res):res.send("Got a PUT request at /user")defdeleteUser(req,res):res.send("Got a DELETE request at /user")app.delete("/user",deleteUser)app.listen(3000)More routing infoIf you want to readallof the routing API through the guide????click hereIf you want to readallabout how to setup middleware,read this
Package: webex-skills
Webex Assistant Skills SDKThe Webex Skills SDK is designed to simplify the process of creating a Webex Assistant Skill. It provides some
tools that help to easily set up a template skill, deal with encryption and test the skill locally, among other
things.This is a simplified version of the documentation, for more information visit the officialWebex Assistant Skills SDK website.Installing the SDKThis SDK supportsPython 3.7and above. If you want to be able to buildMindMeld Skills,
you will need to usePython 3.7for compatibility with theMindMeld library.Using pipCreate a virtual environment withPython 3.7:pyenvinstall3.7.5pyenvvirtualenv3.7.5webex-skillspyenvlocalwebex-skillsInstall usingpip:pipinstallwebex-skillsIn order to buildMindMeld Skillsyou need themindmeldextra:pipinstall'webex-skills[mindmeld]'Install from SourceYou can install from source usingPoetry. Set up python 3.7.5 locally:pyenvinstall3.7.5pyenvlocal3.7.5Now you can runPoetry'sinstallcommand:poetryinstallIn order to buildMindMeld Skillsyou need themindmeldextra:poetryinstall--extras"mindmeld"Building SkillsYou can follow the next guides for building your first skills:Simple Skills vs MindMeld SkillsBuilding a Simple SkillBuilding a MindMeld Skill
Package: webexteamsarchiver
Simple utility to archive Webex Teams roomsWebex Teams Archiver extracts the messages and files out of a Webex Teams room and saves them in text, HTML, and JSON formats.ExamplefromwebexteamsarchiverimportWebexTeamsArchiverpersonal_token="mytoken"archiver=WebexTeamsArchiver(personal_token)# room id from https://developer.webex.com/docs/api/v1/rooms/list-roomsroom_id="Y2lzY29zcGFyazovL3VzL1JPT00vd2ViZXh0ZWFtc2FyY2hpdmVy"archiver.archive_room(room_id)Produces the following files:$lsTitle_Timestamp.tgzTitle_Timestamp$lsTitle_Timestamp/Title_Timestamp.htmlTitle_Timestamp.jsonTitle_Timestamp.txtattachments/avatars/space_details.jsonBelow is an example of a simple room that got archived.Note 1: The HTML version of the archive requires Internet connectivity because of the CSS, which is not packaged with the archive because of licensing conflicts.Note 2: Please note that use of the Webex Teams Archiver may violate the retention policy, if any, applicable to your use of Webex Teams.InstallationInstalling and upgrading is easy:Install via PIP$pipinstallwebexteamsarchiverUpgrading to the latest Version$pipinstallwebexteamsarchiver--upgradeOptionsThearchive_roommethod exposes the following options:ArgumentDefault ValueDescriptiontext_formatTrueCreate a text version of the archivehtml_formatTrueCreate an HTML version of the archivejson_formatTrueCreate a JSON version of the archiveIn addition, theoptionskwargs supports the following additional options today:ArgumentDefault ValueDescriptioncompress_folderTrueCompress archive folderdelete_folderFalseDelete the archive folder when donereverse_orderTrueOrder messages by most recent on the bottomdownload_attachmentsTrueDownload attachments sent to the roomdownload_avatarsTrueDownload avatar imagesdownload_workers15Number of download workers for downloading filestimestamp_format%Y-%m-%dT%H:%M:%STimestamp strftime formatfile_formatgztarArchive fileformatQuestions, Support & Discussionwebexteamsarchiveris acommunity developedandcommunity supportedproject. Feedback, thoughts, questions, issues can be submitted using theissuespage.Contributionwebexteamsarchiveris acommunity developedproject. Code contributions are welcome via PRs!Copyright (c) 2018-2021 Cisco and/or its affiliates.
Package: web-ext-helper
Web Extension HelperWeb Extension Helperis a command-line tool that simplifies the process of building web extensions. It provides a convenient interface to streamline the development and packaging of your web extensions.FeaturesEasily scaffold a new web extension project.Automate common tasks like bundling and minification.Simplify the process of building and publishing your web extension.InstallationWeb Extension Helper can be installed via pip:pipinstallweb-ext-helper# orpython-mpipinstallweb-ext-helperUsageTo use Web Extension Helper, run the web-ext-helper command followed by the desired action. Here are some examples:*Buildthewebextension
web-ext-helperbuild

*Signthewebextension
web-ext-helpersign

*Publishthewebextension
web-ext-helperpublish

*Createanewmanifest.jsonfile
web-ext-helpermanifest--create

*Viewthecurrentmanifest.jsonfile
web-ext-helpermanifest

*Viewthehelpmenu
web-ext-helper--helpDocumentationFor more information, please visit thedocumentation.LicenseThis project is licensed under the terms of theGNU GPL v3.0 license.ContributingContributions are welcome! If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request.CreditsThis project was created, developed and is maintained byAppSolves.SupportIf you need any assistance or have any questions, feel free to contact me atappsolves@gmail.com.
Package: webeye
WebeyeA Powerful Library for making ethical-hacking/pen-testing toolsAt your Fingertips, just in 3-5 lines of code...Features• Subdomain Enumerator• Port scanner• ReverseDNS Lookup• ReversIP Lookup• Banner Grabber• Firewall Detector• Honeypot Detector (Based on Honeyscore)• Pagelinks Extractor• Shared DNS Scanner• DNS Lookup• Whois Lookup• Geo-IP Lookup• SiteDown detector• ROT encoder & decoder from (ROT-1 - ROT-25)Installationpipinstall-UwebeyeGetting Started# importingfromwebeyeimport*# hosthost="google.com"# schemaschema="https://"# subdomainssubdomains=subenum(host=host)# dns lookupdns=fetch_dns(host=host)# banner grabbergrabbed=grab(host=host,schema=schema)# check for portsports=scan(host=host,port=1025,start=0,dev_mode=False)# cloudflaredetected=enumerate_waf(host=host)# honeypothoneypot=is_honeypot(host=host)Custom ThingsYou can also scan specific ports, Iterable type args can also be added...webeye.scan('google.com',[21,80,443])You can get IP address of subdomain too...print(webeye.subenum(target,no_ip=False))Webeye as AsynchronousfromwebeyeimportAsyncHelperasyncmanner=AsyncHelper()asyncdefportscan(target):awaitasyncmanner.scan(target,1024)asyncdefreversedns(target):awaitasyncmanner.reversedns(target)asyncdefwhois(target):awaitasyncmanner.whois(target)asyncdefextract_pagelink(target):awaitasyncmanner.extract_pagelink(target)asyncdefshared_dns(target):awaitasyncmanner.fetch_shared_dns(target)asyncdefbannergrabber(target):awaitasyncmanner.grab(target)asyncdefgeoip(target):awaitasyncmanner.geoip(target)asyncdeffind_subdomains(target):awaitasyncmanner.find_subdomains(target)asyncdefdnslook(target):awaitasyncmanner.fetch_dns(target)asyncdefreversiplook(target):awaitasyncmanner.reverseip(target)asyncdefenumeratefirewall(target):awaitasyncmanner.enumerate_firewall(target)asyncdefis_honeypot(target):awaitasyncmanner.is_honeypot(target)Webeye as CLISupport•Discord
Package: webf
ContentsInstallationSummaryChangesRequirementsInstallationYou can install webf witheasy_install webfor install from thesubversion
repositorywitheasy_installwebf==dev.Summarywebf is a tool for WebFaction’s (http://webfaction.com/) XML-RPC API.Usage Examples:$ webf --system pwd
     Run the 'pwd' command in your homedir

$ webf --create-app=someapp static False None
     Creates an application named 'someapp' which is a static/php app

$ webf --create-db=mydb mysql asdfg123
     Creates an mysql database named mydb with a passwordChanges0.1.0: Initial releaseRequirementssetuptoolsConfigObj