Saravanan666/pypi-org huggingface dataset:
Package: wg-tray
wg-traywg-tray enables to quickly bring up/down wireguard interfaces from the system tray, usingwgandwg-quick.Installation$ pip install wg-trayUsagewg-tray[-h][-v][-cCONFIG]optionalarguments:-h,--helpshowthishelpmessageandexit-v,--versionshowprogramversioninfoandexit-cCONFIG,--configCONFIGpathtotheconfigfilelistingallwireguardinterfaces(default:none;userootprivilegestolookupin/etc/wireguard/)The config file should simply list all wireguard interfaces, separated either by newlines or spaces (e.g.wg0 wg1orwg0 
wg1). The purpose of this config file is to avoid using root access onlsto read in/etc; however, its correctness is not checked and it is your responsability to keep it up to date.
If no config is provided, the interfaces are dynamically looked up in/etc/wireguard.If you want to avoid being prompted for your root password each time you runwg-tray, use a config file and add the following lines to your sudoers file (sudo visudoto edit), replacing<username>with your user name:<username> ALL=(ALL) NOPASSWD: /usr/bin/wg
<username> ALL=(ALL) NOPASSWD: /usr/bin/wg-quick
Package: wg-utilities
WG UtilitiesDocumentationDocumentation generated bymkdocscan be foundhere.Environment VariablesNameDescriptionDefaultHA_LOG_ENDPOINTThe HomeAssistanthostto send logs tohomeassistant.local:8001SUPPRESS_WG_UTILS_IGNORANCEIf set to"1", will suppress warnings about ignored exceptions caught in theon_exceptiondecoratornullWG_UTILITIES_CREDS_CACHE_DIRThe directory to store the credentials cache in<App Data Dir>/WgUtilities/oauth_credentials/WG_UTILITIES_HEADLESS_MODEIf set to"1", allows a callback to be provided to OAuth clients instead of opening the auth link directly in the browser. Useful for running on headless devices."-"ITEM_WAREHOUSE_HOSTThe host to use for theItem Warehouse APIhttp://homeassistant.localITEM_WAREHOUSE_PORTThe port to use for theItem Warehouse API8002WAREHOUSE_HANDLER_BACKOFF_MAX_TRIESThe maximum number of times to retry a request to theItem Warehouse API∞WAREHOUSE_HANDLER_BACKOFF_TIMEOUTThe maximum number of seconds to keep retrying requests to theItem Warehouse API86400Unit Test Coverage
Package: wh1tem0cha
Wh1teM0chaPython Module for Parsing & Reverse Engineering Mach-O Executables.InstallationYou can simply run this command.pip3installwh1tem0chaHow to UseGeneral Information About Target BinaryDescription: With this feature you can get general information from target MACH-O binary.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.get_binary_info()List SegmentsDescription: This method is for parsing and listing segments.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.get_segments()Get Target Segment InformationDescription: With this method you can get additional information about the target segment.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.segment_info("__TEXT")Dump Segment BufferDescription: This method is for extracting content of the target segment.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.dump_segment("__TEXT")List SectionsDescription: This method is for parsing and listing sections.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.get_sections()Get Target Section InformationDescription: With this method you can get additional information about the target section.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.section_info("__text")Get DYLIB InformationDescription: This method is for get all information about the Dynamic Libraries.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.get_dylib_names()Get WEAK DYLIB InformationDescription: This method is for get all information about the Weak Dynamic Libraries.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.get_weak_dylib_names()Dump StringsDescription: This method can get and list string values from the target binary file.fromwh1tem0chaimportWh1teM0chawm=Wh1teM0cha("target_binary_file")wm.get_strings()
Package: whacamolefinder
Get the difference between 2 imagesTested against Windows 10 / Python 3.11 / Anacondapip install whacamolefinderThe WhacAMoleFinder class is designed for continuously comparing
pairs of images and finding differences between them.
It is used in scenarios where you want to monitor a changing image,
such as a game or application interface, and detect any alterations or visual changes.The advantages:Continuous Image Comparison:The class allows you to continuously compare two consecutive screenshots or images,
enabling real-time monitoring for changes.Difference Detection:It detects differences between the images using image processing techniques,
highlighting regions where changes occur.Customizable Parameters:You can customize various parameters, such as the percentage of resizing,
the color used for highlighting differences, the thickness
of highlighting lines, and the threshold for difference detection.
This flexibility allows you to adapt the class to different use cases and scenarios.Visualization:It provides an option to display the images with differences
highlighted, making it easy to visualize what has changed.Interactive Control:The class includes a control mechanism to stop the comparison process,
which is useful when you want to pause or terminate the monitoring.Yielding Results:It yields the results of the comparison as a list of Token namedtuples,
providing information about the differences found in consecutive images.Args:screenshotiter:Ageneratororiteratorthatprovidesscreenshotsforcomparison.Attributes:screenshotiter(generator):Theiteratorsupplyingscreenshots.stop(bool):Aflagtocontrolthecomparisonprocess.SettoTruetostopcomparing.last_screenshotbefore_last_screenshotMethods:start_comparing:Begintheimagecomparisonprocessandyieldresults.Example:fromwhacamolefinderimportWhacAMoleFinderfromfast_ctypes_screenshotsimport(ScreenshotOfOneMonitor,)# create your own screenshot function, you can use whatever you want (fast_ctypes_screenshots/adb/mss/pyautogui/...),# but it is important to use a loop and yield!defscreenshot_iter_function():whileTrue:withScreenshotOfOneMonitor(monitor=0,ascontiguousarray=False)asscreenshots_monitor:yieldscreenshots_monitor.screenshot_one_monitor()# Create an instance of WhacAMoleFinderpiit=WhacAMoleFinder(screenshot_iter_function)# pass the function without calling it!forini,diinenumerate(piit.start_comparing(percent_resize=10,draw_output=True,draw_color=(255,0,255),thickness=20,thresh=3,maxval=255,draw_on_1_or_2=2,break_key="q",)):print(di)ifini>100:piit.stop=Trueprint(piitlast_screenshot)print(piitbefore_last_screenshot)#You can compare 2 images without using the class:# Call the get_difference_of_2_pics function to compare the two imagesallresults,out=get_difference_of_2_pics(pic1='c:/pic1.jpg',pic2='c:/pic2.jpg',percent_resize=10,draw_output=True,# Set to True to visualize the differencesdraw_color=(255,0,255),# Custom color for highlighting differencesthickness=2,# Line thickness for highlightingthresh=3,# Threshold for difference detectionmaxval=255,# Maximum value for thresholdingdraw_on_1_or_2=1,# Draw differences on the first image)
Package: whacc
WhACC is a tool for automated touched image classification.Many neuroscience labs (e.g.Hires Lab) use tasks that involve whisker active touch against thin movable poles to study diverse questions of sensory and motor coding. Since neurons operate at temporal resolutions of milliseconds, determining precise whisker contact periods is essential. Yet, accurately classifying the precise moment of touch is time-consuming and labor intensive.Walkthrough: Google CoLabSingle example trial lasting 4 seconds. Example video (left) along with whisker traces, decomposed components, and spikes recorded from L5 (right). How do we identify the precise millisecond frame when touch occurs?Original 2048 output features extracted from the penultimate layer of the initial ResNet50 V2 model, clustered for emphasizeFlow diagram of WhACC video pre-processing and design implementationTouch frame scoring and variation in human curationData selection and model performanceFeature engineering and selectionWhACC shows expert human level performanceWhACC can be retrained on a small subset to account for data drift over time or different datasets (see GUI below)WhACC GUI: used to curate automatically selected subset of data for optimal performanceUse left and right arrows to move through images, use up to label as touch (green) and down to label as not-touch (red)Code contributors:WhACC code and software was originally developed by Phillip Maire and Jonathan Cheung in the laboratory ofSamuel Andrew Hires.
Package: whackerhero
Whacker HeroCreate play-along videos forBoomwhackers.Installationpip install "whackerhero[gui]"[gui]is optional. It installsgooeywhich may take a while on Linux.
You have to do a pip-install in order to use the gui, it cannot be launched directly from python or the shell.Other dependencies aremidofor midi reading,numpyfor graphics, andmoviepyfor video rendering.UsageIf you've installed the gui, it's pretty straightforward.
The most work goes into writing a music arrangement suitable for playing along to (see the example below).
There are many midi files on the internet, but they can be big and messy.
You should trim it down to only one or two octaves.The midi file willonlybe used for visuals. If you want it for audio too, you have to convert it manually.There is also a command line variant:whackercmd -a music.mp3 -i background.jpg midifile.mid output.mp4You can even create gif images for some reason.whackercmd -s 400x300 --fps 15 midifile.mid output.gifDue to the single-core design of moviepy, rendering takes forever.
Use thetestoption to generate a 10 sec long video before you do your final rendering.Adding play-along to a music videoDownload the music video andextractthe music.Import the music into yourDAWof choice. Don't add any silence at the beginning.Write notes in sync with the music. What you hear is what you'll see.
If you make all notes the same short length, things will look less cluttered in the final video.Export to a midi file.RunwhackerheroSelect the midi file and the music video.Check thetestbox and press start.If everything looks good, unchecktestand run again.
Package: whadup
An unofficial Python wrapper around theGitHub StatusAPI.Installationwhadupis available on PyPI:$pipinstallwhadupTo install from source use:$pythonsetup.pyinstallUsage:fromwhadupimportGithubStatusgh=GithubStatus()gh.status()DocumentationDocumentation for the whadup library is availablehere.To learn more about the GitHub Status API, check out theofficial documentation.LicenseCopyright 2015-2022 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Buy me a coffee?If you feel like buying me a coffee (or a beer?), donations are welcome:BTC : bc1qq04jnuqqavpccfptmddqjkg7cuspy3new4sxq9
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS
ETH : 0x2238A11856428b72E80D70Be8666729497059d95
LTC : MQwXsBrArLRHQzwQZAjJPNrxGS1uNDDKX6
Package: whale-http
whale-httpFork fromhttp-promptwhich is a interactive http cli tool.Add project feature. Http requests are organized in project.Project settings and history are stored in a project directory.installation1. pypi:pipinstallwhale-http2. source:clone this repo first,gitclonehttps://github.com/yuexl/whale-http.gitthen installcdwhale-http
pythonsetup.pyinstallusageCreate project:whale-httpnew-nfoo-uhttp://localhost:8000The command above will create a project named foo, and auto active into interactive mode.You can also start cli using command below, if have exited the cli mode.whale-http-pfooDelete project:whale-httpdelete-nfooAlso can change project with 'cp ' command, when program is running.Since whale-http inherate from http-prompt, so all thehttp-promptcommands are available.
Package: whaleman
Introwhaleman It is a simple tool to build , push and tag docker images.using config .ini file to configure the tool. its annoying sometimes we tagging the image over and over again.with this we can simply use config for tagging and versioning for each project/dockerfileInstallationpipinstallwhalemanUsageby default name of the config file is docker.inithe content of the config file is[registry]name=index.docker.io# name of the registry URL , default is index.docker.iologin=True# if you want to login to the registry , default is False# username for the registry# default is None or grab from env var with name DOCKER_USERNAMEdocker_username=myusername# password for the registry , use quotes if you have symbol in the password.# default is None or grab from env var with name DOCKER_PASSWORDdocker_password="mypassword"[image]name=soberdev/homepage# this is name of the image, requiredtag=0.1.8# this is the version of the image or initial version, requiredor if you want to create a config file simply run:whalemancreateconfigthe createconfig takes arguments, by default it will create a config file with name docker.inibut you can create a config file with any name you want with the argument -nwhalemancreateconfig-nmyconfig.iniDockerHostby default whaleman will try grab the value from env variablesDOCKER_HOSTif the environment is empty, then default tounix://var/run/docker.sockRun the toolpatch choices arekeep, micro, minor and majorkeepwill not update the versionwhalemanbuild<patch>build the image and patch the version, after done will auto increment the version in the config fileyou can build and push the image to the registry with the positional argumentpushwhalemanbuild<patch>pushchange the registry uri dynamicallywhalemanbuild<patch>push-ryour.registry.urlor you can use any config file and custom dockerfilenamewhalemanbuild<patch>push-fmyconfig.ini-dfmydockerfile.DockerfileFor more informationwhaleman-hwhalemanbuild-hwhalemancreateconfig-hLogging Leveldefault is INFO, but you can change it with the argument -lwhaleman-lDEBUGbuild<patch>
Package: whale-pipelines
whale-pipelineswhale-pipelines is a library based on amundsen's databuilder that enables easy extraction of metadata into whale's markdown format. The library references static config files in~/.whale/to establish connections and customize the scraping process. Whale also provides hooks into SQLAlchemy for easy execution of SQL queries against these locally defined connections, without having to specify connection strings at every request.For information on the full CLI platform, visitwhale.There are two main functions:pull, which handles metadata extraction, andrun, which is enables execution of SQL queries.pullWhilewhaleinvokes abuild_script.pyfunction to runpull, it does nothing else than callpull(), with some logging set up around it. If, therefore, you'd like to pare down/write a custom CI/CD pipeline, all you need to do is:pip install whale-pipelinesthen run:import whale as wh
wh.pull()runWhile libraries like pydobc, sqlalchemy, pyhive, etc. provide easy-to-use interfaces against a warehouse, the stateless nature of these libraries can make it a bit repetitive -- whenever you need to write a query, you generally need to open a cursor, specifying your warehouse URI and credentials. While somewhat trivial,runsimply wraps SQLAlchemy, enabling you to open a connection automatically against connections defined in~/.whale/config/connections.yaml.To use this, simply run:import whale as wh
wh.run()Awarehouse_namekwarg can be specified, which will forcerunto establish a connection with the first warehouse with the correspondingnamefield matching the argument passed. If not given, the first warehouse in the list will be used.
Package: whaler
whalerWhat?A command-line tool for visually investigating the disk usage of docker imagesWhy?Large images are slow to move and expensive to store. They cost developer productivity by lengthening devops tasks and often contain unnecessary dataWho is this for?Primarily for engineers working with images containing Python packages.User StoriesThis tool should allow you to answer questions such as:Which file types are occupying the most disk space?Which are my largest Python packages?What are my unknown causes of high disk usage?Quick startpipinstallwhalerRun against a local directory➜ whaler .venv
Running bash -c cd .venv && du -a -k
Done. Serving output at http://localhost:8000 (ctrl+c to exit)
Running python3 -m http.server 8000 --directory=_whaler/htmlRun against a docker imageThe tool will pull the image first if it is not present.whaler --image='hl:latest' /
Running docker run --rm --entrypoint=du --workdir=/ hl:latest -a -k
Ignoring what seems to be non-fatal error(s):
du: cannot access './proc/1/task/1/fd/4': No such file or directory
du: cannot access './proc/1/task/1/fdinfo/4': No such file or directory
du: cannot access './proc/1/fd/3': No such file or directory
du: cannot access './proc/1/fdinfo/3': No such file or directory


