Saravanan666/pypi-org huggingface dataset:
Package: wintoast
Windows Toast NotificationsInstallationpip install wintoastRequirementsInstallation of pywin32pypiwin32
setuptoolsExamplefrom wintoast import ToastNotifier
toaster = 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 finish
while toaster.notification_active(): time.sleep(0.1)
Package: win-tor-resources
win-tor-resourcesThis package provide all important tor binary for windows. like:- tor.exe , geoip, geoip6 etc.Disclaimer:-Use it only for educational purpose.Installationpipinstallwin-tor-resourcesQuickstartImport withfrom win_tor_resources import *orfromwin_tor_resourcesimporttor_path,tor_geo_ip_file_path,tor_geo_ipv6_file_pathPass this paths in your tor(stem) projects.
Package: win_unc
win_uncA Python library for handling UNC paths on Windows.With this library you canConnect UNC directories to your Windows sessionConnect UNC directories requiring authorization
by providing credentialsMount UNC directories (with or without credentials)
to a local mount pointDisconnect/unmount UNC connectionsQuery existing UNC connections known by the
Windows sessionFull documentation is athttp://covenanteyes.github.com/py_win_uncReport any issues on the package’s GitHub page:http://github.com/CovenantEyes/py_win_uncInstallationTo install:$ pip install win_uncSneak PreviewBelow is a simple example:from win_unc import UncDirectoryMount, UncDirectory, DiskDrive

conn = UncDirectoryMount(UncDirectory(r'\home\shared'), DiskDrive('Z:'))
conn.mount()
print 'Drive connected:', conn.is_mounted()
conn.unmount()You can also provide credentials like this:from win_unc import UncCredentials

unc = UncDirectory(r'\home\shared', UncCredentials('user', 'pwd'))
conn = UncDirectoryMount(unc, DiskDrive('Z:'))Or just connect the path without mounting it:from win_unc import UncDirectoryConnection

conn = UncDirectoryConnection(r'\home\shared')
conn.connect()
Package: winunlock
winunlockwinunlockis a Windows Python module that provides functionality for opening certain types of locked files in Windows, especially the ones that are usually inaccessible due to external locks (e.g. an Excel file being locked by OneDrive). The module exposes two utilities:winunlock.openmimics Python's built-inopenbut is capable of accessing locked files, andwinunlock.monkeypatch_openare used to monkey patch Python's built-inopento allow reading locked files.InstallationpipinstallwinunlockUsageBasic open:importwinunlock# winunlock.open has the same interface as openwithwinunlock.open("locked_file_path.txt","r")asf:content=f.read()Monkey patching:fromwinunlockimportmonkeypatch_openimportpandasaspdwithmonkeypatch_open():# open has been temporarily patchedwithopen("locked_file_path.txt","r")asf:content=f.read()# external code can now read locked files by defaultpd.load_csv("locked_file_path.txt")TestingThe testing framework used isunittest. The tests are currentlydependent on a working Excel installation. You can run the tests by executing the provided test script:pythontests.pyIn order to test full compatibility with Python'sopen, more tests are needed.LimitationsWhilewinunlockis designed to handle locked files gracefully, there are certain intense locks (as demonstrated in one of the tests) that it might still not be able to handle.ContributingContributions to improvewinunlockor expand its functionalities are welcome. Please ensure that you include unit tests for any new features or changes.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.Documentationwinunlock.opendefopen(file,mode='r',buffering=-1,encoding=None,errors=None,newline=None,closefd=True,opener=None):passThis function is a drop-in replacement for Python's built-in open, designed to work with locked files.Parameters:All parameters are the same as the built-in open.winunlock.monkeypatch_open@contextlib.contextmanagerdefmonkeypatch_open():passThis context manager monkey patch Python's built-inopenfunction in order to try to open a file viawinunlock.openafteropenthrows aPermissionError. After using the context manager, the built-in open will return to its normal functionality once out of the context.
Package: winuserfolder
Makes it easier to access Documents/Pictures/Desktop/Music/Videos/Downloadsfromwinuserfolderimport*print(get_desktop_folder_path())print(get_documents_folder_path())print(get_downloads_folder_path())print(get_music_folder_path())print(get_pictures_folder_path())print(get_videos_folder_path())a=create_folder_in_documents_folder("00testestest")b=create_folder_in_pictures_folder("00testestest")c=create_folder_in_desktop_folder("00testestest")d=create_folder_in_music_folder("00testestest")e=create_folder_in_videos_folder("00testestest")f=create_folder_in_downloads_folder("00testestest")a1=touch_file_in_documents_folder(relative_path="00testestest\\xxx\\myfile.txt")b1=touch_file_in_pictures_folder(relative_path="00testestest\\xxx\\myfile.txt")c1=touch_file_in_desktop_folder(relative_path="00testestest\\xxx\\myfile.txt")d1=touch_file_in_music_folder(relative_path="00testestest\\xxx\\myfile.txt")e1=touch_file_in_videos_folder(relative_path="00testestest\\xxx\\myfile.txt")f1=touch_file_in_downloads_folder(relative_path="00testestest\\xxx\\myfile.txt")
Package: winux
#WinuxIntegration of some Linux terminal commands for Windows Command Prompt.This CLA is in costant update with new command.Warning! Installing this library in a Linux OS or in a OS X (mac) machine may cause system commands overriding,  which could become a serious problem. The code is ment to not work in non-Windows systems, but in Unix OSes it could  overwite and"hide" the commands it provides.Installation:$ pip install winuxThis Command Line Application allows to use Linux terminal commands in Windows Command Prompt.Integrated commands:Linux        Windows              Function

