Saravanan666/pypi-org huggingface dataset:
Package: website-checker
website_checkerA simple python application for running checks against websites.UsageInstall$pipxinstallwebsite-checkerinstalledpackagesite-check0.1.0,Python3.9.0Theseappsarenowgloballyavailable-checkdone!✨🌟✨# or install into system python with pip# pip install website-checkerExampleDisplay help message$ check --help
Usage: check [OPTIONS] COMMAND [ARGS]...

  A simple python application for running checks against websites.

Options:
  --debug / --no-debug  Toggle debug mode.
  --version             Show the version and exit.
  --help                Show this message and exit.

Commands:
  health   Check website health.
  latency  Check website latency.
  network  Check website network connectivity.Some examples$checknetwork-uhttps://google.com-uhttps://blarg.com{"event":{"check":"network","input":{"timeout":5,"url":"https://google.com"},"output":"pass"},"logger":"website-checker","timestamp":"2020-11-30T05:27:23.413281"}{"event":{"check":"network","input":{"timeout":5,"url":"https://blarg.com"},"output":"fail"},"logger":"website-checker","timestamp":"2020-11-30T05:27:23.443994"}$checkhealth-uhttps://google.com{"event":{"check":"health","input":{"timeout":5,"url":"https://google.com"},"output":"pass"},"logger":"website-checker","timestamp":"2020-11-30T05:27:49.413241"}$checklatency-uhttps://google.com{"event":{"check":"latency","input":{"threshold":500,"timeout":5,"url":"https://google.com"},"output":"pass"},"logger":"website-checker","timestamp":"2020-11-30T05:28:14.460530"}Docker$dockerrun--rm-itaidanmelen/website-checkerhealth--urlhttps://google.com{"event":{"check":"health","input":{"timeout":5,"url":"https://google.com"},"output":"pass"},"logger":"website-checker","timestamp":"2020-11-30T05:00:23.444290"}LicenseCheck out theLICENSEfor more information.CreditsCheck out theCREDITSfor more information.
Package: website-contacts
OverviewThe client library forWebsite Contacts APIin Python language.The minimum Python version is 3.6.Installationpipinstallwebsite-contactsExamplesFull API documentation availablehereCreate a new clientfromwebsitecontactsimport*client=Client('Your API key')Make basic requests# Get contacts for a domain name.response=client.get('youtube.com')print(response)# Get raw API response in XML formatraw_result=client.get_raw('bbc.com',output_format=Client.XML_FORMAT)Advanced usageExtra request parametersresult=client.get('samsung.com',hard_refresh=True)Response model overviewResponse:-company_names:[str]-country_code:str-domain_name:str-emails:[Email]-description:str-email:str-meta_description:str-meta_title:str-phones:[Phone]-call_hours:str-description:str-phone_number:str-postal_addresses:[str]-social_facebook:str-social_instagram:str-social_linkedin:str-social_twitter:str-website_responded:boolSample response{'company_names':['Samsung Electronics Co. Ltd','Samsung Electronics America Inc','Samsung-Sanyo Electronics','Samsung Electronics Industry Co Ltd','Samsung US'],'country_code':'KR','domain_name':'samsung.com','emails':[{'description':'','email':'ssvoc@samsung.com'},{'description':'','email':'eco.sec@samsung.com'},{'description':'','email':'ircontactus@samsung.com'}],'meta_description':'Discover the latest in electronic & smart appliance ''technology with Samsung. Find the next big thing from ''smartphones & tablets to laptops & tvs & more.','meta_title':'Samsung US | Mobile | TV | Home Electronics | Home Appliances ''| Samsung US','phones':[{'call_hours':'','description':'','phone_number':'24 36 40'},{'call_hours':'','description':'','phone_number':'82-2-2255-9000'},{'call_hours':'8 AM - 12 AM EST 7 days a week IT/ Computing 8 AM to 9 PM EST Mon to Fri','description':'','phone_number':'1-800-SAMSUNG 726-7864'}],'postal_addresses':[],'social_facebook':'https://www.facebook.com/SamsungUS','social_instagram':'https://instagram.com/samsungusa','social_linkedin':'','social_twitter':'https://twitter.com/SamsungUS','website_responded':True}Changelog1.0.0 (2021-09-17)First release
Package: websitemailer
This will take a screenshot of a website and send it to a set of email addresses. This can be useful for dashboards, or other frequently updating websites that you want to have automatically delivered to your inbox.DescriptionTo run the script, you can either use command line arguments, a configuration file, or a mix of both.InstallationTo install, simply run:pip install websitemailerRunningTo run it by command line, run:python -m websitemailer.main <cmd line args>For example, this would take a screenshot of google.com and send it through smtp.gmail.com.:python -m websitemailer.main -s smtp.gmail.com -u <smtp username> -p <smtp password> -r http://www.google.com -t <to email address> -f <from email address>You can also use a config file.:mailings: [{
   'to_emails': ['bcdotnotifications1@gmail.com'],
   'from_email': 'bcdotnotifications1@gmail.com',
   'subject': 'Test config subject1',
   'message': 'Test message1',
   'url': ['http://www.google.com']
   },
   {
   'to_emails': ['bcdotnotifications1@gmail.com'],
   'from_email': 'bcdotnotifications1@gmail.com',
   'subject': 'Test config subject2',
   'message': 'Test message2',
   'url': ['http://www.yahoo.com']
   }]