Done. Serving output at http://localhost:8000 (ctrl+c to exit)
Running python3 -m http.server 8000 --directory=_whaler/htmlPlay with ahosted demoLimitationsPlatform: whaler usesduto gather disk usage data. It must be present in your docker imageScale: I have tested the web UI with up to 500,000 file system nodes withduoutput of up to ~100MB.Alternatives/Complements to this tool:Whaler can tell you what is taking up space in the final layer of your Docker image, but you may have intermediate layers which are contributing to the image size. For diving through the layers, usediveRelated: read up onmulti-stage buildsto understand how to mitigate the problem of intermediate layers bloating your image.For investigating disk usage in non-docker directories,Disk Inventory Xis a great tool on OS X which I have based whaler on.DevelopingSee.github/workflows/test.ymlfor the development platform and setup.For UI, seewhaler-ui
Package: whalrus
WhalrusWhich Alternative Represents Us, a package for voting rulesFree software: GNU General Public License v3Documentation:https://francois-durand.github.io/whalrus/.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.We use the checklist provided byPackage Helper 2.History0.4.6 (2020-12-01): Improve test coverageReach 100% of test coverage. Cf.https://codecov.io/gh/francois-durand/whalrus.Convert documentation to Numpy style. The documentation is not changed much in html format, but is more readable in
plain text.Remove hash function forBallotOneNameandBallotOrder. It had a bug, and fixing it would have implied to
change all sets of candidates to frozen sets. Since this function is non-essential, we decided to remove it instead.Fix bug inMatrixWeightedMajoritywhen using the optionordered_vs_absentorabsent_vs_ordered.Fix bug inRule.trailer_when there is only one candidate in the election.0.4.5 (2020-11-26): Fix Missing Files in DeploymentFiles from some sub-packages, such asscale, were missing. This release fixes that bug.0.4.4 (2020-11-26): Fix PyPI deploymentFix PyPI deployment.0.4.3 (2020-11-26): GitHub ActionsThis patch concerns Whalrus’ developpers only. To develop and maintain the package, it uses GitHub actions
instead of additional services such as Travis-CI and ReadTheDocs.Use Codecov.Prepare support for Numpy documentation style (not used yet).Prepare support for notebooks in documentation (not used yet).0.4.2 (2019-08-22): Speeding UpMinor patch to speed up the computation of the winner in some cases.0.4.1 (2019-04-01): Tie-breakingFix a bug related to random tie-break.In the arguments of classRuleRankedPairs, the tie-break can be given directly, instead of having to go through
the argumentmatrix.0.4.0 (2019-03-29): SchulzeImplement Schulze rule.0.3.0 (2019-03-29): Ranked PairsImplement Ranked Pairs rule.0.2.1 (2019-03-28): Optimize argument passingOptimize argument passing between child classes, their parent classes and their__call__function.0.2.0 (2019-03-21): Classic voting systemsFirst “real” release, where most classic voting systems are implemented.0.1.0 (2018-03-13): First releaseFirst release on PyPI.
Package: whapy
[![Documentation Status](https://readthedocs.org/projects/whapy/badge/?version=latest)](http://whapy.readthedocs.io/en/latest/?badge=latest)Checkout the [documentation][doc].[doc]: http://whapy.readthedocs.io/## Quick Example```pyimport whapywap = whapy.WhaPy(whapy.Browser.firefox, True)@wap.eventasync def on_message(chat, messages):print("New messages arrived: ")for i in range(0,len(messages)):if not messages[i].is_media():print(messages[i].get_content())if messages[i].get_content() == "@who":chat.send_message("are you?")@wap.eventasync def on_ready():print("Logged in as " + wap.get_me())wap.run()```## Dependencies- Python 3.4.2+- `selenium` library- `a webdriver` (http://selenium-python.readthedocs.io/installation.html#drivers)
Package: what3chars
what3charswhat3chars is a Python module that provides functions for decoding and
encoding confusing, hard to decipher characters to and from latitude
and longitude coordinates. It combines lower case and upper case 'L's,
'I's, and '1's into geospatially unique but visually indecipherable
strings.Example:>>> import what3chars
  >>> print 'what3chars for 42.6, -5.6:', what3chars.encode(42.6, -5.6)
  what3chars for 42.6, -5.6: LlIiILilLliIlL1LlIliIliIiIliL1l1LlILYou can specify an arbitrary precision when encoding. The precision
determines the number of characters in the what3chars:>>> print 'what3chars for 42.6, -5.6:', what3chars.encode(42.6, -5.6, precision=20)
  what3chars for 42.6, -5.6: LlIiILilLliIlL1LlIliIDecoding a what3chars returns a (latitude, longitude) tuple:>>> print 'Coordinate for what3chars LlIiILilLliIlL1LlIliI:', what3chars.decode('LlIiILilLliIlL1LlIliI')
  Coordinate for what3chars LlIiILilLliIlL1LlIliI: ('42.6', '-5.6')Licensewhat3chars is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.what3chars 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 Affero General Public
License for more details.You should have received a copy of the GNU Affero General Public
License along with Geohash.  If not, seehttp://www.gnu.org/licenses/.This is a fork ofhttps://github.com/vinsci/geohashHistoryThis is a parody of a popular geolocation system, and the code is a fork of
Geohash by Leonard Norrgard. The only real changes are to replace the base32
pool of characters with combinations of indecipherable letters.