Saravanan666/pypi-org huggingface dataset:
Package: wsl-pathlib
wsl-pathlibExtendpathlib.Pathby addding the propertieswsl_pathandwin_paththat holds respectively the  WSL (Windows Subsystem for Linux) and Windows representation of thePathobject.FeaturesLazy loading of the wsl_path and win_path properties on first access.BasePathobject remains fully functional.Obviously works on both WSL and Windows side.LimitationsOnly works for the windows drives, (paths living in the wsl's'/mnt/'mount point) so'/home/'won't work for example.Installationpipinstallwsl-pathlibUsagefromwsl_pathlib.pathimportWslPath# Running on WSLwsl_p=WslPath("C:\\foo")print(wsl_p)# => '/mnt/c/foo'print(wsl_p.exists())# => Trueprint(wsl_p.win_path)# => 'C:\foo'wsl_p2=wsl_p/"file.txt"print(wsl_p2.win_path)# => 'C:\foo\file.txt'LicenseMITCreditsThis project was generated withwemake-python-package. Current template version is:465848d4daab031f9be6e334ef34af011c2577bc. See what isupdatedsince then.
Package: wslpath-python
wslpath-pythonThis is a simple Python wrapper aroundwslpathcommand found inWindows Subsystem for Linux(WSL) environment.This package contains a single functionwslpaththat calls thewslpathcommand with appropriate arguments.RequirementsTha package has no additional requirements. Developed and tested in Python 3.9, but it should work in Python 3.5 and above.InstallationThis package can be installed using pippipinstallwslpath-pythonExample usage>>>fromwslpathimportwslpath>>>>>>wslpath(r'C:\Users\macie')'/mnt/c/Users/macie'>>>>>>frompathlibimportPath>>>wslpath(Path(r'C:\Users\macie'))PosixPath('/mnt/c/Users/macie')>>>>>>wslpath('.')'.'>>>wslpath('.',force_absolute_path=True)'/mnt/c/Users/macie/'
Package: wslpy
wslpywslpyis far from complete. the API will change frequently.This is a Python3 library for WSL specific tasks, and you can use it to do something amazing:>>>importwslpyaswp>>>wp.is_wsl()True>>>wp.exec.cmd('ver')MicrosoftWindows[Version10.0.18219.1000]>>>wp.convert.to('/mnt/c/Windows/')'c:\\Windows\\'>>>Installationyou can install from pypi usingpip install wslpy, or install from source usingpython3 setup.py installLicenseThis project usesGPLv3License.
Package: wsl-tray
wsl-traywsl-tray is a lightweight Windows tray application for easily managing WSL 2 VMs.Whenever you need to conveniently terminate all WSL 2 VMs to free resources from the system, or just start a random distribution for a one-liner test, wsl-tray is your friend.FeaturesRight-click from the system tray to get the only menu of this application.Click on any WSL distribution to toggle its status (Running <-> Stopped).Click on "Shutdown/Terminal All" to quickly free resources from WSL 2.RequirementsWindows OnlyWSL 2 OnlyPython 3.7+ if you are installing from PyPIGet the AppDownload the BinaryHead toReleaseto download the latest release version.Put a link to the file to Startup so it can quietly start with the system.Install from PyPIAlternatively, if you already have Python 3.7+ installed, usepipto install wsl-tray.pipinstallwsl-trayCreditssystrayportion of the code was imported frominfinidat/infi.systraywith some small modifications.Icons made byPixel perfectfromFlaticon.ChangelogCHANGELOGLicenseBSD3
Package: wslwinreg
Thewslwinregmodule is a drop in replacement for winreg for systems
running under Cygwin, MSYS2, or Windows Subsystem for Linux.Documentation is found athttps://wslwinreg.readthedocs.ioDoxygen generated documentation is found athttps://wslwinreg.readthedocs.io/en/latest/doxygenPython Packing Index (PyPI):https://pypi.python.org/pypi/wslwinregSource code and issue tracker:https://github.com/burgerbecky/wslwinregCompatibilityPython 2.7.1 or higherPython 3.4 or higherInstallationType inpip install-Uwslwinreg. Some platforms may require thesudoprefix.BugsIf you find a bug, issue or have a feature request, please submit a bug report
by emailingbecky@burgerbecky.comand mention python version, integer
size (32 bit or 64 bit) and what platform was used (Windows / MSYS2 / Cygwin /
Windows Subsystem for Linux).
Package: ws.mailcheck
This packages sends a test email via SMTP, and checks that it was received via
IMAP. Requires Python 3.x, since the stdlib in 2.x is missing too many features
in this area.UsageCreate a configuration file:[default]
recipient = test@example.com
smtp_host = smtp.example.com:25
imap_host = imap.example.com:143
imap_username = test@example.com
imap_password = secretNow runmail-check-roundtripexample.conf. It will send a message with a
random string in theX-Mailcheck-Tokenheader, and then poll untilreceive_timeoutto see if a message with that string was rececived (this
message is then deleted). The exit status is 0 if sucessful, 1 on errors (e.g.
connection failed) and 2 if the message could not be found.OptionsThe following configuration options are supported and these are their defaults:[default]
recipient = # REQUIRED
from = # defaults to recipient
headers = # default empty
    Subject: This is a test
    X-Custom-Header: one

smtp_host = localhost:25
smtp_ssl = starttls  # or `ssl` or `none` (not recommended)
smtp_username =
smtp_password =

imap_host = localhost:143
imap_ssl = starttls  # or `ssl` or `none` (not recommended).
imap_username = # REQUIRED
imap_password = # REQUIRED
imap_folder = INBOX

poll_timeout = 60
poll_interval = 10
poll_delete = true  # Delete the message after it was found
loglevel = WARNING  # This means no output for a successful run.CHANGES1.0.5 (2023-04-04)ChangesSwitch from setup.py to pyproject.toml (wheel)1.0.5 (2023-04-04)ChangesSwitch from setup.py to pyproject.toml (wheel)1.0.4 (2021-08-15)Reduce loglevel for smtp/imap errors to prevent stdout output.1.0.3 (2019-02-26)Catch smtp/imap errors and exit, so we don’t produce output on stdout (which
is annoying in cronjobs).1.0.2 (2018-04-08)Fix typo in console script name.1.0.1 (2018-04-07)Fix typo because smtplib.starttls hascontextand imaplib.starttls hasssl_contextas the kw name, sigh.1.0.0 (2018-04-07)First release.
Package: ws.mastodump
mastodumpIncremental export of mastodon posts and boosts to plain text,
meant for a periodic backup workflow.Usagepip install ws.mastodump
mastodump --user yourname@example.comThis will output all posts of the given user since the last time it was called.
(It stores the most recent post ID in~/.config/mastodump/last-seenand starts the query from there.)Example outputhttps://sueden.social/@wosc/109451158283053826 [2022-12-03 18:28:56.888000+00:00] <p>My recommendation for an android mastodon client goes to: twidere. It&#39;s the only one I&#39;ve found that you can customize so it fits a *reasonable* amount of timeline text on the screen (show the message actions only after longpress, use a light and not-huge font).</p>Changelog1.0.1 (2023-03-18)Fix brown-bag release1.0.0 (2023-03-18)Initial relase
Package: wsminer
wsminerMinecraft Python ScriptingThis library facilitates writing Python scripts to automate building in Minecraft.  Note that this does not work with realms or console based versions of Minecraft as they do not have the appropriate functionality.  Minecraft has a command to connect to a local server using a websocket connection.  To facilitate iterative development of build scripts, this library consists of a server remains connected to your Minecraft application and a library of commands to send to the server.  The server then relays the commands to the Minecraft application.To use this library.Start the server using the following command.  The server will print out a command that you should run within the Minecraft chat window.
python -m wsminer.serverStartup MinecraftConnect to the server using the command that was printed out by the server.  This should be run from the chat window.Write and run a Python script to connect to the server and send commands.importasyncioimportwsminerasyncdefmain():client=wsminer.Client()awaitclient.connect()awaitclient.build_pyramid(20,'glowstone')# await client.draw_cone(50, 'ice')# await client.draw_sphere(20, 'cobblestone')# await client.draw_image_nn("butterfly.png")asyncio.get_event_loop().run_until_complete(main())
Package: wsmprpc
# wsmpRPCPython msgpack RPC over websocket## FeaturesAsynchronousCompared to json, [msgpack](https://msgpack.org/) supportsbinary data.Client is able tocancellong running calculation on server.Supportsbidirectional streamingRPC, where the client sends/receives a sequence of messages to/from server within one RPC, similar to [gRPC](https://grpc.io/docs/tutorials/basic/python/).No need to define .proto files, thanks to python’s dynamic features, RPC methods defined on server side can be readily used by client as if it’s client’s own method.Easy integration into any async web frameworks that supportwebsocket.lib forjavascriptclient on web browsers.## Installpip install wsmprpc## Dependency:
[python](https://msgpack.org/) and [javascript](https://github.com/ygoe/msgpack.js) versions of msgpack## Examples
* [server_test.py](https://github.com/hyansuper/wsmprpc/blob/master/examples/server_test.py)
* [client_test.py](https://github.com/hyansuper/wsmprpc/blob/master/examples/client_test.py)
* [client_test.html (javascript client)](https://github.com/hyansuper/wsmprpc/blob/master/js/client_test.html)
Package: wsnasa
Library for use services of NASAInstall packagepip install wsnasaAfter installed package need does settings it for work.from wsnasa.config import ConfigConfig(token='TOKENNASA',storage=ClassStorage, connection_string='conn_str')ClassStorage - wsnasa.entity.storage*TokenGet keys can herehttps://api.nasa.gov/or use DEMO_KEYStorageClass <Storage*> implementes rule stores caches
Has second of classes: StorageMemory, StorageDatabase.If need use another class for storage use for implement of the interfacefrom wsnasa.entity.abclass.abcstorage import AbcStorage
Package: ws.nginxdbauth
This packages answers annginx auth subrequestby looking up the
user/password in a database (mysql, postgresql, whateversqlalchemysupports).UsageConfigure database accessYou’ll need to provide the DSN and the query using a configuration file:[default]
dsn = postgresql://localhost/myusers
query = SELECT password FROM users WHERE username = :username AND role = :x_required_role
password_hash = bcryptSee thesqlalchemy documentationfor supported DSNs. Note that you have to
install the respective driver python package (mysql-python,psycopg2,
etc.) yourself.Settings beginning withsqlalchemy.are stripped of that prefix and passed through tosqlalchemy.create_engine().The query gets passed as SQL parameters the basic authusernameandpasswordas well as any request headers (lowercase, and-replaced
with_). (If that is not flexible enough for your usecase, you’ll have to
run separate instances with specialized queries, for the time being).The query must return the hashed password of the user. Since for simple cases
you might get away with using the SQL functions provided by your database to
hash the password (e.g. mysqlWHEREpassword=encrypt(:password,password)),
but you can also specify any hash supported bypasslibas thepassword_hashto perform the comparison in Python (that’s why we need the
stored password hash from the database). You need topip install passlibto use this feature.Set up HTTP serviceThen you need to set up an HTTP server, either with a dedicated process:$ nginx-db-auth-serve --host localhost --port 8899 --config /path/to/configor as a CGI script, if you have infrastructure for that set up anyway.
Here’s an example apache configuration snippet to do this:ScriptAlias /nginx-auth /path/to/nginxdbauth/nginx-db-auth-cgi
<Location /nginx-auth>
  SetEnv NGINXDBAUTH_CONFIG /path/to/config
  CGIPassAuth On  # apache >= 2.4.13
  # SetEnv NGINXDBAUTH_LOGFILE /path/to/log  # optional, for debugging
</Location>Configure nginxNow you can set up a protected nginx location like this:location /private/ {
    auth_request /auth;
    # ... define rest of location ...
}

location = /auth {
    proxy_pass http://localhost:8899;  # or http://mycgi/nginx-auth
    proxy_pass_request_body off;
    proxy_set_header Content-Length "";
    proxy_set_header X-Required-Role "superuser";
    proxy_set_header WWW-Authenticate "Basic realm=\"my realm\"";
}TheWWW-Authenticateheader sent by nginx will simply be echoed back on 401
requests (since as far as I can tell, nginx does not provide another way to set the realm string in theauth_requestcase).CHANGES1.1.0 (2023-03-19)ChangesMake sqlalchemy options configurable (dbconfig)Connect to database once on startup, not for each request (dbconnect)Drop Python-2 support (py2)1.0.4 (2023-02-07)Update to sqlalchemy-21.0.3 (2022-05-04)Fix passlib import error1.0.2 (2018-03-28)Echo back the WWW-Authenticate header for 401 responses.1.0.1 (2018-03-28)Enable logging errors to a file for debugging the CGI script.1.0.0 (2018-03-27)First release.
Package: wsnotifier
Build Statuswsnotifier is a lightweightgeventbased
asynchronous websocket Server written in Python. wsnotifier exposes HTTP
APIs for forwarding the messages to the websocket clients. This makes it
easier to use the service with any web application. It’s completely
written in Python and doesn’t depend on external systems like Redis for
storing/retrieving messages.wsnotifier componentsInstallationYou can install usingpip$ pip install git+https://github.com/semk/wsnotifier.gitOr using docker$ docker pull semk/wsnotifierRunning wsnotifier server$ wsnotifier
Starting wsnotifier on ws://0.0.0.0:1729/alerts and http://0.0.0.0:1729/alertsOr using docker$ docker run -p 1729:1729 --rm -it semk/wsnotifier
Starting wsnotifier on ws://0.0.0.0:1729/alerts and http://0.0.0.0:1729/alertsConnecting to wsnotifier via a websocket clientwscatis a nice commandline websocket client. You can install it by$ npm install -g wscatConnect to the websocket server atws://0.0.0.0:1729/alerts$ wscat -c ws://localhost:1729/alerts
connected (press CTRL+C to quit)Posting messages to wsnotifier for forwarding to websocket clients.You can use any HTTP client to send the messages. This will be forwarded
to all the connected websocket clients asynchronously. A Python client
for wsnotifier is availablehere$ curl -X POST -H "Content-Type: application/json" -d '{"id": "unique-message-id", "type": "important", "message": "important message"}' http://0.0.0.0:1729/alerts
{"status": "success"}You can see the forwarded message appearing on thewscatclient
instantly.$ wscat -c ws://localhost:1729/alerts
connected (press CTRL+C to quit)
< {"message": "important message", "type": "important", "id": "unique-message-id"}
>
Package: wsnsimpy
SimPy-based WSN SimulatorWsnSimPy is a simulator for wireless sensor networks, modeling both
network-level messaging and full-stack communications.  It is written in Python
3 and built on top of theSimPysimulation framework.Installationpip install wsnsimpyRunning ExamplesExamples can be found in the directorywsnsimpy/examples, which can be started
directly from a command line.python -m wsnsimpy.examples.floodpython -m wsnsimpy.examples.aodv
Package: wsn-toolkit
wsn-toolkitis a Python module for simulation of Wireless Sensor NetworksInstallationDependencieswsn-toolkit requires:Python (>= 3.6)NumPy (>= 1.13.3)Some examples require Matplotlib >= 2.1.1.User installationusingpip:pip install -U wsn-toolkitorconda:conda install -c conda-forge wsn-toolkitSource codeYou can check the latest sources with the command:git clonehttps://github.com/edielsonpf/wsn-toolkit.gitTestingAfter installation, the test suite can be exeuted from outside the source
directory (you will need to havepytest>= 5.0.1 installed):pytest wsntk
Package: wso
wsoA package for working with VMWare Workspace ONE UEMPurposeProvides a Python interface for WSO UEMUsageGetting started is easy, first install the package usingpip install wsonext open an interactive python shellpython3fromwsoimportWSOWSO()This will start interactive config mode where you will be asked for the URL, username, password, tentant codeOnce you have setup your config you can query UEM for information. Check the examples directory for some examples of what you can do.WSO().system_info()
Package: ws-one
PDS (Port Data Splitter) - это программный разветлитель данных, реализованный в виде TCP сервера,
прослушивающего некоторый порт (USB, COM) и рассылающего эти данные своим клиентам (subscribers).Пример использования (Рассыльщик данных с USB на порту 2290 на Linux):
pds = PortDataSplitter(‘0.0.0.0’, 2290, port_name=’/dev/ttyUSB0’, debug=False, device_name=’USB listener’)1.4.0
Добавлен тестовый режим, при передаче test_mode=True, porDataSplitter не будет подключаться к порту, а будет
просто рассылать test_value (по умолчанию b’101010’)2.0.0
Подключен модуль GCSE (WITAPI)
Package: wsPerf
ContentsSupportDocumentationInstallationSee AlsoUnISOS Sub-LayerBISOSwsPerf Namespace: Web Services Performers (wsPerf) name base for a
collection of libraries and command modules for webServices.SupportFor support, ideas, suggestions, criticism, comments and questions;
please contact the author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationpip install wsPerfSee AlsoUnISOS Sub-Layerunisos unisos.ucf unisos.icm unisos.commonBISOSbisos bisos.common bisos.bases
Package: ws.plusfeed
plusfeed reads the activities of aGoogle Plususer and converts them into
an Atom feed.Get a Google PlusAPI key. This enables read-only access and does not sign
you into Google Plus.Install from PyPI withpip install ws.plusfeedRunplusfeedUSER-IDYOUR-API-KEYto create an atom feed.
(The USER-ID can be found by clicking around on Google Plus until you find
an URL that looks likehttps://plus.google.com/117962666888533781522).Example to get theCyanogenModfeed if you put your API key into~/.pluskey:$ plusfeed 117962666888533781522 `<~/.pluskey` > cyanogenmod.atomCHANGES1.1 (2014-02-22)Package as egg.1.0 (2011-11-19)First release, inspired byhttps://github.com/russellbeattie/plusfeed.
Package: wspr
wsprMumble client library.Free software: MIT licenseDocumentation:https://wspr.readthedocs.io.ProtocolMumbleProtoProtoBuffFeaturesTODOArchitectureCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.HistoryCurrentData structure for user data.Data structure for channel data.Data structures for events from server.Data structure for tasks received by whisper.Data structure for blobs.More possible exceptions.Incoming packet converter.Logger.0.0.3 (2018-10-02)Server connection.Architecture diagrams.Main process.Address data structure.Credentials data structure.Basic exceptions.0.0.2 (2018-09-27)Update requirements.Ignore PyCharm.Change supported python versions to 3.6 only.0.0.1 (2018-09-27)First release on PyPI.
Package: ws.prometheus_uptimerobot
This packages exportsUptime Robotmonitor results asPrometheusmetrics.UsageConfigure API keyYou’ll need to provide the API key of your uptimerobot.com account using a
configuration file:[default]
api_key = 123456789See theUptime Robot API documentationfor details.Set up HTTP serviceThen you need to set up an HTTP server, either with a dedicated process:$ uptimerobot_exporter --host localhost --port 9429 --config /path/to/configor as a CGI script, if you have infrastructure for that set up anyway.
Here’s an example apache configuration snippet to do this:ScriptAlias /metrics/uptimerobot /path/to/uptimerobot_exporter_cgi
<Location /metrics/uptimerobot>
  SetEnv PROMETHEUS_UPTIMEROBOT_CONFIG /path/to/config
  # SetEnv PROMETHEUS_UPTIMEROBOT_LOGFILE /path/to/log  # optional, for debugging
</Location>Configure Prometheusscrape_configs:
  - job_name: 'uptimerobot'
    scrape_interval: 300s
    static_configs:
      - targets: ['localhost:9429']The following metrics are exported, each with labels{monitor_name="example.com",monitor_type="http",monitor_url="https://example.com"}:uptimerobot_upgauge (1=up, 0=down)uptimerobot_statusgaugeuptimerobot_responsetimegaugeuptimerobot_ssl_expiregauge (unix timestamp), if applicableSee theUptime Robot API documentationsection “Parameters” for details on
the possiblestatusvalues. Themonitor_typeis translated from its
numeric code to one ofhttp,http keyword,ping, orport.Additionally, auptimerobot_scrape_duration_secondsgauge is exported.CHANGES1.3.0 (2023-04-04)ChangesDrop Python-2 support (py2)Switch from setup.py to pyproject.toml (wheel)1.2.0 (2021-10-22)Update to current prometheus_client API1.1.0 (2018-09-17)Add ssl expiration metrics1.0.1 (2018-04-02)Support pagination of API results.1.0.0 (2018-04-01)First release.
Package: wsproto
This repository contains a pure-Python implementation of a WebSocket protocol
stack. It’s written from the ground up to be embeddable in whatever program you
choose to use, ensuring that you can communicate via WebSockets, as defined inRFC6455, regardless of your programming
paradigm.This repository does not provide a parsing layer, a network layer, or any rules
about concurrency. Instead, it’s a purely in-memory solution, defined in terms
of data actions and WebSocket frames. RFC6455 and Compression Extensions for
WebSocket viaRFC7692are fully
supported.wsproto supports Python 3.6.1 or higher.To install it, just run:$pipinstallwsprotoUsageLet’s assume you have some form of network socket available. wsproto client
connections automatically generate a HTTP request to initiate the WebSocket
handshake. To create a WebSocket client connection:fromwsprotoimportWSConnection,ConnectionTypefromwsproto.eventsimportRequestws=WSConnection(ConnectionType.CLIENT)ws.send(Request(host='echo.websocket.org',target='/'))To create a WebSocket server connection:fromwsproto.connectionimportWSConnection,ConnectionTypews=WSConnection(ConnectionType.SERVER)Every time you send a message, or call a ping, or simply if you receive incoming
data, wsproto might respond with some outgoing data that you have to send:some_socket.send(ws.bytes_to_send())Both connection types need to receive incoming data:ws.receive_data(some_byte_string_of_data)And wsproto will issue events if the data contains any WebSocket messages or state changes:foreventinws.events():ifisinstance(event,Request):# only client connections get this eventws.send(AcceptConnection())elifisinstance(event,CloseConnection):# guess nobody wants to talk to us any more...elifisinstance(event,TextMessage):print('We got text!',event.data)elifisinstance(event,BytesMessage):print('We got bytes!',event.data)Take a look at our docs for afull list of events
<https://wsproto.readthedocs.io/en/latest/api.html#events>!TestingIt passes the autobahn test suite completely and strictly in both client and
server modes and using permessage-deflate.If you want to run the compliance tests, go into the compliance directory and
then to test client mode, in one shell run the Autobahn test server:$wstest-mfuzzingserver-sws-fuzzingserver.jsonAnd in another shell run the test client:$pythontest_client.pyAnd to test server mode, run the test server:$pythontest_server.pyAnd in another shell run the Autobahn test client:$wstest-mfuzzingclient-sws-fuzzingclient.jsonDocumentationDocumentation is available athttps://wsproto.readthedocs.io/en/latest/.Contributingwsprotowelcomes contributions from anyone! Unlike many other projects we
are happy to accept cosmetic contributions and small contributions, in addition
to large feature requests and changes.Before you contribute (either by opening an issue or filing a pull request),
pleaseread the contribution guidelines.Licensewsprotois made available under the MIT License. For more details, see theLICENSEfile in the repository.Authorswsprotowas created by @jeamland, and is maintained by the python-hyper
community.
Package: wspr-varint
wspr-varintA variable length integer implementation for the wspr project.APIVarIntfrom_intfrom_bytesto_intto_bytesintbytesExamplefromwspr_varintimportVarIntvariable_integer=VarInt.from_int(-1)variable_integer.to_int()variable_integer.to_bytes()History1.3.0 (2020-06-24)Add length agnostic initializer.1.2.0 (2020-06-24)Add shortcut to VarInt.1.1.1 (2020-06-22)Fix setup error.1.1.0 (2020-06-18)Add multiplication.Add addition.Add int property.Add bytes property.1.0.1 (2019-07-08)Fix syntax error in example.1.0.0 (2019-07-08)Add API reference.Add example.0.2.0 (2019-07-07)Update documentation references.0.1.0 (2019-07-07)First release on PyPI.