Saravanan666/pypi-org huggingface dataset:
Package: watermark2
给图片添加文字水印，支持设置文字内容、大小、透明度、颜色、旋转等效果图安装配置安装 Pillow:pip install Pillow使用例子：python3 watermark/watermark.py-m'测试水印'-fweixiaobao.jpg具体使用参数介绍：运行python3 watermark.py-husage: watermark.py [-h] [-f FILE] [-m MARK] [-o OUT] [-c COLOR] [-s SPACE]
                    [-a ANGLE] [--size SIZE] [--opacity OPACITY]

给图片添加文字水印，支持设置文字内容、大小、透明度、颜色、旋转等

optional arguments:
  -h, --help               show this help message and exit
  -f FILE, --file FILE     image file path or directory
  -m MARK, --mark MARK     watermark content
  -o OUT, --out OUT        image output directory, default is ./output
  -c COLOR, --color COLOR  font color like '#000000', default is #F4F4F4
  -s SPACE, --space SPACE  space between watermarks, default is 60
  -a ANGLE, --angle ANGLE  rotate angle of watermarks, default is 30
  --size SIZE              font size of text, default is 25
  --opacity OPACITY        opacity of watermarks, default is 0.4
Package: watermarker
WatermarkerLibrary for add text watermarks to images using PILInstallation:Install with pip or easy install (All dependencies will be installed automatically)Usage:Import watermark function from watermarker, then call watermark, providing options:image (required) - PIL Image instancetext (required)- text to add over imagefont_path (required)- font that will be usedfont_scale (required or font_size provided) - watermark font size will be set as percent of image heightfont_size (required or font_scale provided)color (optional) - default (0,0,0)opacity (optional) - default 0.6margin (optional) - default (30, 30) - margin, in pixels, from bottom right corner of image, where watermark will be placedsorl-thumbnail integrationAdd to your settings:THUMBNAIL_ENGINE = 'watermarker.sorl_engine.WatermarkEngine'
WATERMARK_OPTIONS = {'font_scale': 0.05, 'font_path': PATH_TO_FONT} # Any other options from watermark function
WATERMARK_MIN_SIZE = 50 #Minimum image size (max(height, width)) to add watermarkYou can add:WATERMARK_FORCE = u'watermark text' # Add watermark to all images except less than WATERMARK_MIN_SIZEor add watermark option to thumbnail tag:thumbnail image "1000x1000" watermark="my watermark"
Package: watermarkImage
Welcome to Watermark Image!The package will let you watermark batch of images.
This package is written in python 3.5.4You have 3 methods you can use:InstallationYou can install the watermark-image from PyPI:$pipinstallwatermarkImageExample usage:>>>fromwatermarkImageimportLogic
>>>list=Logic.watermarkDir(dirToSearch,logo,Position.TOP_LEFT)>>>Logic.saveImages(list,pathForNewImages)You have 3 methods you can use:watermarkDir:input:- dirToSearch: path to folder with all the images you want to watermark.
 - logo: PIL image object.
 - Position: one of 4 corners - please use Position enum from the package!
 - Opacity: opacity of logo (1-10), the default is 5.
 - Logo size: there are 4 sizes to choose, the default is 2.The output is list of PIL images.watermarkList:Same like watermarkDir but instead of "dirToSearch" there is "listOfImages" - list of PIL images.
The output is the same.saveImages:input- listOfImages: list of PIL images.
 - pathToSave: path to save the watermark images (the folder will be created if not exists).Note that the package supports only jpg\pngLicenseMITFree Software, Hell Yeah!