$ clear         (cls)               Clear terminal window

$ ls            (dir)               Show directory content

$ mv            (move)              Move a file into another directory, or rename it

$ cp            (copy)              Copy a file into another directory

$ rm            (del)               Remove a file

$ rm -rf        (rmdir)             Remove a directory

$ cat           (type)              Show file content

$ pwd           (chdir)             Shows current path

$ date          (time)              Shows date and time

$ nano          (edit)              Edit a file

$ mem           (free)              Display free space

$ kill          (taskkill)          Kill a process

$ man           (?/)                Shows help for commands

$ mkdir         (md)                Make a directory
Package: winval
winvalWorkflow inputs validation python libraryCurrently, supports WDL workflows.Constraints on inputs can be written as specially tagged (#@wv) comments in the WDL inputs section.The syntax of constraints is a python-similar DSL, with ANTLR defined grammar.The WDL + inputs.json can be validated using a script/function before submitting a workflow.Installation:pip install winvalUsage:validate_wdl_constraintsFrom pythonfrom winval.validate_wdl_constraints import run_winval
is_validated = run_winval(wdl_file, json_file)From unix command-line:python winval/validate_wdl_constraints.py --wdl <wdl_file> --json <json_file>cloud_files_validaterMake sure google-storage permissions are equivalent to the batch workers permissionsFrom pythonfrom winval.cloud_files_validator import CloudFilesValidator
is_validated = CloudFilesValidator(args.wdl, args.json).validate()From unix command-line:python winval/cloud_files_validator.py --wdl <wdl_file> --json <json_file>WDL constraints exampleworkflow MyWorkflow {

  input {
    File file
    Int c
    File* opt_file_1
    File* opt_file_2
    Array[File] files
    Array[File] index_files
    MyStruct struct_instance

    #@wv defined(opt_file_1) <-> defined(opt_file_2)
    #@wv defined(opt_file_1) -> c > 1
    #@wv len(files) == len(index_files)
    #@wv len(files) >= 0
    #@wv len(index_files) >= 0
    #@wv c <= 1 and c >= 0
    #@wv suffix(file) == ".fasta"
    #@wv suffix(files) <= {".bam", ".cram"} 
    #@wv prefix(index_files) == files
    #@wv len(struct_instance['field_a']) > 0
  }
  ...
}
  
  struct MyStruct{
     String field_a,
     String field_b
  }Generate parsers from grammar:cd <project_root>/winval
antlr4 -Dlanguage=Python3 winval.g4 -visitor -o antlrAvailable atomic expressions:int: 5float: 5.6bool: True, Falsestr: "some string", 'some_string'workflow_variable: my_varevaluates to value given by json conf, or None if not defined in jsonempty_set: {}Available python operators+,-,*,**,/,&,|,%and,or,in<,<=,==,>=,>,!=Notice the following useful operators work for sets:-: set subtraction&: set intersection|: is set union<=:  subsetAvailable python functionslen(),not()basename(),splitext()(from os.path)Available convenience functions and operators:x <-> y: if-and-only-if logical operator (if x is true if and only if y is true)x -> y: implies logical operator (if x is true then y should be true)defined(x): if x a defined variableprefix(x): return path prefix of String/File or list of prefixes forsuffix(x): return path suffix of String/File or set of suffixes for Array[String]/Array[File]
Package: winvers
winversDefinitive Windows version checker for PythonThis module providesA list of Windows versions constants (comparable between them)A function to get the Windows OS version running on the machineCompatibilityPython 2.7.xPython 3.x and newerConstants listNO_WIN
WIN_10_19H2
WIN_10_19H1
WIN_10_1809
WIN_10_1803
WIN_10_1709
WIN_10_1703
WIN_10_1607
WIN_10_1511
WIN_10_1507
WIN_10
WIN_8_1
WIN_8
WIN_7_SP1
WIN_7
WIN_VISTA_SP1
WIN_VISTA
WIN_XP_X64_SP2
WIN_XP_X64_SP1
WIN_XP_X64
WIN_XP_SP3
WIN_XP_SP2
WIN_XP_SP1
WIN_XP
WIN_2000
WIN_SERVER_2016_1709
WIN_SERVER_2016_1607
WIN_SERVER_2016
WIN_SERVER_2012_R2
WIN_SERVER_2012
WIN_SERVER_2008_R2
WIN_SERVER_2008
WIN_SERVER_2003_SP2
WIN_SERVER_2003_SP1
WIN_SERVER_2003Exampleimport winvers

if winvers.get_version() >= winvers.WIN_VISTA:
    print('Your OS is newer than Windows XP')

if winvers.get_version() >= winvers.WIN_10:
    print('Your OS is Windows 10')Sourceshttps://docs.python.org/2/library/sys.html#sys.getwindowsversionhttps://docs.python.org/3/library/sys.html#sys.getwindowsversionhttps://en.wikipedia.org/wiki/Windows\_10\_version\_historyhttps://en.wikipedia.org/wiki/Windows\_Server\_2016#Version\_historyhttps://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
Package: winwifi
winwifiA Wi-Fi CLI tool for Windows.
It allows you to scan Wi-Fi Access Points without being an admin to disable and enable the Wi-Fi interface.Checkpipxfor installing as a standalone executable utility.Installationpip install winwifiUsagewifi 0.0.5

A Windows Wi-Fi CLI

Usage:
    wifi [SWITCHES] [SUBCOMMAND [SWITCHES]] args...

Meta-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits

Subcommands:
    connect            Connect to a specific access point; see 'wifi connect --help' for more info
    connected          Show the current connected Wi-Fi SSID; see 'wifi connected --help' for more info
    disconnect         Disconnect from a Wi-Fi access point; see 'wifi disconnect --help' for more info
    forget             Remove speicifc access points from the historical list; see 'wifi forget --help' for more info
    history            List the historical Wi-Fi access points; see 'wifi history --help' for more info
    scan               Scan and list nearby Wi-Fi access points; see 'wifi scan --help' for more info

wifi connect 0.0.5

Connect to a specific access point

Usage:
    wifi connect [SWITCHES] ssid [passwd='']

Hidden-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits

Switches
    --oneshot          Do not remember the connection


wifi connected 0.0.5

Show the current connected Wi-Fi SSID

Usage:
    wifi connected [SWITCHES]

Hidden-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits


wifi disconnect 0.0.5

Disconnect from a Wi-Fi access point

Usage:
    wifi disconnect [SWITCHES]

Hidden-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits


wifi forget 0.0.5

Remove speicifc access points from the historical list

Usage:
    wifi forget [SWITCHES] ssids...

Hidden-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits


wifi history 0.0.5

List the historical Wi-Fi access points

Usage:
    wifi history [SWITCHES]

Hidden-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits


wifi scan 0.0.5

Scan and list nearby Wi-Fi access points

Usage:
    wifi scan [SWITCHES]

Hidden-switches
    -h, --help         Prints this help message and quits
    --help-all         Print help messages of all subcommands and quit
    -v, --version      Prints the program's version and quits

Switches
    --refresh          Force to refresh the Wi-Fi AP list
Package: win-wildcard
win_wildcardExpand wildcards in shells of Windows using the dir or the Get-ChildItem command.Refer thehomepagefor sample.MotivationPython has aglobmodule that supports posix-spec wildcards, so it is possible to create scripts with wildcards available. However, for the reasons described below, glob's wildcard is not the same as expected on the Windows command line.The Windows shell leaves wildcard expansion to the command, so there is no standard way to expand wildcards.Wildcards of Get-ChildItem command of PowerShellWildcards of dir command of cmd.exeSome wildcards of cmd.exe are undocumented.Wildcards of Win32API FindFirstFileUndocumented WildcardsThere have been reports of user confusion due to wildcard specifications varying from command to command.Globbing patterns in windows command prompt/ powershellI thought it would be appropriate to provide a function that calls thedircommand orGet-ChildItemcommand and uses the result of expanding the wildcard.Such wildcard expansion would allow the user to run the dir or Get-ChildItem command to see what files are specified before executing the script.
Package: winz-simple-webframework
my simple python framework is in developmentBefore run the framework install all packages:pip install -r requirements.txtStarting simple frameworkrun commandgunicorn app:app --bind 127.0.0.1:8010"--bind" helps to start localhost with port 8010,
you can change port, if it already is usedHere are the links, that are implemented:http://127.0.0.1:8010/homehttp://127.0.0.1:8010/abouthttp://127.0.0.1:8010/hello/yournamehttp://127.0.0.1:8010/tell/100http://127.0.0.1:8010/bookshttp://127.0.0.1:8010/samplehttp://127.0.0.1:8010/templatehttp://127.0.0.1:8010/jsonhttp://127.0.0.1:8010/textUnit testsrun commandpytest test_framework.pyfor coverage percentage:pytest --cov=. test_framework.pyJust testing WSGI filesrun commandpython WSGI.pyin framework dir and openhttp://localhost:8005/for reversed response:
run commandpython WSGI_reverse.pyin framework dir and openhttp://localhost:8006/
Package: wio-cli
===============================Wio Link Command Line Toolset===============================.. image:: https://img.shields.io/badge/pypi-0.3.2-green.svg:target: https://pypi.python.org/pypi/wio-cli/:alt: Latest VersionCLI is used to add WioLink and WioNode, list the Wio device and so on.Getting Started===============**Note:** If can't find the USB device, should be install USB to Serial driver first, `download here`_.. _download here: https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspxWio Link Client can be installed from PyPI using pip::$ pip install wio-cliOn Python3, use virtualenv to install::$ virtualenv -p python2 env2$ source env2/bin/activate$ pip install wio-cli$ wio --versionIf you have already installed the library, execute the following command to ensure you’re using the latest library::pip install wio-cli --upgradeA list of global options and supported, commands is shown with ``--help``::$ wio --helpMore info, that can be used to get help text for a specific command::$ wio <command> --helpGetting Started with Wio Link Command Line Toolset: http://www.seeedstudio.com/recipe/1136-getting-started-with-wio-link-command-line-toolset.html)Command==========Login with your Wiolink account::$wio loginAdd a new device with USB connect::$ wio setupLogin state::$ wio stateexample:$ wio stateemail: xxx@xxx.xxtoken: 4LxiwvwFAw3C7LiiUQiZh6qOj44tV6KGsXyjp3jVzxxmserver: https://iot.seeed.ccmserver_ip: 45.79.4.239Displays a list of your devices and their APIs::$ wio listexample:$ wio list|-- home (online)|-- sn: e3d0dccd4587f40a5d6ffda236755aa4|-- token: ce140e79f24717ed7d6d44bfb5d848b2|-- resource url: http://192.168.21.115:8080/v1/node/resources?access_token=ce140e79f24717ed7d6d44bfb5d848b2|-- well_known:|-- GET /v1/node/GroveTempHumProD0/humidity -> float humidity|-- GET /v1/node/GroveTempHumProD0/temperature -> float celsius_degree|-- GET /v1/node/GroveTempHumProD0/temperature_f -> float fahrenheit_degreeRequest api, return json::$ wio call <token> <method> <endpoint>example:$ wio call c74a110c2e397823f0ce53ef669d5b7f  GET /v1/node/GroveMoistureA0/moisture{u'moisture': 0}Delete a device::$ wio delete <device_sn>example:$wio delete 2885b2cab8abc5fb8e229e4a77bf5e4d>> Delete device commplete!Config your device setting::$wio config --debug [on|off], enable/disable wio debug$wio config --get-debug, get wio debug statusSerial port permissions==========1. now as normal user from terminal:$ ls -l /dev/ttyUSB*you will get something like:crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyUSB0The "0" might be a different number, or multiple entries might be returned. In the first case the data we need is "uucp", in the second "dialout" (is the group owner of the file.2. Now we just need to add our user to the group:$ sudo usermod -a -G group-name usernamewhere group-name is the data found before, and username is your linux user name. You will need to log out and in again for this change to take effect. such as:$ sudo usermod -a -G dialout tengwang
Package: wipac-keycloak-rest-services
keycloak-rest-servicesServices surrounding Keycloak, that use the REST API to read/update state.Running TestsThe tests run automatically in CircleCI, but for those that want to run them
locally, there is a way.First, build and load the local python environment:./setupenv.sh
. env/bin/activateThen, start instances of Keycloak, LDAP, and RabbitMQ in other terminals:./resources/start-keycloak.sh
./resources/start-ldap.sh
./resources/start-rabbitmq.shKeycloak may take a minute to start. If it does not, check your network settings,
as it does not play well with VPNs and other more exotic network situations.Finally, run the tests:source ./resources/pytest-env.sh
pytestGetting Test CoverageIf you want a coverage report, instead of running pytest directly, run it
under the coverage tool:keycloak_url=http://localhost:8080 username=admin password=admin coverage run -m pytest
coverage html --include='krs*'Manually Running ScriptsIt is possible to manually run all of the basic operations for controlling users
and groups.Bootstrap KeycloakIf you do not already have a Keycloak instance, start a test instance as shown above.
Then, run the bootstrap script to create a realm and the REST service account:keycloak_url=http://localhost:8080username=adminpassword=adminrealm=testpython3-mkrs.bootstrapSave theclient_secretthat gets printed, as you will need this.User and group actionsNow you can actually run the scripts, which take the format:keycloak_url=http://localhost:8080client_id=rest-accessclient_secret=<SECRET>realm=testpython-mkrs.<SCRIPT><ARGS>As an example, to list all groups:keycloak_url=http://localhost:8080client_id=rest-accessclient_secret=<SECRET>realm=testpython-mkrs.groupslist
Package: wipac-telemetry
wipac-telemetryWIPAC Telemetry: Monitoring/Tracing Applications, Supporting Infrastructures, and ServicesTracing ToolsConfigurationMost of the major functionality is configurable via environment variables.Traces are not exported by default.Environment VariablesNameType/OptionsDescriptionNull CaseExample & NotesOTEL_EXPORTER_OTLP_ENDPOINTstringaddress of collector serviceno traces exportedhttps://my.url.aq/traces/go/hereWIPACTEL_EXPORT_STDOUTTrueorFalsewhether to print the tracesno traces printedWIPACTEL_LOGGING_LEVELdebug,info, etc.minimum logging level for WIPACTEL actionswarning(or root logger's level if that's higher)WIPACTEL_SERVICE_NAME_PREFIXstringprefix for the tracing service's name""mou(results in a service called "mou/server" instead of just "server")Running with Local Collector Service UI (Jaegar)cd examples/telemetry-server/jaeger-production && ./start-jaeger-production.shOpen new terminal:export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318/v1/tracesRun script(s) and/or module(s)Go tohttp://localhost:16686/
Package: wipe-clean
Wipe CleanClear your terminal in afunway. Works on Windows, Linux and macOS.0-dependency.Install•Usages•Advanced usages•Roadmap•Related projectsInstallInstall with pip:pipinstallwipe-cleanwipe-cleancurrently requires Python 3.6.1 and above. Note that Python 3.6.0 is
not supported due to lack ofNamedTuplestyping.UsagesJust:wipe-cleanUse-h, --helpto show all available optionswipe-clean-hAdvanced usages1. Use APIYou can use wipe-clean inside your project.fromwipe_clean.mainimportcliaswc_cliwc_cli()# Or with argumentswc_cli('--frame-interval=0.005','--min-frame-delay=0')2. CustomizationIt's possible to design your own brush shape and animation.Example brushTo create a new brush type, implement theBrushinterface, e.g.fromwipe_clean.brushimportBrush,ScreenPointDrawing,ScreenPointasPclassWipe2x2(Brush):defget_points(self,x,y,angle)->List[ScreenPointDrawing]:return[ScreenPointDrawing(P(x,y),'#'),# noqa: E202,E203ScreenPointDrawing(P(x+1,y),'#'),# noqa: E202,E203ScreenPointDrawing(P(x,y+1),'#'),# noqa: E202,E203ScreenPointDrawing(P(x+1,y+1),'#'),]This will define a brush like this:##
##Example pathSimilarly, you can implement thePathinterface to create a new brush path.importmathfromwipe_clean.pathimportPath,PathPoint,ScreenPointasPclassMySimplePath(Path):defget_points(self)->Iterable[PathPoint]:return[PathPoint(P(10,10),math.radians(45)),PathPoint(P(20,5),math.radians(0)),PathPoint(P(40,20),math.radians(90)),]RoadmapSeeDEVELOPMENT.mdRelated projectsJeanJouliaCode/wipeclean- JavaScript versionThe first brush type (BrushWipe) and path animations (PathZigZag,PathRectEdge) are direct ports
ofJeanJouliaCode/wipeclean. Credits go to JeanJouliaCode!Textualize/rich-An inspiring textual UI library