smtp-server: 'test_server_config'
smtp-username: 'test_username_config'
smtp-password: 'test_password_config'
chrome-bin: 'c:\testbin\config'TestingTo run the test suite, run:python -m tox -e py39 -- --email_username bcdotnotifications@gmail.com --email_password eV^5d97% --smtp_server smtp.gmail.com --pop_server pop.gmail.comSometimes, Gmail will reject the login from the tests. In that case, you need to log into the account, and then go tohttps://accounts.google.com/DisplayUnlockCaptchaNoteThis project has been set up using PyScaffold 4.0.2. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: website_monitor
Website MonitorWebsite Monitor is a program used for monitoring web sites and reporting their availability.This tool is intended as a monitoring program for detecting problems on websites.
A perfect tool for web site administrators!UsageUsewebsite_monitorto run the applicationUse (-i time_in_secondsor--i=time_in_seconds)
flags to set custom interval time between website status checks.Usewebsite_monitor_web_appto run flask web server.
Then you can simply view logs in your browser atlocalhost:5000LicenseFree software: MIT licenseTODOCreate a way to simply view logfile via CLICreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2018-03-09)Fixes to first release.0.1.0 (2018-03-07)First release on PyPI.
Package: website-poller
website-poller polls websites specified at~/.websitepollerrc(JSON)
and alerts using system notifications should some website fail to
respond properly.Define your~/.websitepollerrclike this:{"user-agent":"Koodilehto Website Poller","websites":["http://www.github.com","http://www.google.com"]}InstallationLinuxChange the paths at ./install.sh and run it, or add the crontab entry
yourself:@hourlyDISPLAY=:0.0/path/to/websitepoller > /dev/nullMake sure you havepython-notify2installed in order for the
notications to work.OS XMake sure you haveGrowlandgrowlnotifyinstalled.
Otherwise Linux instructions apply.WindowsNo official support at the moment. Feel free to contribute.LicenseMIT. See LICENSE for more information.
Package: website-report
website_reportgenerate website reportswebsite_report is a simple library that allows you to generate website reports in less than 60 seconds , by scraping data frominsites.comonly10requests/ip are allowedyou will have to use proxiesonly60 secondsto generate a reportRequirementspipinstallhtml_to_jsonInstallationpipinstallwebsite_reportUsagefromwebsite_reportimportgenerate_reportgenerate_report('https://www.dafk.net/what/')Output example[{'name':'Overall','rating':'good','value':'6.7'},{'name':'Accessibility','rating':'better','value':'8.3'},{'name':'Experience','rating':'good','value':'5.2'},{'name':'Marketing','rating':'good','value':'5.1'},{'name':'Technology','rating':'better','value':'8.1'},{'name':'Twitter','value':'0.0'},{'name':'Analytics','value':'0.0'},{'name':'Printability','value':'0.0'},{'name':'Freshness','value':'0.0'},{'name':'Meta tags','value':'1.0'},{'name':'Mobile','value':'3.0'},{'name':'Popularity','value':'5.6'},{'name':'Amount of content','value':'7.8'},{'name':'Server behavior','value':'10.0'},{'name':'Page titles','value':'10.0'},{'name':'Headings','value':'10.0'},{'name':'Incoming links','value':'10.0'},{'name':'Images','value':'10.0'},{'name':'Internal links','value':'10.0'},{'name':'URL format','value':'10.0'},{'name':'Domain age','value':'i'}]LicenseMITfree stuff , hell yeah !
Package: website-stats
website_statsgenerate website reportsWeb-stats is a simple library that allows you to generate website reports in less than 60 seconds , by scraping data frominsites.comonly10requests/ip are allowedyou will have to use proxiesonly60 secondsto generate a reportRequirementspipinstallhtml_to_jsonInstallationpipinstallwebsite_statsUsagefromwebsite_statsimportgenerate_reportgenerate_report('https://www.dafk.net/what/')Output example[{'name':'Overall','rating':'good','value':'6.7'},{'name':'Accessibility','rating':'better','value':'8.3'},{'name':'Experience','rating':'good','value':'5.2'},{'name':'Marketing','rating':'good','value':'5.1'},{'name':'Technology','rating':'better','value':'8.1'},{'name':'Twitter','value':'0.0'},{'name':'Analytics','value':'0.0'},{'name':'Printability','value':'0.0'},{'name':'Freshness','value':'0.0'},{'name':'Meta tags','value':'1.0'},{'name':'Mobile','value':'3.0'},{'name':'Popularity','value':'5.6'},{'name':'Amount of content','value':'7.8'},{'name':'Server behavior','value':'10.0'},{'name':'Page titles','value':'10.0'},{'name':'Headings','value':'10.0'},{'name':'Incoming links','value':'10.0'},{'name':'Images','value':'10.0'},{'name':'Internal links','value':'10.0'},{'name':'URL format','value':'10.0'},{'name':'Domain age','value':'i'}]LicenseMITfree stuff , hell yeah !
Package: websiteTest
Website-TesterA package to get visual differences between an expected template image and the actual website’s appearanceFree software: GNU General Public License v3Documentation:https://websiteTester.readthedocs.io.FeaturesThis package is intended to provide an easy-way to check if a website deployment gives errors in the appearence
of the site. It uses simple OpenCV differences and the Selenium library to obtain template and testing images to
be compared.Take a website screencapture and create an expected template of it using just one command.2. Compare the actual website appearence with your previous taken template and paint their differences if anyone
is presentedCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-18)First release on PyPI.
Package: website-tool
maintain-website-toolA tool to make it simpler to maintain a website against the increasing entropy on the web.This tool includes:A link checkerA CLI InterfaceA visualization of the links on a websiteUsage$ python3 -m maintain-website-tool --help
usage: maintain-website-tool [-h] {link} ...