Package: watermark-painter
watermark-painteradd image watermark to documentsDependencenamevaluecommentOSWindowsOfficeAbove Office 2007 BasePython3Usageinstall from pippipinstallwatermark-painteruse in codeimg_filepath='d:\\home\\hosten\\pictures\\mark.png'doc_filepath='d:\\home\\hosten\\documents\\aboutme.docx'wp=WatermarkPainter(img_filepath)wp.draw_on_doc(doc_filepath)
Package: watermark.py
watermark.pyA convenient python wrapper around FFmpeg to apply watermarks to images, gifs,
and videos.Installationpipinstallwatermark.pyYou need to installffmpegseperately.UsagefromwatermarkimportFile,Watermark,apply_watermark,Positionvideo=File("vid.mp4")watermark=Watermark(File("im.png"),pos=Position.bottom_right)apply_watermark(video,watermark)Used bytelewaterA telegram bot that applies watermark on images, gifs, and videos.
Package: watermark-remover-cli
watermark_remover_cliA simple package for removing watermarks from PDFs and images.I built a web application as well. This is the link:Watermark Remover Web AppTODOIt currently works for PDFs with colored watermarks and black text for the main contentHandle image inputMaking it generic for colored textRemoving watermarks with drop-shadowsDetermining color of text with color histograms with KNN Alogrithm or another techniqueDone ✓Handle PDF input
Package: water-masses
Water-MassesAnalysis of the northern Eurpean shelf seas.Installationpipinstallwater-masses# orpoetryaddgit+https://github.com/shelf-sea/water-masses.git#trunkLicensegpl3CreditsThis project was generated withwemake-python-package. Current template version is:98c82c2c9f7f66fd8a5009361e4272240c25dc6f. See what isupdatedsince then.
Package: watero-go
Watero GoWatero Go是Watero Center部署于服务器的Agent服务Watero Go用于采集节点数据并上报Watero Center，同时接收Watero Center推送的控制信息Watero Center是一项数据接收、转发和投递集成服务如何使用环境配置Python 3.7安装模块pipinstallwatero_go依赖requestspsutil启动服务导入Watero_Go模块配置Watero Center公网地址和服务端口调用相应的API上报日志数据和建立控制通道
Package: water-pipe
READMEA simple etl tool.IntroductionInstallpip install water-pipeSample codefromwater_pipe.channelimportDataChannelif__name__=='__main__':impala_db_config={"driver":"impala","config":{"host":"10.63.82.218","username":"work","password":"TwkdFNAdS1nIikzk","database":"default","port":21050,"auth_mechanism":"LDAP",}}pg_db_config={"driver":"postgres","config":{"host":"10.63.82.191","username":"dw_rw","password":"Yxsj@123","database":"test","port":5432}}csv_db_config={"driver":"csv","config":{"filename":"data",# "path": ""}}withDataChannel(impala_db_config,pg_db_config)aschannel:channel.table("tmp.t2")# channel.sink_db.execute("truncate table medical.t2")channel.insert("medical.t2",2,is_create=True)withDataChannel(pg_db_config,impala_db_config)aschannel:channel.query("select * from medical.t2 limit 9")channel.insert("tmp.t3",2,is_create=True)withDataChannel(pg_db_config,csv_db_config)aschannel:channel.query("select * from medical.dim_date limit 123")channel.insert(is_create=True)withDataChannel(csv_db_config,pg_db_config)aschannel:channel.query()channel.insert("medical.t_csv",2,is_create=True)Dependencypipinstallloguru

pipinstallimpyla
pipinstallpsycopg2
pipinstallmysqlclient
pipinstallopenpyxl
Package: waterpybal
WaterpyBalThis repository contains an open source Python library for water balance modelling.Package information:Name: WaterpyBalversion: 1.0.0Author: Ashkan HassanzadehEmail:ashkan.hassanzadeh@gmail.compython: 3.*License: agpl-3.0Installation:pip can be used for the installation:pip install waterpybalAlternatively, download the waterpybal folder from the github repository and add it to lib folder in python path alongside other python libraries.documentation:Waterpybal documentation can be found inreadthedocsJupyter Notebook:There is a notebook inWaterpyBal's github repositorythat explains an example of implementing WaterpyBal on spatial and isotopic dataWaterpyBal Studio: Graphic User interface of WaterpyBalThe GUI of WaterpyBal (WaterpyBal Studio), alongside the installation guide and the user manual can be foudherewaterpyBal and waterpyBal StudiowaterpyBalis an open-souce Python library to calculate the spatial-temporal water cycle variables. WaterpyBal can be used to:Generate spatio-temporal netCDF database of desired variables in hourly, daily or monthly time-steps.In study areas using GeoTIFFs, or in a single point.Various modes of introducing variables: numpy arrays, .CSV files or netCDF files and interpolating the available measurments.Possibility to import data from Geotiff archivesSoil water reserve calculation based on RastersCalculating infiltration for daily datasets based on the Curve number methodCurve number correctionsPossibility to use advance Curve number options such as customized curve number tables, changing the coefficients of the main Curve number formulas (such as Landa) and customizing the Curve number correction formulasUrban Curve number correctionsA novel urban water cycle calculationVarious methods of Evapotranspiration Calculationcalculates the water balance in of a spatio-temporal dataset.Post-processing: Visualization of the results in form of excel outputs, rasters, figures or netCDF files. Generating Water balance reports.waterpyBal Studiois the user-interface of the waterpybal API. It contains the more frequently used capabilities of the Waterpybal Python Library.IMPORTANT NOTE:All the rasters that is used in a WaterpyBal project (waterpyBal and waterpyBal Studio) have to have the exact same Geographic coordinate system, pixel resolution, length and width. We recommendQGISas a free and Open Source software for shapefile to tif conversations, creating multiband tifs, raster resampling, etc.
Package: waterservices
WATERSERVICESA pyhton package to work with WaterServices USGSMy Personal Website:Water Directory.To import, use command below:fromwaterservicesimportNWISAvailable functions:siteInfo()Get a csv file for site info of any typecolumns=['site_no','station_nm','dec_lat_va','dec_long_va','huc_cd','data_type_cd','parm_cd','stat_cd','begin_date','end_date']filters={'seriesCatalogOutput':'true','outputDataTypeCd':'dv,pk,gw','siteStatus':'all','hasDataTypeCd':'dv,gw'}nwis=NWIS('GW',['01'],filters,columns,'wells').siteInfo()You can customize columns, filters, stationType, and HUC code.
Package: watersnake
WatersnakeUsage>>> import watersnake
>>> aligner = watersnake.Aligner()
>>> aligner.align("ACTG", "ACTG")
'4M'Building the package from sourceWatersnake usespixifor managing the build environment and tasks.$ cd watersnake/
# Run the patch-conda-forge command only *once* after building a new Pixi environment since it modifies the WFA2-lib Conda package!
$ pixi run patch-conda-forge
$ pixi run twine-check
Package: watertap
WaterTAPThis is the WaterTAP development repository.WaterTAP is developed as part of theNational Alliance for Water Innovationproject.Build StatusGetting startedTo quickly install and start using WaterTAP, head over to theGetting Startedsection of the documentation.If you wish to use theWaterTAP UI, you candownload and installit from this page:https://watertap-org.github.io.To run the WaterTAP tutorials online (no installation required), refer tothis guide.DocumentationThe WaterTAP documentation is available online athttps://watertap.readthedocs.io.Developer InstallationIf you want to clone the repository and work directly with the code, please
refer to theGetting Started for Developerssection of the documentation.Cite this workTo cite this work, use the "Cite this repository" feature available on the right side of this repository page or use the reference text given below.WaterTAP contributors. WaterTAP: An open-source water treatment model library. Version 0.6. Sponsored by California Energy Commission, National Alliance for Water Innovation, and USDOE. Available athttps://github.com/watertap-org/watertap.Funding AcknowledgementsThis work is being conducted as part of theNational Alliance for Water Innovation
(NAWI)with support through the U.S. Department of Energy’sAdvanced
Manufacturing Office.
Package: waterwheel
WATERWHEELWATERWHEEL(WATERlooWater andHydrologicEntityExtractor andLinker) is aspaCypipeline component that detects rivers, lakes, and other hydrologic entities, and links these entities toWikidata.
Although an acronym, we typically style the name as WaterWheel to avoid the impression that we're screaming all the time.PyPI:https://pypi.org/project/waterwheel/Simple UsageWaterWheel is written as aspaCy module.
Sample usage:importspacyfromwaterwheelimportWaterWheelnlp=spacy.load('en_core_web_sm')nlp.add_pipe(WaterWheel(nlp))doc=nlp('The ultimate source of the Mackenzie River is Thutade Lake.')forentindoc.ents:print(f'{ent.text}, type:{ent.label_},{ent._.wikilink}[{ent.start_char},{ent.end_char}]')# Results:# Mackenzie River, type: RIVER, https://www.wikidata.org/wiki/Q3411 [27, 42]# Thutade Lake, type: LAKE, https://www.wikidata.org/wiki/Q7333634 [46, 58]
Package: waterworks
Latest versions on BitBucket: https://bitbucket.org/dmcc/waterworks/or GitHub: https://github.com/dmcc/waterworksContents* AIMA - Provide some widely useful utilities. (not written by us, butslightly modified from the original -- seehttp://aima.cs.berkeley.edu/python/readme.html)* ClusterMetrics - a metric cluster**** of cluster metrics!* ExitCodes - Create textual descriptions of exit statuses.* FigUtil - Tools for creating tables and figures in papers.* FunctionPickler - Allows you to create pickle-able references tofunctions.* HeapQueue - A more object-oriented wrapper of the heapq module.* Histogram - Tools for creating and displaying histograms.* IntRange - Integer Range Parser and Generator* IntShelve - Just like shelve, but keys are always integers instead ofstrings.* LazyList - Lets you treat an interator as a list by filling in thelist on demand.* PrecRec - standard calculation of precision, recall and f-score.* Probably - Potentially useful functions for probability, statistics,and machine learning* Selectron - A selecting widget for Tix.* Tailer - tail -f for multiple files written natively in Python.* TeXTable - Convert a Python table into a LaTeX/TeX table.* TerminalTitle - Lets you change the title of your terminal in *NIX.* ThreadedJobs - Wraps twisted.python.threadpool in a way that makesmore sense to me.* TkGeomSavers - Common geometry behaviors for Tk/Tix* diffprint - Helps visualize diffs by giving you two parallel lists toprint.* iterextras - Some useful iterator functions from py2.4test_itertools.py plus a couple added items* robust_apply - Simple front-end to louie.robustapply.robust_apply.* vimdiff - Simple interface for visualizing differences between twostrings using vimdiff (or similar differs)Data structure specific collections* waterworks.Dictionaries* waterworks.Files* waterworks.Numbers* waterworks.Processes - for creating system processes* waterworks.Sequences - ists, tuples, etc.* waterworks.Streams - file-like streams* waterworks.Strings* waterworks.Tools - general tools and debugging helpers* waterworks.new_isinstance - version of isinstance which can handlemodule reload()ing better
Package: waterz
waterzPronouncedwater-zed. A simple watershed and region agglomeration library for
affinity graphs.Based on the watershed implementation ofAleksandar ZlateskiandChandan Singh.InstallationInstall c++ dependencies:sudo apt install libboost-devInstall from pipypip install waterzedinstall manuallypip install -r requirements.txt
python setup.py installUsageimport waterz
import numpy as np

# affinities is a [3,depth,height,width] numpy array of float32
affinities = ...

thresholds = [0, 100, 200]

segmentations = waterz.agglomerate(affinities, thresholds)DevelopmentRelease to pypiWe use travis to create releaseupgrade the version number in thesetup.pyfile, thengit commit -a -m "my comments"
git push origin v0.9.5the travis build system will get aTRAVIS_TAGvariable, and triger thetwine uploadcommand.
Package: wati-api
WATI API client libraryInstallationInstall the client:# Clone the source codegitclonehttps://github.com/ClareAI/wati_python
pipinstall-e.This package can be found onPyPI.pipinstallwati_apiExamplesThe example can be foundhere.Create a copy of the environment variables example. Then adjust it:cp.env.example.envSource the .env file:source.envRun the example:pythonexamples/main.py
Package: watlab
Watlab is Python-API dedicated to hydraulics simulations. The Python-API allows you to drive the different solvers available in the toolbox.
The following prerequisites are mandatory to use Watlab:A working version of PythonSome basic knowledge on Python scriptingA mesh made withGMSH(see also ourwebsite).Get WatlabWatlab is supported on Python 3.11 or later.Watlab installation is complicated by its (weak) dependency to the libgdal package. On Linux and MacOS, installation is included in the resterio installer. On Windows, one needs to install GDAL first.If necessary, you can download the installers here:DownloadWatlab 1.0.0;Downloadgdal 3.4.3 for Windows(for Win_AMD64; for another version, seehere).Install GDAL before you install watlab :python -m pip install GDAL-3.4.3-cp311-cp311-wind_amd64.whl
python -m pip install watlabRun Watlab (for the impatients)In order to test your Watlab instance, create a folder somewhere in your computer (say in~/usr/myWatlab/) and unzipthis archive.Open the Conda prompt and activate your newly createdwatlabenvironment:conda activate watlabThen run the script withpython .\watlab-first-script.pythonIf you see the following pictures then it worked!LicenseThis source code is not yet placed under open source licence. Meanwhile, this code is the property of Prof. Sandra Soares-Frazão.
GPL-3 open source copyright to come.Please copy the following text in your LICENCE file while using Watlab as a subpackage of your work.Watlab - Copyright (C) <1998 – 2024> <Université catholique de Louvain (UCLouvain), Belgique> 

This program (Watlab) is free software: you can redistribute it and/or modify it under the terms 
of the GNU General Public License as published by the Free Software Foundation, either version 3 
of the License, or (at your option) any later version.
   
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program (see COPYING file).  If not, 
see <http://www.gnu.org/licenses/>.Development teamThe development team is composed of the members of the GCE lab of Hydraulics, from UCLouvain. The contributors are:Nathan DelpierrePierre-Yves GousenbourgerRobin MeuriceCharles RyckmansSandra Soares-Frazão(first contributor)Catherine SwartenbroeckxSylvie Van EmelenMirjana VelickovicJiangtao Yang
Package: watlow
watlowPython driver and command-line tool forWatlow EZ-Zone temperature controllers.Installationpip install watlowUsageCommand Line$ watlow /dev/ttyUSB0This returns a simple data structure.{
  "actual": 21.66,
  "setpoint": 20.0,
  "output": 52.1
}You can additionally use the--set-setpointoption to set a temperature setpoint.If interacting with a Watlow RUI Gateway, the zone to get or set should be passed as a flag$ watlow -z 1 192.168.1.101Seewatlow --helpfor more.PythonSingle ControllerFor a single temperature controller, the python interface is basic synchronous serial communication.importwatlowtc=watlow.TemperatureController('/dev/ttyUSB0')tc.set(30)print(tc.get())The driver is designed to be fault tolerant over long polling, and should
appropriately reconnect if itsIOErrors are managed. Here's an implementation
with standard long-poll exception handling. This should run until interrupted and
then exit cleanly.fromtimeimportsleepimportwatlowtc=watlow.TemperatureController('/dev/ttyUSB0')try:whileTrue:try:print(tc.get())exceptIOError:print('disconnected')sleep(1)exceptKeyboardInterrupt:passfinally:tc.close()GatewayThe Gateway driver uses Python ≥3.7's async/await syntax to asynchronously communicate with
the gateway over ModBus-TCP.importasyncioimportwatlowasyncdefrun():asyncwithwatlow.Gateway('192.168.1.101')asgateway:print(awaitgateway.get(1))asyncio.run(run())Additionally, there is a mock for the Gateway driver available atwatlow.mock.Gatewayfor testing.
Package: watobs
WatObs: Access Water Observation DataThis Python package gives you convenient access to water observation data with a bring-your-own-api-key concept.Data overviewDHI satellitealtimetry dataOcean Observations fromDanish Meteorological InstituteExample notebooksAltimetry_dataDMI_observationsSatellite altimetry dataAltimetry data (water level, significant wave height and wind speed) obtained from satellites are very useful for validation of models as the data are available globally since 1985 and up to 12 hour before now.DHI has analtimetry portalwith anapiwhere you can download the data.ExampleObtain all altimetry data within 100km from (lon, lat)=(2.9, 55.9) from October 2019.>>>fromwatobsimportDHIAltimetryRepository>>>repo=DHIAltimetryRepository(api_key)>>>data=repo.get_altimetry_data(area="lon=2.9&lat=55.9&radius=100",start_time="2019-10-1",end_time="2019-11-1")>>>data.df["longitude","latitude","significant_wave_height"].head()longitudelatitudesignificant_wave_heightdatetime2019-10-0101:53:30.6893.78042955.2036991.9424232019-10-0101:53:31.6333.77029755.2607001.8929142019-10-0101:53:32.5763.76014855.3177011.8388152019-10-0101:53:33.5193.74998055.3747011.9302732019-10-0101:53:34.4633.73979555.4317001.952707
Package: watroo
WATROOImplements theà trouswavelet transform and associated tools: denoising, enhancement, etc.ContentsInstallationA troustransformScaling functionsWOW! (Wavelets Optimized Whitening)ReferencesInstallationWithin the active environmentpipinstall.À troustransformATrousTransformimplements a dyadic 'à-trous' transformScaling functionsTriangleB3 splineExamplesDenoise an imageimportnumpyasnpfromwatrooimportAtrousTransform,Triangledenoise_sigma=[5,3]transform=AtrousTransform(Triangle)img=np.random.normal(size=(512,512))coefficients=transform(img,len(denoise_sigma))# coefficients.data is an ndarray that contains the coefficients propercoefficients.denoise(denoise_sigma)# coeffcients accepts numpy operationsdenoised=np.sum(coefficients,axis=0)# which is equivalent todenoised=coefficients.data.sum(axis=0)The same result cam be obtained using thedenoiseconvenience functionfromwatrooimportTriangle,denoiseimg=np.random.normal(size=(512,512))denoise_sigma=[5,3]denoised=denoise(img,denoise_sigma,Triangle)Extract significant coefficients at a given scale# return a ndarray containing the 3-sigma significance of coefficients# at scale 2 with hard thresholdings=coefficients.significance(3,2,soft_threshold=False)Compute the standard deviation of Gaussian white noise# compute 10 scales of the 2D B3splinew=B3spline(2)w.compute_noise_weights(10)This returns a 1-Dndarraycontaining the normalization
used to estimate the significance of coefficients.WOW! (Wavelets Optimized Whitening)fromwatrooimportwow# read in your image here (must be floating point)# ...Standard enhancement:wow_image,_=wow(image)'Bilateral' version, slower but better:wow_image,_=wow(image,bilateral=1)Denoised bilateral enhancement (best results):wow_image,_=wow(image,bilateral=1,denoise_coefficients=[5,2])ReferencesStarck, J.-L. & Murtagh, F. 2002, Handbook of Astronomical Data Analysis, Springer-Verlag, doi:10.1007/978-3-540-33025-7Auchère, F., Soubrié, E., Pelouze, G., Buchlin, É. 2022, Image Enhancement With Wavelets Optimized Whitening, A&A, 670, id.A66, doi:10.1051/0004-6361/202245345
Package: watson-auth
Authorization and authentication library for Watson-Framework.For full documentation please see [Read The
Docs](http://watson-auth.readthedocs.org/).Build Status[![Build
Status](https://img.shields.io/travis/watsonpy/watson-auth.svg?maxAge=2592000)](https://travis-ci.org/watsonpy/watson-auth)
[![Coverage
Status](https://img.shields.io/coveralls/watsonpy/watson-auth.svg?maxAge=2592000)](https://coveralls.io/r/watsonpy/watson-auth)
[![Version](https://img.shields.io/pypi/v/watson-auth.svg?maxAge=2592000)](https://pypi.python.org/pypi/watson-auth/)### Installationpip install watson-auth### Dependencieswatson-dbbcryptpyjwt
Package: watson-cache
A collection of cache storage mechanisms that act like a dict.Currently supporting:MemoryFileMemcacheAlso contains a decorator that can be used within thewatson-frameworkpackage.For full documentation please seeRead The
Docs.Build StatusInstallationpip installwatson-cacheDependencieswatson-commonwatson-di (for test coverage, and decorator usage)python3-memcachedTodoAdd SqlAlchemy based storageAdd Redis based storage