Saravanan666/pypi-org huggingface dataset:
Package: webdiff
git webdiffTwo-column web-based git difftool.Features include:Side-by-side (two column) diff viewRuns in the browser of your choice on any platform.Syntax highlighting via highlight.jsStep back and forth through multiple files in a single diffRich support for image diffsInstallationpip install webdiffUsageInstead of running "git diff", run:git webdiffYou can also start webdiff via:git webdiff [args]You can pass all the same arguments that you would togit diff, e.g.1234..5678orHEAD.webdiffcan also be invoked directly to diff two directories or files:webdiff <left_dir> <right_dir>
webdiff <left_file> <right_file>You can also usewebdiffto view GitHub pull requests:webdiff https://github.com/owner/repo/pull/123
webdiff #123  # if you're in a git repo with a github remoteThis will download the files relevant to the Pull Request and runwebdiff.If you run into GitHub API quota limits or you'd like to use webdiff with
private repos, you can set your credentials in a.githubrcfile:user.login: yourusername
user.token: your-personal-access-tokensMake sure you chmod this file to only be readable by yourself. You can generate
a personal access token for webdiff via github.com → profile → Settings →
Personal access tokens. Make sure to grant all the "repo" privileges.Developmentpython3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cd ts
yarn
# see https://github.com/webpack/webpack/issues/14532
NODE_OPTIONS=--openssl-legacy-provider webpackThen from the root directory:PYTHONPATH=. ./webdiff/app.py testdata/dygraphsjs/{left,right}or to launch in debug mode:./test.sh $(pwd)/../testdata/webdiffdiff/{left,right}(or any other directory in testdata)To run the Python tests:pytestTo run the JavaScript tests:python -m SimpleHTTPServer
open tests/runner.htmlTo format the code, run:./scripts/black.sh
cd ts
yarn prettierTo iterate on the PyPI package, run:# from outside the webdiff virtualenv:
pip uninstall webdiff

# from inside the webdiff virtualenv, adjust for current version
python setup.py sdist
mkdir /tmp/webdiff-test
cp dist/webdiff-X.Y.Z.tar.gz /tmp/webdiff-test