positional arguments:
  {link}
    link      Tools to maintain the links on a website

optional arguments:
  -h, --help  show this help message and exitThis tool always outputs to stdout (with one exception atlink check visualize)
and often takes input from stdin or files. I try to follow UNIX and Linux command
line convention as much as possible and as often as possible.linkToolThis can be used to:Collect a list of all links on your website.Collect latency, status and errors for each link on your website.Format results as CSV, YAML and JSONTake the difference in status, latency and errors between two different checks of a website.Visualize the results as a PyVIS Graph with domains as vertices and links as edges.How to check a website$echo"https://example.org"python3-mmaintain-website-toollink--formatcsvcheck->example.org.csvThelink checkcommand executes a check starting with the websites it receives as a file either from stdin (as in this example) or through some filename. You can even execute checks of multiple sites by providing more than one URI to the check (seperated by newlines).Seepython3 -m maintain-website-tool link check --helpfor more information.Usage$ python3 -m maintain-website-tool link --help
usage: maintain-website-tool link [-h] [--format {csv,yaml,yml,json}] [--in-format {csv,yaml,yml,json}]
                                  [--out-format {csv,yaml,yml,json}]
                                  {check,sort,diff,visualize} ...

positional arguments:
  {check,sort,diff,visualize}
    check               Check all the locations in the locations for their reachability, latency and status
    sort                Sort the results from check according to some options
    diff                Take the difference between two check results
    visualize           Visualize the results of a page as a graph stored in a static HTML.

