Saravanan666/pypi-org huggingface dataset:
Package: willspeak
WillSpeak - Work in ProgressPython Text to Speach using Microsoft Sapi5 with a server/client model.Progress updateThe core functionality is now working, and is ready for testing.
Some cleanup is still required, but it works.
Only supports SAPI5 for now. More to come in the future.InfoI created this project as a way to have good TTS on linux, because TTS on linux at the moment is dreadful.
For a long time I wanted to switch to linux, but I needed a good linux TTS software but could not find one.
So I decided to create this project to interface with the windows SAPI5 TTS engine.How it works is by running this software in server mode on a Windows machine.
Then configure the linux client to communicate with that Windows TTS server.
The client will monitor for text that was copied to the clipboard and converts the text into speech.UsageThis software has 2 different operational modes, "Local" & "Server/Client". If the TTS engine that you have selected
works natively on your operating system, Then you can use Local mode. e.g. SAPI5 is native to windows, so you can use
Local mode on Windows when using SAPI5. You should use Server/Client if you want to use SAPI5 on linux.
It requires python 3.10 or grater.Install using pippython3-mpipinstallwillspeakRun locally on WindowswillspeaklocalTo run in server mode do.willspeakserverAnd on the client machine run. "--addr" is the address of the server running the server component.# 192.168.1.60 is just an examplewillspeakclient--addr=192.168.1.60There is one last command that is used to stop any current speech.willspeakstopTODOSetup prometheus metrics to track usage. This is useful if you wish to use a paid for TTS Service.Add support for other text to speech engines, like eSpeak.Add support for running the server component as a Windows service.Change the way things are configured from CLI args to web interface.Document how to enable more SAPI5 voices.See if there is a way to hide the useless stderr output from pyaudio on linux.Enable Extra SAPI5 VoicesExtra SAPI5 voices can be installed by going to Settings -> Time & Language -> Speech.
Click the plus icon next to add voices in the Manage voices section. Here you will see a full
list of available voices for a given language. Select language voice you want and click add.
This will download and install the new voices. They will be available for preview when you close and
re-open the settings app.You can even use the Cortana voice (Eva) for SAPI5, but this requires a registry tweak to be able to enable it.
And also requires you to have the English (US) language pack installed. This is the best female voice in my opinion.
But if you are looking for a male voice then Richard is the best, available in the English (Canada) voice package.Linkshttps://winaero.com/unlock-extra-voices-windows-10/Version0.3.0
Package: wilson
wilson – running and matching beyond the Standard Modelwilson is a Python package for the running and matching of Wilson coefficients of higher-dimensional operators beyond the Standard Model of particle physics. It implements the one-loop running of all dimension-6 operators in the Standard Model Effective Theory (SMEFT), complete tree-level matching onto the weak effective theory (WET) at the electroweak scale, and complete one-loop running of all dimension-6 WET operators in QCD and QED. It uses the Wilson coefficient exchange format (WCxf) for representing Wilson coefficient values and can be easily interfaced with all codes supporting this standard.InstallationThe package requires Python version 3.5 or above. It can be installed withpython3-mpipinstallwilsonDocumentationA brief user manual can be found in the paper cited below. More information can be found on theproject web site.Citation"Wilson: a Python package for the running and matching of Wilson coefficients above and below the electroweak scale"J. Aebischer, J. Kumar and D. M. StraubarXiv:1804.05033 [hep-ph]Related workThe SMEFT RGEs are based onarXiv:1308.2627,arXiv:1310.4838, andarXiv:1312.2014.The SMEFT RGE implementation was ported from theDSixToolsMathematica package (arXiv:1704.04504).The SMEFT to WET matching is based onarXiv:1709.04486.The QCD and QED running is based onarXiv:1704.06639andarXiv:1711.05270.The running and matching of the strong coupling constant and the quark masses is performed using CRunDec3 (arXiv:1703.03751).Bugs and feature requestsPlease submit bugs and feature requests usingGithub's issue system.ContributorsIn alphabetical order:Jason AebischerDanny van DykJacky KumarXuanyou PanMatthias SchöffelPeter StanglDavid M. StraubJean-Loup TastetLicensewilson is released under the MIT license.
Package: wilson3d
Wilson Python PackagePython package for creating Wilson animations. Seenotebooksfolder for example.UsageA simple example for creating an animation:importnumpyasnpimportwilsonr=5.0t=np.linspace(0,2*np.pi)x=r*np.cos(t)y=r*np.sin(t)z=np.zeros_like(t)path=np.column_stack((t,x,y,z))orbit=wilson.Path(path,name='Moon Orbit')earth=wilson.Sphere('Earth',description="That's our planet!",radius=1.0,color='blue')moon=wilson.Sphere('Moon',description='Our oldest pal!',radius=0.27,color='grey')moon.position=orbitproject=wilson.Project('Earth Moon',author='wilson',description='The Moon orbiting around the Earth.',animationSpeed=2*np.pi/5.0,animatables=[earth,moon])wilson.saveProject(project,'../examples/earth_moon.wlsn')Known IssuesParsing a project and immediately serializing it again might produce a different
result. This is due to protobuf returning default values for missing properties
of a built-in type (i.e. string, float, etc.).While it is possible to circumvent this, it would bloat the protobuf files and
was thus not done.TODOThe package lacks early type check which might makes debugging software using a
bit more tedious. Nevertheless, the output is guaranteed to meet the protocol as
this is assured by protobuf.
Package: wim
wim is a command line tool to create images for the Web.Usagewiminput.png-t'add this text at the bottom'Typewim--helpfor info on all command line options.FeaturesAdd text at the bottom of the image.Scale image to a maximum dimension.Reduce image file size.MetaFree software: MIT licenseDocumentation:https://pythonhosted.org/wim/History0.2.1 (2015-06-27)Include requirements.txt.0.2.0 (2015-06-25)Addedscaleandquantizeoptions to determine image size and quality.Added help texts for arguments.0.1.1 (2015-06-09)Append text at the bottom of image instead of composing 2 images.0.1.0 (2015-01-10)First release on PyPI.
Package: wimby
wimbyWimby is a lean cryptocurrency analytics, using periodic weighted averages.Official ReleaseWimbycan now be used on your Python projects through PyPi by running pip command on a Python-ready environment.pip install wimby --upgradeUsage1. Import PackagefromwimbyimportWimby2. Initialization# set a list of coin aliasescoins=["bitcoin"]# initializeanalytics=Wimby(coins)# aliased coin validationcoins=["btc"]analytics=Wimby(coins,aliased=True)# add coin aliases one-by-oneanalytics.add("eth")# or replace with new a list of coinscoins=["ethereum","dogecoin"]analytics.change(coins)# perform analysisanalytics.analyze()# arkivist objectmomentum=analytics.momentum# arkivist objectmovers=analytics.movers
Package: wimms
WIMMSstands forWhere Is My Mozilla Service ?.This library implements a SQL backend for a database that
lists for a list of service, (user, node, service) tuples.It’s used by Mozilla’s Token Server.To see where WIMMS fits in the whole architecture, see:TestsTo run the tests for mysql, you need to install a mysqlserver and export the
‘WIMMS_MYSQLURI’ variable properly. Something like this:$ export WIMMS_MYSQLURI="mysql://user:pass@host/db"CHANGES2012-07-24 - 0.3Added a metadata table which is able to store information related to the user
and service.2012-07-18 - 0.2.1allocated_node will just return an existing node.2012-04-18 - 0.2added the pool_reset_on_return option2012-04-17 - 0.1initial release
Package: wimprates
wimpratesDifferential rates of WIMP-nucleus scattering in the standard halo model, primarily for xenon detectors.https://github.com/JelleAalbers/wimpratesInstallation and usagepip install wimpratesSee this basic example for usage.The package uses numericalunits (https://pypi.python.org/pypi/numericalunits); all function inputs
are expected to have proper units (except for therate_wimp_stdconvenience function).FeaturesSpin-indendent and spin-dependent DM-nucleus scattering;Elastic NR, bremsstrahlung, and Migdal effect detection mechanisms;Time dependent observed dark matter speed distribution (annual modulation only, no daily modulation);DM-electron scattering (experimental);Support for xenon (all models, default), argon, germanium, and silicon (many models).How to citeJ. Aalbers, J. Angevaare, K. Morå, and B. Pelssers, wimprates: v0.4.1 (2022).https://doi.org/10.5281/zenodo.2604222.The original sources for models used in wimprates are:Spin-dependent scattering: Klos, P. et al.,Phys.Rev. D88 (2013) no.8, 083516, Erratum:Phys.Rev. D89 (2014) no.2, 029901.[arXiv:1304.7684]Bremsstrahlung: C. Kouvaris and J. Pradler,Phys. Rev. Lett. 118, 031803 (2017).arXiv:1607.01789Migdal effect: M. Ibe et al.,JHEP 1803 (2018) 194.arXiv:1707.07258Dark matter electron scattering: R. Essig, T. Volansky, T.-T. Yu:Phys. Rev. D 96, 043017 (2017).arXiv:1703.00910.Ionization form factors from: T.-T. Yu,http://ddldm.physics.sunysb.edu/ddlDM/, 2018-11-05.ContributorsJelle AalbersJoran AngevaareKnut Dundas MoraBart PelssersHistory0.5.0 (2023-02-13)Change default v_0 and v_pec to matchcurrent conventions(#14)If no time is provided, spectra are now calculated at a reference time (#14)Fix bug where user-specified halo models would not override v_0 (#14)Fix tests for numpy 1.24 (#15)0.4.1 (2022-09-01)Restore python 3.7 compatibility (#13)0.4.0 (2022-08-14)Fixes for alternate materials (#7)Update notebooks, continuous integration tests (#9)0.3.2 (2019-11-24)Fix technical release issue0.3.1 (2019-11-24)Alternate materials for SI scattering (#4)Faster J200 timestamp conversion (#5)0.3.0 (2019-07-22)Flexible halo model (#3)DM form factor choice for DM-electron scattering0.2.2 (2019-03-27)DM-electron scattering0.2.1 (2019-03-23)Fix package data specification0.2.0 (2019-03-23)Annual modulation (#2)Migdal effectConfigurable mediator massResistance to numericalunits.reset_units()Restructure as python package0.1 (2018-01-17)Initial release
Package: win10batteryoptimizer
##Battery OptimizerAn easy-to-use Python library for maintaing the optimal battery life for windows 10.## Installation```pip install win10batteryoptimizer```## Requirements### Installation of pywin32```pypiwin32setuptoolstimewin10toast```## Example```from win10batteryoptimizer import Notifiernotifier = Notifier()battery_percent = notifier.get_battery_level()battery_line_status = notifier.get_battery_line()while ((int)(battery_percent>80) and (int)(battery_line_status)):notifier.create_plug_out_toast()time.sleep(600)while ((int)(battery_percent<40) and (int)(battery_line_status)==0):notifier.create_plug_in_toast()time.sleep(600)while ((int)(battery_percent)>39 and (int)(battery_percent)<81):time.sleep(600)```
Package: win10ctypestoast
Windows-10-Toast-Notifications without pywin32 dependencypip install win10ctypestoastTested against Windows 10 / Python 3.10 / AnacondaBasically the same ashttps://github.com/jithurjacob/Windows-10-Toast-Notificationsbut without pywin32 dependency.fromwin10ctypestoastimportshow_toastshow_toast(title="Title",message="Message",icon=r"C:\Users\hansc\Pictures\numberresults.png",duration=1,repeat=2,pause=2,threaded=False,)show_toast(title="Title",message="Message",icon=r"C:\Users\hansc\Pictures\numberresults.png",duration=2,repeat=2,pause=1,threaded=True,)
Package: win10toast
# Windows 10 Toast NotificationsAn easy-to-use Python library for displaying Windows 10 Toast Notifications which is useful for Windows GUI development.![o7ja4 1](https://cloud.githubusercontent.com/assets/7101452/19763806/75f71ba4-9c5d-11e6-9f16-d0d4bf43e63e.png)[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjithurjacob%2FWindows-10-Toast-Notifications.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjithurjacob%2FWindows-10-Toast-Notifications?ref=badge_shield)## Installation```pip install win10toast```## Requirements### Installation of pywin32```pypiwin32setuptools```## Example```from win10toast import ToastNotifiertoaster = ToastNotifier()toaster.show_toast("Hello World!!!","Python is 10 seconds awsm!",icon_path="custom.ico",duration=10)toaster.show_toast("Example two","This notification is in it's own thread!",icon_path=None,duration=5,threaded=True)# Wait for threaded notification to finishwhile toaster.notification_active(): time.sleep(0.1)```## License[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjithurjacob%2FWindows-10-Toast-Notifications.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjithurjacob%2FWindows-10-Toast-Notifications?ref=badge_large)
Package: win10toast-click
win10toast-clickAn easy-to-use Python library for displaying Windows 10 Toast Notifications. Improved version ofwin10toastandwin10toast-persistto includecallback_on_clickto run a function on notification click, for example to open a URL.Context1:Original module.2:Tweaked version with support for notifications that persist in the notification center.This forkis an improved version of 2 ^ withcallback_on_clickthat allows to run a function on notification click, for example to open a URL.Installationpip install win10toast-clickExample# modulesimportwebbrowserfromwin10toast_clickimportToastNotifier# functionpage_url='http://example.com/'defopen_url():try:webbrowser.open_new(page_url)print('Opening URL...')except:print('Failed to open URL. Unsupported variable type.')# initializetoaster=ToastNotifier()# showcasetoaster.show_toast("Example two",# title"Click to open URL! >>",# messageicon_path=None,# 'icon_path'duration=5,# for how many seconds toast should be visible; None = leave notification in Notification Centerthreaded=True,# True = run other code in parallel; False = code execution will wait till notification disappearscallback_on_click=open_url# click notification to run function)Release History0.1.2: Prepared for distribution on Python Package Index (PyPI).0.1.1: Renamed repo.0.1: Initial release.VersioningUsingSemVer.LicenseGNU General Public License v3.AcknowledgementsOriginal moduleswin10toastwin10toast-persistStack Overflowclick Windows 10 notification to open URLPackaging & distributionPackaging Python ProjectssetuptoolsQuickstartData Files SupportConfiguring setup() using setup.cfg filespypa packaging-problemsIconFlaticon / Freepik
Package: win2xcur
win2xcurandx2wincurwin2xcuris a tool that converts cursors from Windows format (*.cur,*.ani) to Xcursor format. This allows Windows cursor themes to be used on
Linux, for example.win2xcuris more than a simple image conversion tool. It preserves the cursor
hotspot and animation delay, and has an optional mode to add shadows that
replicates Windows's cursor shadow effect.x2wincuris a tool that does the opposite: it converts cursors in the Xcursor
format to Windows format (*.cur,*.ani), allowing to use your favourite
Linux cursor themes on Windows.InstallationTo install the latest stable version:pip install win2xcurTo install from GitHub:pip install -e git+https://github.com/quantum5/win2xcur.gitUsage:win2xcurFor example, if you want to convertthe sample cursorto Linux format:mkdir output/
win2xcur sample/crosshair.cur -o output/-scan be specified to enable shadows.
Multiple cursors files can be specified on the command line.
For example, to convert a directory of cursors with shadows enabled:win2xcur input/*.{ani,cur} -o output/For more information, runwin2xcur --help.Usage:x2wincurFor example, if you want to convert DMZ-White to Windows:mkdir dmz-white/
x2wincur /usr/share/icons/DMZ-White/cursors/* -o dmz-white/Troubleshootingwin2xcurandx2wincurshould work out of the box on most systems. If you
are using unconventional distros (e.g. Alpine) and are getting errors related
towand, please see theWand documentation on installation.
Package: win32fastutils
win32fastutilsCollection of win32 related utils.Installed Utilswin32fastutils.consoleutilsResetableAttachConsoleReadConsoleOutputTextwin32fastutils.guiutilsPostMessageGetHwndsByProcessIdsGetExplorerHwndsGetExplorerProcessIdswin32fastutils.py32fixiswin32DisableFileSystemRedirectionUsage ExamplesExample 1: Read console outputexamples/read_console_output.pyimport uuid
import time
import subprocess

from win32fastutils import consoleutils

CMD = "C:\\Windows\\System32\\cmd.exe"

msg1 = str(uuid.uuid4())
proc = subprocess.Popen([CMD, "/C", "echo", msg1, "&&", "timeout", "2"], creationflags=subprocess.CREATE_NEW_CONSOLE)
time.sleep(1)
result = ""
with consoleutils.ResetableAttachConsole(proc.pid):
    result = consoleutils.ReadConsoleOutputText()
print(result)result outputC:\workspace\win32fastutils>python examples\read_console_output.py
8a3d81ac-9f59-4066-8206-86cee8101f8c <Note: a lot of space here....>

等待 1 秒，按一个键继续 ...Example 2: Press ENTER to end the timeout waitingexamples/press_enter_to_end_time_timeout_waiting.pyimport uuid
import time
import datetime
import subprocess

from win32fastutils import guiutils

CMD = "C:\\Windows\\System32\\cmd.exe"

print("start", datetime.datetime.now())
msg1 = str(uuid.uuid4())
proc = subprocess.Popen([CMD, "/C", "echo", msg1, "&&", "timeout", "20"], creationflags=subprocess.CREATE_NEW_CONSOLE) # wait for 20 seconds
time.sleep(1)
hwnds = guiutils.GetHwndsByProcessIds(proc.pid)

guiutils.PostMessage(hwnds[0], "\n") # press ENTER to end the timeout waiting
proc.wait()
print("end  ", datetime.datetime.now())result outputC:\workspace\win32fastutils>python examples\press_enter_to_end_the_timeout_waiting.py
start 2022-02-17 17:01:15.115822
end   2022-02-17 17:01:16.210102Example 3: Using 32bit-version-python  in 64bit-version-windows, we can NOT access files under folder C:\Windows\System32, How to fix the problem?import os
from win32fastutils import py32fix

SSH = "C:\\Windows\\System32\\OpenSSH\\ssh.exe"

print("Access directly result:", os.path.exists(SSH))

with py32fix.DisableFileSystemRedirection():
    print("Access in fixed scope: ", os.path.exists(SSH))result outputC:\workspace\win32fastutils>python examples\32bit_python_access_application_under_system.py
Access directly result: False
Access in fixed scope:  TrueReleasesv0.1.0First release.v0.1.1Add psutil in requirements.txt.
Package: win32material
win32styleApply some window effects to the Win32 ApplicationsInstallationpip install win32material>=0.0.2GalleryChangeTitlebarColor(hwnd,"#111111")ChangeBorderColor(hwnd,"#114514")ChangeTitleColor(hwnd,"#745616")SetBorderType(hwnd,BORDERTYPE.RECTANGULAR)SetBorderType(hwnd,BORDERTYPE.ROUND)SetBorderType(hwnd,BORDERTYPE.SMALLROUND)
Package: win32mica
Win32mica: A simple module to add the Mica effect and enable immersive dark mode on Python UI WindowsThe aim of this project is to apply the Mica effect and enable immersive dark mode on python applications made with Python, like Tkinter, PyQt/PySide, WxPython, Kivy, etc.This will work on any windows version, including the new released dev builds where the mica API is public.View this project onPyPiView this project onGitHubInstallation:python-mpipinstallwin32micaRequirements:Windows 11A window set to not have a transparent background and to have extended composition enabled* (It might work with other settings, but nothing is guaranteed.)The hWnd (identifier) of that window. More info:what is a hWnd?OPTIONAL: The window must have semi-transparent widgets/controls in order to recreate the transparency effect on the controls.OPTIONAL: Know if Windows has dark or light mode enabled. This can be checked with thedarkdetectmoduleUsage:#######################################################################                                                                    ## Those examples are oversimplified, please see the examples/ folder ## for detailed usage with each UI library.                           ##                                                                    #######################################################################hwnd=window.winId().__int__()# Get the hWnd of your windowfromwin32micaimportApplyMica,MicaTheme,MicaStylemode=MicaTheme.DARK# Dark mode mica effectmode=MicaTheme.LIGHT# Light mode mica effectmode=MicaTheme.AUTO# Apply system theme, and change it if system theme changesstyle=MicaStyle.DEFAULT# Default backdrop effectstyle=MicaStyle.ALT# Alt backdrop effectdefcallbackFunction(NewTheme):ifnewTheme==MicaTheme.DARK:print("Theme has changed to dark!")else:print("Theme has changed to light!")win32mica.ApplyMica(HWND=hwnd,Theme=mode,Style=style,OnThemeChange=callbackFunction)#    Parameters#    ----------#    HWND : int#        The handle to the window on which the effect has to be applied#    Theme : MicaTheme, int#        The theme of the backdrop effect: MicaTheme.DARK, MicaTheme.LIGHT, MicaTheme.AUTO#    Style : MicaStyle, int#        The style of the mica backdrop effect: MicaStyle.DEFAULT, MicaStyle.ALT#    OnThemeChange : function#        A callback function that receives one parameter to call when the system theme changes (will only work if Theme is set to MicaTheme.AUTO)#        The passed parameter will be either MicaTheme.DARK or MicaTheme.LIGHT, corresponding to the new system themeYou can check out theexamples folderfor detailed use in Tk and PySide/PyQt.Result:Those are PySide2 windows with custom widgets.
Package: win32path
Win32PathThe library is useful for managing and organizing file paths in a Windows environment.Table of ContentsAboutGetting StartedInstallingfrom Pypifrom Github :UsageAuthorsAboutThewin32pathlibrary is a simple Python library that
provides CRUD (Create, Read, Update, Delete) methods for managing file paths
on a Windows operating system. It stores the paths in a JSON file located at%APPDATA%/Local/win32path/paths.jsonand allows the user to easily add,
retrieve, update and delete file paths using the provided methods. The library
is easy to use and can be imported and used in any Python project.Getting StartedHere is a list of each class and method, along with their docstrings in English:obj.list_paths(): Returns a list of all the registered paths.obj.get_path(key): Returns the path associated with the specified key.obj.set_path(key, value): Save the specified path for the specified key.obj.update_path(key, value): Updates the path associated with the specified key.obj.delete_path(key): Removes the path associated with the specified key.Installingfrom Pypipip install win32pathfrom Github :pip install git+https://github.com/Emericdefay/win32pathUsage# define object>>>path=Win32Path()>>>the_key='key'>>>the_path='C:\\Users\\...\\Desktop'# set a path>>>path.set_path(the_key,the_path)# get a path>>>path.get_path(the_key)'C:\\Users\\...\\Desktop'# get all paths>>>win32path.list_paths(){'key':'C:\\Users\\...\\Desktop'}# update path>>>new_path='C:\\Users\\...\\Downloads'>>>path.update_path(the_key,new_path)# delete path>>>path.delete_path(the_key)Authors@Emericdefay- Idea & Initial workSee also the list ofcontributorswho participated in this project.