deactivate
cd /tmp/webdiff-test
pip3 install webdiff-X.Y.Z.tar.gzTo publish to pypitest:pip install --upgrade wheel setuptools twine
python setup.py sdist bdist_wheel
twine upload -r testpypi dist/*And to the real pypi:twine upload dist/*Seepypircdocs for details on setting up~/.pypirc.
Package: webdiff-for-coi
git webdiff for COITwo-column web-based git difftool forChromium Open IDE(COI).Features include:Side-by-side (two column) diff view.Runs in the browser of your choice on any platform.Syntax highlighting viahighlight.js.Step back and forth through multiple files in a single diff.Tips: this project is forked fromdanvk/webdiff.Installationpip install webdiff-for-coiUsageInstead of running "git diff", run:git webdiffYou can also start webdiff via:git webdiff [args]You can pass all the same arguments that you would togit diff, e.g.1234..5678orHEAD.webdiffcan also be invoked directly to diff two directories or files:webdiff <left_dir> <right_dir>
webdiff <left_file> <right_file>You can also usewebdiffto view GitHub pull requests:webdiff https://github.com/owner/repo/pull/123
webdiff #123  # if you're in a git repo with a github remoteThis will download the files relevant to the Pull Request and runwebdiff.If you run into GitHub API quota limits or you'd like to use webdiff with
private repos, you can set your credentials in a.githubrcfile:user.login: yourusername
user.token: your-personal-access-tokensMake sure you chmod this file to only be readable by yourself. You can generate
a personal access token for webdiff via github.com → profile → Settings →
Personal access tokens. Make sure to grant all the "repo" privileges.Enjoy!
Package: webdomains
webdomainsManage your Web domains served by NGINX.InstallationRequirementsOn a Debian-based host, you will need an already configured and runningNGINX server. You may also install the following
packages to satisfy the Python dependencies:python3-clickpython3-jinja2To generate the SSL/TLS certificates for the domains, you will also have to
install and configuredehydrated. It is recommended
to use a recent version - i.e. frombuster-backports. To serve the ACME
challenge, the default NGINX configuration of a domain is looking for/etc/nginx/snippets/acme-challenge.conf- which can just contain:location/.well-known/acme-challenge{default_type"text/plain";alias/var/lib/dehydrated/acme-challenges;}ConfigurationYou can provide your ownserver.conftemplate which is used to generate the
NGINX configuration of a new domain.webdomainswill look for a file with this
name in/etc/webdomains/templatesat first. If it does not exist, thedefault templateis used.DevelopmentTo set up a development environment, all you need to have to install is a
Python 3 interpreter, Git and Make. Then, run the following:gitclonehttps://forge.cliss21.org/cliss21/webdomains.gitcdwebdomains/# create and active a virtual environmentpython3-mvenvvenv/sourcevenv/bin/activate# install the package with test requirementspipinstall-e.[test]You can now run the following commands:make lint: check the code syntaxmake tests: run the testsmake coverage: report the code coverageLicensewebdomainsis mainly developed byCliss XXIand
licensed under theGPLv3+. Any contribution is welcome!
Package: webdownloader
# Instalatiom`sh pip install webdownloader `# Downloader
### Basic functional`python from webdownloader import Downloader downloader = Downloader() page_content =downloader.get_page('https://www.google.com/')len(page_content) # or you can return full response response =downloader.get_page('https://www.google.com/',full_response=True) response.status_code # by default it will create 3 attempts to open connection if there is a problem with a server, but you can use custom amount response =downloader.post_page('https://www.some-not-reliable-site.com/',specific_attempts_count=5) `### Proxies usage`python from webdownloader import Downloader downloader =Downloader(proxy_string_list=['104.144.176.1:3128','102.152.145.103:3128','157.152.145.103:3128'],change_proxies_manually=True) # from one random proxy (if one of proxies is not working it will take another one) page_content =downloader.get_page('https://www.google.com/')# from the same proxy page_content =downloader.get_page('https://www.google.com/')# from random proxy downloader.change_proxies() page_content =downloader.get_page('https://www.google.com/')``### Cookies and headers`python from webdownloader import Downloader downloader = Downloader() # cookies as a dict page_content =downloader.get_page('https://www.google.com/',cookies={'TOKEN':'1234567890'})# cookies as a string (from browser) page_content =downloader.get_page('https://www.google.com/',cookies_text='CONSENT=YES+UK.en+;SID=somesid') # by default there is a user agent in headers but you can change all headers page_content =downloader.get_page('https://www.google.com/',headers={'User-Agent':'Mozilla/5.0'})# get session sookies session_cookies_dict = downloader.get_session_cookies() # save cookies to file downloader.save_cookies_to_file(session_cookies_dict,name='mycookies')# load cookies from file cookies_dict =downloader.get_cookies_from_file(name='mycookies')``# License
MIT
Package: webdriver-auto-update
webdriver_auto_updateA tool for managing ChromeDriver downloads and updatesFeaturesAutomatically downloads the latest stable version of ChromeDriver.Compares the local ChromeDriver version with the latest online version.Updates ChromeDriver to the latest version if necessary.Works on Windows, Linux, and macOS.Getting StartedPre-requisites:Python 3Download Google Chromepip install seleniumAdditional required packages listed inrequirements.txt.Installation (Option 1)Clone this repository from GitHubgit clone https://github.com/competencytestlvl/webdriver_auto_update.gitInstallation (Option 2)Install the required package from PyPI:pip install webdriver-auto-updateUsageNavigate to the directory where you've cloned or downloaded the repositoryRun the following example:from webdriver_auto_update.chrome_app_utils import ChromeAppUtils
from webdriver_auto_update.webdriver_manager import WebDriverManager

# Using ChromeAppUtils to inspect Chrome application version
chrome_app_utils = ChromeAppUtils()
chrome_app_version = chrome_app_utils.get_chrome_version()
print("Chrome application version: ", chrome_app_version)

# Target directory to store chromedriver
driver_directory = "/path/to/driver/directory"

# Create an instance of WebDriverManager
driver_manager = WebDriverManager(driver_directory)

# Call the main method to manage chromedriver
driver_manager.main()NoteThe objective of this program is to reduce redundancy of searching and downloading the updated version of chrome driver to the OpenSource community.Intended to be used in Selenium projects, browser testing or web automation.ContributingContributions are welcome! If you find any issues or want to add new features, feel free to submit a pull request or reach out to me.
Package: webdriver-cache-manager
webdriver_cache_managerwebdriver_cache_managersimplifies managing ChromeDriver instances in Selenium using Python. Track active processes, terminate unused instances, and handle associated PIDs with ease.InstallationInstall via pip:pipinstallwebdriver_cache_managerFeaturesProcess Tracking:Monitor active ChromeDriver instances.Termination:Safely terminate unused ChromeDriver processes.CSV Management:Handle PIDs efficiently using CSV files.UsageImport Package:fromwebdriver_cache_managerimportManageChromeDriverCacheInitialize Manager:Create aChrome Driverinstance.Utilize the methods for managing ChromeDriver instances.ManageChromeDriverCache(driver)ExamplesCheck out the provided examples and utilities for managing ChromeDriver instances in theexamplesdirectory.ContributionsContributions are welcome! If you encounter issues or have suggestions, feel free to create an issue or submit a pull request.LicenseThis project is licensed under theMIT License.
Package: webdriver-cache-manager-mnawaz6935
webdriver_cache_managerwebdriver_cache_managersimplifies managing ChromeDriver instances in Selenium using Python. Track active processes, terminate unused instances, and handle associated PIDs with ease.InstallationInstall via pip:pipinstallwebdriver_cache_managerFeaturesProcess Tracking:Monitor active ChromeDriver instances.Termination:Safely terminate unused ChromeDriver processes.CSV Management:Handle PIDs efficiently using CSV files.UsageImport Package:fromwebdriver_cache_managerimportManageChromeDriverCacheInitialize Manager:Create aChrome Driverinstance.Utilize the methods for managing ChromeDriver instances.ManageChromeDriverCache(driver)ExamplesCheck out the provided examples and utilities for managing ChromeDriver instances in theexamplesdirectory.ContributionsContributions are welcome! If you encounter issues or have suggestions, feel free to create an issue or submit a pull request.LicenseThis project is licensed under theMIT License.
Package: webdriver-helper
WebDriver助手WebDriver助手（webdriver-helpler）是一个第三方库，通过增加一些额外的能力，让selenium更加好用😊 自动下载合适的浏览器驱动（国内镜像加速）😊 自动创建和返回WebDriver对象（本地浏览器或远程浏览器）😊 可以调试Python和浏览器（Chromium内核）😊 可以拖拽上传文件😊 可以修改文件下载目录（Chromium内核）😊 可以设置思考时间（实验性）😊 内置了Base Page以便进行POM封装链接webdriver-helper安装说明WebDriver助手 2.2.0使用说明Web自动化测试注意：chromedriver 115改变了发布方式
Package: webdriver-installer
Webdriver InstallerDownload and install different web driversDescriptionA package that will help you download and save the latest versions of web drivers.Getting StartedInstallingpipinstallwebdriver-installerExecuting programHow to install the available webdriversfromwebdriver_installerimportFireFoxfirefox=FireFox()firefox.install()HelpHow to get the installer driver pathfromwebdriver_installerimportFireFoxfirefox=FireFox()driver_path=firefox.pathSome web drivers have both 32-bit and 64-bit and you can pick by using(default is 32-bit)fromwebdriver_installerimportFireFoxfirefox=FireFox(bit=64)firefox.install()How to uninstall a driverfromwebdriver_installerimportFireFoxfirefox=FireFox()firefox.uninstall()How to uninstall all driversimportwebdriver_installerwebdriver_installer.uninstall()The default path for saving the web driversC:\Users\(yourpcname)\AppData\Roaming\webdriversAuthorsRiadh Azzoun -@riad-azzVersion History0.0.2Initial ReleaseAvailable web drivers : Firefox - Google Chrome - Opera - Microsoft Edge1.0.0Stable ReleaseAvailable web drivers : Firefox - Google Chrome - Opera - Microsoft EdgeLicenseThis project is licensed under the [MIT] License - see the LICENSE.md file for details
Package: webdriver-kaifuku
webdriver_kaifukuRestartable webdriver instancesThe library provides restartable webdriver instances.Usage:It support bothlocalandremotewebdriver. Some basic examples are-Local BrowserMake surewebdriveris already installed on your local machine.fromwebdriver_kaifukuimportBrowserManagermanager=BrowserManager.from_conf({"webdriver":"Chrome"})manager.start()manager.close()Selenium Containerfromwebdriver_kaifukuimportBrowserManagermanager_config={"webdriver":"Remote","webdriver_options":{"desired_capabilities":{"browserName":"firefox"},"command_executor":"http://localhost:<port>",},}manager=BrowserManager.from_conf(manager_config)manager.start()manager.close()
Package: webdrivermanager-cn
WerDriverManagerCn基于阿里源开发，灵感来源：webdriver_manager，向原作者致敬！开发背景作者是测开一枚，一直在公司默默无闻的做着自动化测试，偶然公司同事安利webdriver_manager这个模块可以有效解决Chrome频繁更新导致ChromeDriver无法使用的问题，可以直接更换国内源，解决默认为GitHub源而导致下载慢或者失败的问题。自动化项目引入这个模块后，效果很好，稳定性也很好，且一直相安无事。直到2023年中的某一天，这个平静的情况被打破了。。。ChromeDriver官方团队修改了发布方式，导致国内绝大部分的源都无法正确同步新版的ChromeDriver，作者使用的阿里源，也停留在了114版本上，无法继续更新。已向阿里源开发团队提交Issue后，已将新版ChromeDriver源同步完成，但是，已经无法按照新版源更换源地址实现下载了。所以，经过作者研究源码，决定重新写一个下载模块，且基于阿里源为下载源！解决问题本模块可以看作是webdriver_manager模块的国内平替，为那些公司无法通过魔法手段连接GitHub(比如作者公司T_T)
，和需要持续更新WebDriver的自动化测试同学们提供服务。已实现功能后续都会实现，如果有需求请及时提IssueClientWindowsMacOSLinuxChrome✅✅✅(未验证)Firefox✅✅✅(未验证)IE❎❎❎Edge✅✅✅(未验证)使用方法安装在线安装（推荐）：安装命令：pip install webdrivermanager_cn在线升级：pip install -U webdrivermanager_cn本地安装（不推荐）：下载发行版本后，本地安装即可：pip install path/webdrivermanager_cn-X.X.X-py3-none-any.whl导入使用为简化使用方法，降低替换成本，决定沿用webdriver_manager的使用风格：
如：ChromeDriverfromwebdrivermanager_cn.chromeimportChromeDriverManagerdriver_path=ChromeDriverManager().install()Geckodriverfromwebdrivermanager_cn.geckodriverimportGeckodriverManagerdriver_path=GeckodriverManager().install()edgefromwebdrivermanager_cn.microsoftimportEdgeWebDriverManagerdriver_path=EdgeWebDriverManager().install()全局变量wdmcn也像wdm一样，内置了一些全局变量，后续会根据需求继续添加，具体请看config.py，这里简单列举一下。日志功能日志功能默认关闭，可以通过os.environ['WDM_LOG'] = 'true'打开，默认为false日志等级，可以通过os.environ['WDM_LOG_LEVEL'] = f'{logging.INFO}'修改，默认等级为INFO自定义logger，可以通过导入set_logger()方法，将您自己的logger添加进来，则日志输出就会使用您的logger记录定期清理旧的webdriver如果您使用的wdmcn时间很长以后，webdriver会随着chrome等浏览器版本的迭代越来越多，现在可以默认删除无用的webdriver，可以使用os.environ['WDM_CACHE_TIME'] = 5设置，默认会清理5天前的webdriver，以减少磁盘占用。其他如果在使用过程中有任何问题，欢迎提Issue，会在第一时间处理！
Package: webdriverplus
The most simple and powerful way to use Selenium with PythonWebDriver Plus is an extension to the Python bindings for Selenium WebDriver,
which gives you a more concise and expressive API.It helps you to quickly write readable, robust tests.What’s so great about WebDriver Plus?Browser instances that support pooling and automatic quit on exit.A concise API for finding elements, and a wide range of selectors.JQuery-style traversal and filtering for locating elements without using
complex xpath expressions.Perform actions on elements without having to use ActionChains.Element highlighting makes working from the Python console a joy.Note: If you’re interested in helping maintain WebDriver Plus in the long term please get in touch.  Most of the author’s open source time is currently devoted to working on Django REST framework.Getting startedInstallwebdriverplususingpip.pip install webdriverplusNow fire up your Python console…>>> from webdriverplus import WebDriver
>>> browser = WebDriver().get('http://www.google.com')Ok, let’s do a search.>>> browser.find(name='q').send_keys('selenium\n')Now let’s get the headings for all the search results.>>> browser.find(id='search').find('h3')
WebElementSet(
  <h3 class="r"><a href="http://seleniumhq.org/" class="l" onmousedown="retur...
  <h3 class="r"><a href="http://www.google.co.uk/url?sa=t&amp;rct=j&amp;q=sel...
  <h3 class="r"><a href="http://en.wikipedia.org/wiki/Selenium" class="l" onm...
  <h3 class="r"><a href="http://en.wikipedia.org/wiki/Selenium_%28software%29...
  <h3 class="r"><a href="http://ods.od.nih.gov/factsheets/selenium" class="l"...
  <h3 class="r"><a href="http://www.nlm.nih.gov/medlineplus/druginfo/natural/...
  <h3 class="r"><a href="http://www.hollandandbarrett.com/selenium-050" class...
  <h3 class="r"><a href="http://www.whfoods.com/genpage.php?dbid=95&amp;tname...
  <h3 class="r"><a href="http://www.patient.co.uk/doctor/Selenium.htm" class=...
  <h3 class="r"><a href="/search?q=selenium&amp;hl=en&amp;biw=940&amp;bih=938...
  <h3 class="r"><a href="http://www.umm.edu/altmed/articles/selenium-000325.h...
)Notice that WebDriver Plus has highlighted the selected elements for you, which
is super helpful for when you’re writing tests and trying to make sure you’re
selecting the correct elements:Next stepsWhen you’re ready to get going, head over to the full documentation (http://webdriver-plus.readthedocs.org/).If you want to help contribute to the project, please read the contribution notes (http://webdriver-plus.readthedocs.org/en/latest/topics/contributing.html)
Package: webdriver-selector
webdriver-selectorwebdriver_selector is a module designed to make headless selenium testing with python easier.
If you are on a system and just want the first available webdriver preconfigured with a random useragent and set in headless mode, or if you want to run a known prespecified webdriver for a given browser, this module can do that.Installation:pip3 install webdriver-selectorUsagetheselectorclass can be called with two arguments:chosendriver: the preferred webdriver, default torandomDriverforce: if arandomDriveris preferred, it will force checking every available driver until it either exhausts all available browsers and returnsNoneor returns a viable driver.Attributes:chosendriver-- the chosen driverforce-- whether or not to force getting a random driverdriver-- the selenium webdriver data selected, defaults toNoneavailablefunctions-- the list of tuples of available function names and their functionsfinalfunctionstring-- a human readable string of available functions to choose fromheadless-- Bool of eitherTrueorFalsewhich specifies if you'd like the browser to be headless or not, defaults toTrueincognito-- Bool which specifies if you'd like to run the browser in incognito or private browsing mode, defaultTruerandom_useragent-- Bool which specifies if you'd like to run the browser with a randomized useragent or keep the one for the selected browser, defaultTrueEXPERIMENTALproxy_ip-- string of the ip address which you would want your browser to work throughproxy_port-- string of the port of the proxy you'd like to use.REQUIRED IF PROXY_IP IS SPECIFIEDNote this currently supports only HTTPS, unauthenticated proxies, and only seems to consistently work with Chrome based browsers.Examples:##Getting the first available selenium webdriver on the system:
import webdriver_selector

driver=webdriver_selector.selector().driver##selecting a particular webdriver:
import webdriver_selector

driver=webdriver_selector.selector(chosendriver="chrome").driverOnce you have a driver, it is simply now the selenium webdriver, with
useage and documentation found here:https://selenium-python.readthedocs.io/
Package: webdriver-setup
webdriver-setupEasy to use webdriver instance creation api.This package prevents manually downloading and setup of the webdriver binaries
by automatically finding and installing the related webdriver binary, and
provides an easy to use instance creation api. It useswebdriver_managerpackage.Supported browsersFirefoxChromeOperaSafariIeEdge (Chromium based)Installationpip install webdriver-setupUsagefromwebdriver_setupimportget_webdriver_for# create driver instancedriver=get_webdriver_for("firefox")# start the browser with the given urldriver.get("https://www.python.org/")# print the title of the websiteprint(f"Title:{driver.title}")# quit browserdriver.quit()You can also pass all the keyworded arguments as you would normally do with the Selenium webdriver instances.fromwebdriver_setupimportget_webdriver_forfromselenium.webdriverimportFirefoxOptionsfirefox_options=FirefoxOptions()firefox_options.add_argument("--headless")driver=get_webdriver_for("firefox",options=firefox_options)WDM ConfigIf you don't want to seewebdriver_managerlogs, set environment variable "WDM_LOG_LEVEL" to "0"importosos.environ["WDM_LOG_LEVEL"]="0"If you don't pass thecache_valid_rangeoption, it will be set to 7 days by default.
You can change it as followsfromwebdriver_setupimportget_webdriver_fordriver=get_webdriver_for("firefox",cache_valid_range=3)
Package: webdriver-start
webdriver-startReliable module for starting up Selenium Webdriver with custom modifications. Supports —Customuser-agentCustom user profile.Headless mode.Firefox and Chrome webdrivers. Open an issue if you want support for more.InstallationInstall it using pip —$pipinstallwebdriver-startUsageFor Chrome>>>fromwdstartimportwebdriver>>>driver=webdriver.Chrome(headless=True,user_agent='this is a custom user-agent',user_profile='/path/to/profile/')>>>driver<selenium.webdriver.chrome.webdriver.WebDriver(session="46157cffe549da015b288cdabea94a29")>>>>driver.get('http://www.google.com')>>>driver.title'Google'>>>driver.execute_script('return navigator.userAgent')'this is a custom user-agent'Similarly, for Firefox>>>fromwdstartimportwebdriver>>>driver=webdriver.Firefox(headless=True,user_agent='this is a custom user-agent',user_profile='/path/to/profile/')>>>driver<selenium.webdriver.chrome.webdriver.WebDriver(session="46157cffe549da015b288cdabea94a29")>>>>driver.get('http://www.google.com')>>>driver.title'Google'>>>driver.execute_script('return navigator.userAgent')'this is a custom user-agent'
Package: webdrivertools
webdrivertoolsA Python library providing utility functions for simplifying interactions with Selenium, the popular web testing and automation framework.webdrivertools exports three core functions:click_element_areafind_elementclickThese functions can be imported using:fromwebdrivertoolsimportclick_element_area,find_element,clickRequirementsPython 3.10+SeleniumInstallationTo install webdrivertools, simply run:pipinstallwebdrivertoolsFunctionsclick_element_areaclick_element_area(driver:WebDriver,element:WebElement)->NoneClick on the element area, even if it is covered by an overlay. This function is useful when dealing with elements obstructed by modal overlays or other overlapping elements, which may cause issues when attempting to interact with the intended element using Selenium.find_elementfind_element(driver:WebDriver|WebElement,value:str,by:str=By.CSS_SELECTOR,innerText:str|None=None)->WebElementFind a single HTML element within a webdriver page by attribute or criteria and optional inner text filtering, returning the matched WebElement.clickclick(driver:WebDriver,value:str,by:str=By.CSS_SELECTOR,innerText:str|None=None,retries:int=3,sleep_between_retries:float=1)->NoneClick on an element with an optional innerText filter. Number of retries and sleep between retries can be tweaked according to requirements.Usagefromseleniumimportwebdriverfromselenium.webdriver.common.byimportByfromwebdrivertoolsimportclick,find_element# Instantiate a WebDriver instancedriver=webdriver.Chrome()# Navigate to a webpagedriver.get("https://example.com")# Find and click a button with a specific CSS selector and innerTextclick(driver,".button-class",By.CSS_SELECTOR,"Submit")# Find an element using an xpath and optional innerText filteringelement=find_element(driver,'//div[contains(@class, "target-element")]',By.XPATH,"Target Text")# Click on an area of the element even if it's covered by an overlayclick_element_area(driver,element)# Close the webdriver instancedriver.quit()LicenseMIT LicenseContributingContributions are welcome. Please create a new issue or a pull request with your proposed changes.SupportIf you encounter any issues, please create a new issue on the GitHub repository.