optional arguments:
  -h, --help            show this help message and exit
  --format {csv,yaml,yml,json}, -f {csv,yaml,yml,json}
                        Format to expect for input and output (is overwritten by in-format and out-format
  --in-format {csv,yaml,yml,json}, -in-f {csv,yaml,yml,json}
                        Format to expect from input only
  --out-format {csv,yaml,yml,json}, -out-f {csv,yaml,yml,json}
                        Format to use for output onlyContributingI want to extend this into a multipurpose tool to help with the maintance of a website.
If you have an idea for other tools to be added, create an issuehere.Social CodingI'm a subscriber to the ideals and principles ofSocial Coding.
Package: website-worth
website-worthInstallFrom pipThis app works from Python 3.5 and the best choice is installation using pippip install --user website-worthHow to useRun:website_worth run https://example.comChangelogUnreleased0.0.2 (2020-01-28)Add user-agent switcher0.0.1 (2019-10-17)First release on PyPI.Addhttps://www.webuka.comsupport.
Package: web-skeleton3
Generator of static html/css/js code tree.Based on:makowebassetsInstallInstall with:pip3 install web-skeleton3Remember install:sudo apt-get install ruby-dev ruby-rubygems
sudo gem install compass
sudo pip3 install scour
sudo pip3 install cssutils
sudo pip3 install rjsminUpload to pypipython setup.py sdist bdist_wheel
python -m twine upload dist/*LicenseLicensed under theThe MIT License.
See LICENSE.txt in the source distribution for details.
Package: websnapshot
WebSnapshot🐍 Python command-line tool for capture 📷 snapshots of web pages using Headless Chromium.Features:Change viewport size;Full page snaphots;Custom headers and other (see--help).# install$pipinstallwebsnapshot# install in isolated environment using pipx$pipxinstallwebsnapshot# full page snapshot$echo"https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8"|websnapshot--full_page# file with urls, each on a new line$websnapshot-iurls.txt# help$websnapshot--help
Package: websnort
Web service for analysing pcap files with intrusion detection systems such assnortandsuricata.Overviewwebsnortprovides a web interface for user and system submission of packet
capture files to run against IDS instances.  Alerts and details from the analysis
are returned as results.If you are after a web interface for monitoring a livesnortinstance,
seehttps://www.snort.org/downloads#additional-downloadsinstead.While originally developed specifically forsnort.  Recent releases support
a flexible IDS plugin system which also supportssuricataout of the box.websnortcan be configured to run the same submitted packet capture
against any number of IDS instances, configs and rulesets.  This allows broader
coverage and comparison between installs and rule versions.Getting StartedUbuntuInstallsnortif needed:sudo apt-get install snortOptionalDisable running snort service if only required for this web api:sudo service snort stop
sudo update-rc.d snort disableOn recent ubuntu/debian releases the defaultsnort.confis not world readable.  Unless
planning to run the web service as root (not recommended) you will need to modify the
permissions, for example:sudo chmod a+r /etc/snort/snort.confInstall web service usingpip:sudo pip install websnortStart thewebsnortweb server on the default port:websnortBrowse tohttp://server:8080and submit a pcap file for analysis.Navigate tohttp://server:8080/apifor details of provided json web api.DocumentationFull project documentation can be found onreadthedocs.IssuesSource code forwebsnortis hosted onGitHub. Any bug reports or feature
requests can be made using GitHub’sissues system.
Package: websocket-httpd
This module uses the network module to create a server, and implements http(s)
and WebSockets over those connections.  The most useful part of it is the RPC
over WebSocket protocol.  With only 6 lines of code you have a working system:import websocketd

class Rpc:
    def __init__(self, remote):
        self.remote = remote

s = websocketd.RPChttpd(8000, Rpc)
websocketd.fgloop()You only have to add what you want your server to do.  Any connection to the
server (in this case it listens on port 8000) causes an Rpc object to be
instanced.  Any calls made through that connection will cause method calls on
that object.  If the remote side supports the same protocol, calls can be made
on it by calling methods on remote.Please see example/server for more details on how to use this module.
Package: websocket-ping
ping_ws.py usagesetupTo install pip packagepip install websocket-pingFor dev versionpython -m venv .venv
source .venv/bin/activate
pip install -r requirements_ws_ping.txtcli interface-w flag is for the websocket endpoint
-d is the duration to test if the connection is maintained (in seconds)python -m ping_ws.ping_ws -w wss://host/ws/ping/ -d [int]examples# Failure to connect - server rejecting connection
(.venv) $ python -m ping_ws.ping_ws -w wss://host/ws/ping/
Connection to wss unsuccessful: server rejected WebSocket connection: HTTP 502


# Success on connection
(.venv) $ python -m ping_ws.ping_ws -w ws://localhost:8000/ws/ping/
Successfully connected to ws://localhost:8000/ws/ping/, response to ping: pong
Maintained connection to ws://localhost:8000/ws/ping/, response to ping: pong
Success!
Package: websocket-rooms
Websocket Rooms:websocket_roomsA python library for creating WebSocket rooms, for message sharing or data distribution to multiple connections.This library was created after building several real-time web apps and implementing the same mechanism to broadcast real-time messages between clients listening for the same real-time telemetries.
The library simplifies the solution for this issue and proposes a simpler way to handle multiple WebSocket clients that act the same way.Basic use:Let's create a chatroom where everyone can post their messages:fromwebsocket_roomsimportRoomchat_room=Room()@chat_room.on_receive("json")asyncdefon_receive(room:Room,websocket:WebSocket,message:Any)->None:awaitroom.push_json(message)@chat_room.on_connectionasyncdefon_chatroom_connection(room:Room,websocket:WebSocket)->None:logging.info("{}joined the chat room".format(websocket.client.host))@chat_app.websocket("/chat")asyncdefconnect_websocket(websocket:WebSocket):awaitchat_room.connect(websocket)More advanced usageExample of a more advanced use case, with modification to theRoombase class:
Suppose a classRoomWithClientId, where each WebSocket has aclient_idassociated with it, which it receives on connection:classRoomWithClientId(Room):def__init__(self,base_room:Optional[BaseRoom]=None)->None:super().__init__(base_room)self._id_to_ws={}asyncdefconnect(self,websocket:WebSocket,client_id:int)->None:self._id_to_ws[websocket]=client_idawaitsuper().connect(websocket)defget_client_id(self,websocket:WebSocket)->int:returnself._id_to_ws.get(websocket)chat_room=RoomWithClientId()@chat_room.on_receive("json")asyncdefon_chatroom_receive(room:RoomWithClientId,websocket:WebSocket,message:Any)->None:awaitroom.push_json(message)@chat_room.on_connectionasyncdefon_chatroom_connection(room:RoomWithClientId,websocket:WebSocket,client_id:int)->None:logging.info("{}joined the chat room".format(client_id))@app.websocket("/chat/{client_id}")asyncdefconnect_websocket(websocket:WebSocket,client_id:int):awaitchat_room.connect(websocket,client_id)
Package: websocket-rpc
websocket-rpcmsgpack rpc over websocketExamplesserver:importasynciofromsanicimportSanicfromwsrpcimportWebsocketRPCapp=Sanic(__name__)classSampleHandler:def__init__(self,rpc):self.remote=rpcasyncdefadd(self,a,b):awaitasyncio.sleep(5)returna+basyncdeftest(self):return23@app.websocket('/')asyncdefhome(request,ws):awaitWebsocketRPC(ws,SampleHandler).run()app.run(host="0.0.0.0",port=5555,debug=False)client:importasyncioimportwebsocketsfromwsrpcimportWebsocketRPCloop=asyncio.get_event_loop()asyncdefgo():asyncwithwebsockets.connect('ws://127.0.0.1:5555/')asws:rpc=WebsocketRPC(ws=ws,client_mode=True)jobs=[rpc.request.add(a,b)fora,binzip(range(10),range(5,15))]r=awaitasyncio.gather(*jobs)print(r)r=awaitrpc.notify.add(2,3)print(r)awaitrpc.close()loop.run_until_complete(go())
Package: websocket-rpcs
rpc over websocket uses protobuf to serialize dataPrepareinstall packagepipinstallwebsocket-rpcswrite proto file (math.proto)syntax="proto3";optionpy_generic_services=true;messageSumArg{int32a=1;int32b=2;}messageSumResult{int32sum=1;}serviceMath{rpcSum(SumArg)returns(SumResult);}generate python file (math_pb2.py math_pb2.pyi)protoc--python_out=.--pyi_out=.math.protoExampleServerimportwrpcimportmath_pb2defsum(args):return{"sum":args["a"]+args["b"]}wrpc_server=wrpc.WebSocketRPCServer("0.0.0.0",5887)wrpc_server.add_handler("Math.Sum",sum_pb2.SumArg,sum_pb2.SumResult,sum)wrpc_server.start()Clientimportwrpcimportmath_pb2wrpc_client=wrpc.WebSocketRpcClient("ws://localhost:5887")sum_client=wrpc_client.init(sum_pb2.Sum_Stub,sum_pb2.SumArg,sum_pb2.SumResult)res=sum_client.call("Sum",a=1,b=2)