Saravanan666/pypi-org huggingface dataset:
Package: weblinx
WebLINX💻Code📄Paper (TBA)🌐Homepage🤗Huggingface Data💻Explorer App🐦Tweets (TBA)WebLINX: Real-World Website Navigation with Multi-Turn DialogueXing Han Lù*,Zdeněk Kasner*,Siva Reddy*Equal contributionInstallation# Install the base packagepipinstallweblinx# Install all dependenciespipinstallweblinx[all]# Install specific dependencies for...# ...processing HTMLpipinstallweblinx[processing]# ...video processingpipinstallweblinx[video]# ...developmentpipinstallweblinx[dev]Library UsageCheck out ourdocumentationfor more information on how to use WebLINX.ModelingComing soon (mid-February)EvaluationComing soon (mid-February)
Package: webloader
webloaderPython utility to fetch a webpage and save it to diskProject Setup for Developmentsource setup.shCommand to executepython3 fetch.py <url 1> <url 2> <url N> --metadata --archive_assetssamplepython3 fetch.py --metadata --archive_assets https://www.google.com/Note:--metadata       : To print metadata of webpage--archive_assets : To save assets to a directory named after urlTrigger tests:python3 -m pytestUploaded On:https://pypi.org/project/webloader/To use this as a python libraryRun command:pip intall webloaderRun command:fetch <url 1> <url 2> <url N> --metadata --archive_assetsSample command:fetch --metadata --archive_assets https://www.google.com/
Package: webloc
Installation$[sudo]pipinstallwebloc$[sudo]npmi-gweblocExamples>>>importwebloc>>>webloc.write("path.webloc","https://www.google.com/")>>>webloc.read("path.webloc")'https://www.google.com/'$python-mwebloc"path.webloc""https://www.github.com/"$python-mwebloc"path.webloc"https://www.github.com/$weblocfile.weblochttps://github.com/
$weblocfile.webloc
https://github.com/readme42.com
Package: webloc2html
webloc2htmlTreating URL's as Files is fun. But it is not cross-platform. This Script helps.Convert all webloc files in the current directory (including subdirectories) to html:webloc2html.Also delete unreachable links and don't ask for confirmation (DANGER!):webloc2html/some/path--silent--validate--delete-unreachablefor more details:webloc2html --helpRoadmap
Package: web-logger
web_loggerGet your log through the web. Why having a web logger rather than a native
interface?Remote access (although it works perfectly locally)UI customization (if you are comfortable with CSS)This application was built to run smoothly on a Raspberry Pi, however it has
been designed on a platform agnostic way.Getting startedYou needPython 3.7+to run this package.python3-mpipinstallwebsocketsBrowser supportA banner pops in on browsers which don't support the needed feature. Also, it
has been developed for those browsers:Chrome 67+Firefox 98+Safari 15.4+Please specify your browser path to the API.fromweb_loggerimportLogger,LoggerExceptiondefdemo(logger):logger.log("Logger ready")Logger("/path/to/browser",onReady=demo)Note:Currently the python script needs to run on thewwwdirectory
containing the interface files. However it is enough for the purpose of my
projects so I don't plan to fix this. If this behavior upsets you, you are very
welcome to submit a fix.To customize the interface, you can copy all the files in another directory
specific to your project, you can do versioning on this folder and use this
folder as the working directory.APIPlease see thedemo.pyfile to see an example.logger=Logger(browser_path,# if None or none provided, Logger will start in remote modehttp_port=3000,# TCP port to use for the HTTP serverws_port=3001,# TCP port to use for the WebSocket serveronReady=lambda_:None,# callback for when logger is ready)# the Logger constructor will block the thread until logger.stop is called# or the browser is closed if run in local mode# All methods should be called after the onReady callback has been calledtry:logger.defineNewMenu(menu)# defines the menu items and action to be displayed on top of the loggerlogger.printMessage(message)# logs a message on the HTML interfacelogger.printMessage(message,audioFile="/audio.mp3")# logs a message on the HTML interface and play the audioexceptLoggerException:print("Logger was not ready or has already terminated")passAudio filesYou have the ability to play audio sound on the interface by specifying aaudioFileargument. Check what are the supported audio formats for the browser
you want to use.N.B.:The path to audio file will be sent to the browser and therefore need
to be relative to the root of the HTTP server. The root of the HTTP server can
be set by changing the current directory. Because of HTTP specification, you
cannot access the parent directory of the HTTP root folder.
Package: weblogin
IntroductionWe want to use APIs from web UIs that require login. What we want to do
is to set up a session, login and then use the API of the page. The
reason we want to do this is to use existing APIs. For instance, the
user group management service at KTH, see1{reference-type="ref" reference="UGEditor"}. We can then
use the service, track the requests in the browser's developer tools.
Then we can simply make the same requests from Python.For instance, we can redo the request inFigure 1(above) like
this:importwebloginimportweblogin.kthimportosug=weblogin.AutologinSession([weblogin.kth.UGlogin(os.environ["KTH_LOGIN"],os.environ["KTH_PASSWD"],"https://app.kth.se/ug-gruppeditor/")])response=ug.get("https://app.kth.se/ug-gruppeditor/api/ug/users""?filter=memberOf eq 'u26yk1i3'")The code above will access the API used by the KTH UG group editor
service. It will automatically sign in when needed. The API URLs don't
trigger a redirect to log in, they just give a 401 unauthorized error.
However, we can use the main URL to the UI to trigger such an event, log
in and then access the API. All this happens automatically in the
background.The way we do this is to subclass therequests.Sessionclass to
intercept all requests of a session to check for signs indicating that
we must log in. When we detect such sign, we log in and resume as if
nothing ever happened.
Package: weblogo
WebLogo (https://github.com/WebLogo/weblogo) is a tool for creating sequence
logos from biological sequence alignments.  It can be run on the command line,
as a standalone webserver, as a CGI webapp, or as a python library.The main WebLogo webserver is located athttp://weblogo.threeplusone.comPlease consult the manual for installation instructions and more information:
./weblogo/htdocs/manual.html(Also located athttp://weblogo.threeplusone.com/manual.html.)
Package: weblogs
WebLogsWeblogs is a python package that gives you capability of streaming logs to the browser. It's a tail -F with UI. Multiple logs from different paths can be added by providing the details in a json file.InstallationThe package can be installed using pip by typing the following-pip3installweblogsUsageThe package uses a json file to get the path and names of multiple Log files. The Json file need not be in the Project directory but it is still recommended to keep it there to prevent accidental deletion. To initilize the package you will be required to provide the full path of the json file. An example json file is given below -
example.json{
    "logs" : [
        {
            "logName" : "Log 1",
            "logPath" : "Log1.log"
        },
        {
            "logName" : "Log 2",
            "logPath" : "log2.log" 
        },
        {
            "logName" : "Log 3",
            "logPath" : "log3.log" 
        }
    ]
}The Log file needs to be in text editable format.After installing the package, go the the main directory where you would like to have your project created and then type the following-weblogsadmincreatepath/to/jsonScreenshot
Package: webm
webm.pyCross-platform command-line WebM converter.FeaturesNo Python dependencies, single source fileSupports encoding to VP8, VP9 and AV1, with Opus or Vorbis2-pass encoding, user-friendly defaults, flexible set of optionsProvides graphicalinteractive modeto cut/crop input video with mpvCan burn subtitles, fit to limit, use external audio track and many moreRequirementsPython2.7+ or 3.2+FFmpeg2+ compiled with libvpx and libopusmpv0.17+ compiled with Lua support,for interactive mode onlyMake sure to setAdd to PATHoption in Python for Windows installer.FFmpeg and mpv executables must be inPATHor set their location withWEBM_FFMPEGandWEBM_MPVenvironment variables.InstallationpipinstallwebmOr just savehttps://raw.githubusercontent.com/Kagami/webm.py/master/webm.pyand put in yourPATH.Windows, Python 2 and non-ASCII filenamesUnicode filenames won't work on Windows with Python 2 due to Python bugs. Use
Python 3 if you can but if not an option setPYTHONIOENCODINGenvironment
variable toutf-8and run:pipinstallsubprocesswwUsageShow help:webm-hExamples:# VP9 with default qualitywebm-iin.mkv# Fit to 10 megabyteswebm-iin.mkv-l10# Set 1000kbps video bitratewebm-iin.mkv-vb1000# Change qualitywebm-iin.mkv-crf20# Encode to AV1webm-iin.mkv-av1# Encode to VP8 & Vorbiswebm-iin.mkv-vp8Interactive modePass-pflag to interactively select cut frargment and crop area with mpv.
Show help for interactive mode:webm-hiRelated linkswebm.py wikicontains some encoding
tricks and links to documentation on WebM/VPx.Licensewebm.py is licensed underCC0.
Package: web-mage
web-mageweb-mage is a simple Python package that's used to automate the process
of optimizing image files for the web. It can be imported and customized
in a Python module, or run simply as a command-line utility.This project is functional, but still in early development.InstallationInstall usingpip:pipinstallweb-mageUsagepython3-mweb_mageSOURCE_DIRDEST_DIRThis will optimize all files inSOURCE_DIRto 60% quality with no image resizing,
and output them toDEST_DIRwith a filename suffix.Usage in CodeThis is the preferred method of usage. You can import web-mage into
Python if you want to run jobs in a script or program, or customize
the way images are optimized.fromweb_mage.web_mageimportJobfromweb_mage.formatsimportIMG_FORMAT_CONTENT_LARGEformats=[IMG_FORMAT_CONTENT_LARGE]optim_job=Job(source="/path/to/source/directory",dest="/path/to/output/directory",formats=formats)optim_job.run()You can use multiple formats if you want images to be optimized for
multiple different devices or layouts. You can also define your own
image formats based on a few different parameters.fromweb_mage.formatsimport(ImageFormat,IMG_FORMAT_CONTENT_LARGE,IMG_FORMAT_CONTENT_MEDIUM,IMG_FORMAT_CONTENT_SMALL)my_format=ImageFormat(max_width=1024,# Image will be resized based on dimensions.max_height=768,min_quality=85,# This will optimize to 85% quality.tag="my_format")# Tags are appended to the filename of the# resulting file so multiple output formats# can be distinguished.my_other_format=ImageFormat(max_dimension=1280,# This will ensure that neither height# nor width will exceed 1280 pixels.tag="my_other_format")formats=[IMG_FORMAT_CONTENT_LARGE,IMG_FORMAT_CONTENT_MEDIUM,IMG_FORMAT_CONTENT_SMALL,my_format,my_other_format]
Package: webmail
Here is a Python library and collection of tools for working with
WebMail servers like with mail server that uses other more
machine-parsable protocols (like POP3 and IMAP).
This library enables you to work with WebMail server like with
POP3 or IMAP server.
Basically there is support for connecting to webmail, listing folders,
retrieving and deleting messages. In foreseeble future there will be
support for sending mail (no relay due to technical limitations).
Also there is gateway server that allows you to use POP3 client
(like Eudora, Bat, Mozilla or :-/ MS Outlook) against these servers.
Basic goal of this project includes providing confortable mail access
for users of webmail provides that doesn’t supports POP3 access,
and (!) for users that can’t use POP3 due to technical reasons
(usually firewalls).
This package also includes test WebMail server.
Package: webmail-domains
Webmail-DomainsThis is a Python package containing a single modulewebmail_domains.py,
itself containing a list of webmail domains.Feel free to make pull requests, and I'll add them in.Installationpip install webmail-domainsUsageimport webmail_domains

if <some_email>.split('@')[1] in webmail_domains.WEBMAIL_DOMAINS:
    # do something (reject signup, don't add the domain to a CRM, etc.)UpdatesThe list was last updated onAugust 17, 2017.
Package: webmake
A simple pythonic build system for Web and Cordova projects (JS, Less, Sass...)Python alternative towebpack,gruntorgulp.Supports Python 2.7 or 3.2+.Builds based on awebmakefile.pyscript in your project root.Automatically detects dependencies and builds only what's changed.Can be used from the command line, on demand or in "watch for changes" mode.Automatically generates source maps in debug mode, minifies in release mode.Your source code (HTML/JavaScript) stays identical whether in debug or release mode - no conditional script or CSS inclusion.Middleware plugin for use with Django.Build hook for use with Cordova.Currently supports:Browserify (vendor libs, user libs, project-specific sources)Browserify plugins: ES2015, React JSXLess compilationSass compilationMinificationCopy assets (images, fonts, etc)Concatenation
Package: web-math
WEBMATHOnline Math CalculatorShoutout toBobDotCom#4428for his helpMy DiscordBob's DiscordInstructionsInstall:pipinstallweb-mathInformation:calculate()takesonerequiredandoneoptionalargumentcalculate([TASK],[PRECISION])TASK=strPRECISION=intRun Program:# import webmath and asyncioimportasynciofromweb_mathimportwebmath# make defasyncdefbread():output=awaitwebmath.calculate("3+3*3-sqrt(pi)",4)print(output)# run defasyncio.run(bread())OUTPUT:# with 4 digit precision10.23# without digit precision10.227546149094485Ride the space skyway home to 80s Miami
Package: webmentiontools
webmention-tools===============Some simple tools in python to deal with webmentions.Currently:- webmentiontools.send implements WebmentionSendthat sends webmentions.- webmentiontools.urlinfo implements UrlInfo() thatwill rerurn usefull information about a web page, liketitle, the existance of an "in-reply-to" link,the author name, the author image, etc.- webmentiontoold.webmentionio provides a class to querywebmention.ioThere is also the corresponting command line tool,webmention-tools (which is also a simple example on howto use the library.Check bin/demp.py on how to use the library to querywebmention.io and present information for all URLs thatmentioned http://indiewebcamp.com/webmentionInstallation============pip install webmentiontoolsUsage:========Command line:webmention-tools send `source` `target`webmention-tools urlinfo `url`orPython code to send a webmention:from webmentiontools.send import WebmentionSendsource = 'URL of page sending the webmention'target = 'URL of page to receive the webmention'mention = WebmentionSend(source, target)mention.send()Python code to get info about a webpage.from webmentiontools.urlinfo import UrlInfourl = 'a link to a web page'i = UrlInfo(url)if i.error:print 'There was an error getting %s' % urlelse:print 'in-reply-to link: %s' % i.inReplyTo()print 'publication date: %s' % i.pubDate()print 'page title: %s' % i.title()print 'image link: %s' % i.image()
Package: webmention-tools
webmention-toolsSome simple tools in python to deal with webmentions.Note, that this package was formerly known aswebmentiontools, but had
to be renamed due toPEP-541. (Namely, not
classified as abandoned project, because the author was reachable).Currently:webmentiontools.send implements WebmentionSend that sends
webmentions.webmentiontools.urlinfo implements UrlInfo() that will rerurn usefull
information about a web page, like title, the existance of an
“in-reply-to” link, the author name, the author image, etc.webmentiontoold.webmentionio provides a class to query webmention.ioThere is also the corresponting command line tool, webmention-tools
(which is also a simple example on how to use the library.Checkbin/demo.pyon how to use the library to query
webmention.io and present information for all URLs that mentionedhttp://indiewebcamp.com/webmentionInstallationpip install webmention-toolsUsageCommand line:webmention-tools send `source` `target`
webmention-tools urlinfo `url`orPython code to send a webmention:from webmentiontools.send import WebmentionSend
source = 'URL of page sending the webmention'
target = 'URL of page to receive the webmention'
mention = WebmentionSend(source, target)
mention.send()Python code to get info about a webpage.from webmentiontools.urlinfo import UrlInfo
url = 'a link to a web page'
i = UrlInfo(url)
if i.error:
    print('There was an error getting %s' % url)
else:
    print('in-reply-to link: %s' % i.inReplyTo())
    print('publication date: %s' % i.pubDate())
    print('page title: %s' % i.title())
    print('image link: %s' % i.image())DevelopmentCreate a virtualenv with python3Change into that directory and clone the repositoryActivate the virtualenv bysourceingbin/activateChange into the cloned repository and install dependencies via `pip
install -r requirements.txt’Runpytest--covfor unit tests with code coverage
Package: webmercator
WebMercator is a Python (2.7, 3.4, 3.5, 3.6, 3.7) package to aid in geographic point conversion onto a Mercator projection for tile systems.Getting StartedPrerequisitesTo utilize or contribute to Webmercator, all you need is Python!InstallingFor bleeding edge# keeping the repo local$gitclonegit@github.com:republicwireless-open/webmercator$cdwebmercator$pythonsetup.pyinstall# only install; no need to clone$pipinstallgit+https://github.com/republicwireless-open/webmercator@masterOr for PyPi releases$pipinstallwebmercator>=0.1.2Running the testsTests can be run in many ways:# runs all tests, in all environments$path/to/tox# runs all tests, only in Python 2.7$path/to/tox-epy27# runs specific test class, only in Python 3.6$path/to/tox-epy36tests/point.py# runs specific test class, only in Python 3.6$path/to/tox-epy36tests/point.py:TestPoint# runs specific test class, only in Python 3.6$path/to/tox-epy36tests/point.py:TestPoint.test_init_empty# only runs style guide tests$path/to/tox-eflake8ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsDayne BattenDillon StadtherSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under theMIT LicenseAcknowledgmentsBing Maps Tile System- The Mercator calculations usedDecimal Degrees- Precision translationZoom Levels- Zoom level pixel/tile sizeHaversine FormulaGeocoordinate Translation (distance)
Package: webmeter
English|中文WebMeterAn Open Source Web API-Performance tool based on JMeter.RequirementsInstall python 3.10+DownloadInstall java 1.8+DownloadInstallationdefaultpipinstall-Uwebmetermirrorspipinstall-ihttps://mirrors.ustc.edu.cn/pypi/web/simple-UwebmeterQuickstartdefaultpython-mwebmetercustomizepython-mwebmeter--host={ip}--port={port}Develophttps://fastapi.tiangolo.com/https://cn.vuejs.org/https://element-plus.org/https://github.com/tabler/tablerhttps://jmeter.apache.org/debugremove [webmeter] moudle from all python fileexamplefromwebmeter.public.planimportTestPlanchangetofrompublic.planimportTestPlanrun debug.pycdwebmeter
pythondebug.py
Package: web-mini
web-miniweb-mini -- efficient css and html minifer inspired byhttps://pypi.org/project/css-html-js-minify/examplesnoteminify_htmldoes not handlestyletags -- handle css minification
( only very basic stuff that works for html too ) inline urselfsinglethreadedimportweb_miniprint(web_mini.html.minify_html(r"""<h1>hello world</h1><p>this is my very coolwebsite :)</p><pre>int main(void) {return 0;}</pre>"""))print(web_mini.css.minify_css(r"""body {margin: auto;padding: 2rem;max-width: 1100px;min-height: 100vh;text-rendering: optimizeSpeed;}li {margin: 0.5em;}code {white-space: pre-wrap !important;}@media (prefers-reduced-motion: reduce) {*,*::before,*::after {-webkit-animation-duration: 0.01ms !important;animation-duration: 0.01ms !important;-webkit-animation-iteration-count: 1 !important;animation-iteration-count: 1 !important;-webkit-transition-duration: 0.01ms !important;-o-transition-duration: 0.01ms !important;transition-duration: 0.01ms !important;scroll-behavior: auto !important;;}}"""))outputs :<h1>hello world</h1> <p>this is my very cool website :)</p> <pre>
int main(void) {
    return 0;
}
</pre>
body{margin:auto;padding:2rem;max-width:1100px;min-height:100vh;text-rendering:optimizeSpeed}li{margin:.5em}code{white-space:pre-wrap !important}@media (prefers-reduced-motion:reduce){*,*::before,*::after{-webkit-animation-duration:.01ms !important;animation-duration:.01ms !important;-webkit-animation-iteration-count:1 !important;animation-iteration-count:1 !important;-webkit-transition-duration:.01ms !important;-o-transition-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important;}}usage with threadingif ur using web-mini with threading make sure to callcompileall()so caching doesnt get in the wayimportweb_miniweb_mini.compileall()# or :# web_mini.css.css_fns.compileall()# web_mini.html.html_fns.compileall()
Package: webmin-xmlrpc
Webmin XML-RPC python packageThis package provides a python interface to interact with the Webmin XML-RPC API.Usagefromaiohttp.clientimportClientSessionfromwebmin_xmlrpc.clientimportWebminInstancefromyarlimportURLbase_url=URL.build(host="example.com",scheme="https")session=Clientsession(base_url)instance=WebminInstance(session)asyncdefget_data():data=awaitinstance.update()Exposed dataLoad (1m, 5m, 15m)Network interfacesMemory informationUptimeLocal disk space information