Saravanan666/pypi-org huggingface dataset:
Package: wchk
wchkA command line tool to check the status web pages.Installationpip install wchkorpipx install wchkUsageCheck a web page:wchk https://example.comShow help:wchk -hDevelopmentTo contribute to this library, first checkout the code. Then create a new virtual environment:pipx install hatch
git clone git@github.com:yaph/wchk.git
cd wchk
hatch shellTo run the tests:pytestLicensewchkis distributed under the terms of theMITlicense.
Package: wCLAMs
AboutThis project is a GUI wrapper for pyCLAMs:pyCLAMs: An integrated Python toolkit for classifiability analysis [J]. SoftwareX, Volume 18, June 2022, 101007, doi: 10.1016/j.softx.2022.101007The original version is developed in ASP.Net MVC (http://qsi.zhangys.org.cn/research/cla/). This project has rewritten it using Flask.Install and Runpip install wCLAMs
The package will be installed into USER\anaconda3\Lib\site-packages\wCLAMspython -m wCLAMs.runServing Flask app "run" (lazy loading)Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.Debug mode: offRunning onhttp://0.0.0.0:5005/(Press CTRL+C to quit)
127.0.0.1 - - [20/Apr/2022 12:16:51] "GET / HTTP/1.1" 200 -
WARNING: QApplication was not created in the main() thread.
127.0.0.1 - - [20/Apr/2022 12:16:57] "POST /submit HTTP/1.1" 200 -
127.0.0.1 - - [20/Apr/2022 12:17:03] "POST /submit HTTP/1.1" 200 -Go tohttp://localhost:5005/Run directly from sourcegit clonehttps://github.com/zhangys11/wCLAMs.gitcd wCLAMs/app/python wCLAMs.pyGo tohttp://localhost:5005/ScreenCut
Package: wclone
Basic website clonerDescription:This script is a basic website cloner that downloads all the files from a website and saves them in a folder.It works by scraping all the links on the page, save them locally, and replace them with the local path.InstallationFrompypi.pip3installwcloneFrom sourcegitclonehttps://github.com/Simatwa/website-clone.gitcdwebsite-cloner
bashinstall.shUsage$wclone<url>More info:In order to use the tor network, you need to download thetor packageand start the tor service.For further info run$ wclone --helpusage: wclone [-h] [-v] [-tp PROXY]
              [-o FOLDER] [-w PATH]
              [--use-tor]
              host

Basic website cloner written in Python

positional arguments:                  host         URL pointing to a
               website               
options:
  -h, --help   show this help
               message and exit
  -v, ---version
               show program's
               version number and
               exit
  -tp PROXY, --tor-proxy PROXY
               Proxy server url
               without schema -
               localhost:9050
  -o FOLDER, --output FOLDER
               Folder for saving
               contents - host
  -w PATH, --workspace PATH
               Directory for saving
               contents - /data/dat
               a/com.termux/files/h
               ome/temp
  --use-tor    Use tor proxy -
               False
Package: wcloud
A command line tool to generate wordclouds.AboutThis is a command line wrapper aroundhttps://github.com/amueller/word_cloudusingclick.Installation$ pip install wcloudUsageBasic:$ wcloud input.txtWith options:$ wcloud -b white -w 300 -h 200 -o output.png input.txtWith mask:$ wcloud -m mask.png -o threepio.png threepio.txtFree software: MIT licenseDocumentation:https://wcloud.readthedocs.io.
Package: wclr
WClrPython package for dealing with web colors.FeaturesConversion from/to a value specified in theCSS Color 3.Conversion from/to sRGB and HSL components.Alpha compositing.Calculation of the contrast ratio.RequirementsPython version 3.8 or laterInstallationYou can install WClr by, e.g.,pip:python-mpipinstallwclrUsageSee thedocumentation.LicenseApache License, Version 2.0
Package: wcl_services
Western Cape Labs HTTP Services API client=======================A client library for the Western Cape Labs HTTP Services APIs.Issues can be filed in the GitHub issue tracker. Please don't use the issuetracker for general support queries.Release Notes-----------------------0.1.4 - Added Worker endpoint for adding tasks and emails into the queue0.1.5 - Added Addresses filtering for types0.1.6 - Added Customer/PaymentMethod endpoint
Package: wcmatch
Wildcard MatchOverviewWildcard Match provides an enhancedfnmatch,glob, andpathliblibrary in order to provide file matching and
globbing that more closely follows the features found in Bash. In some ways these libraries are similar to Python's
builtin libraries as they provide a similar interface to match, filter, and glob the file system. But they also include
a number of features found in Bash's globbing such as backslash escaping, brace expansion, extended glob pattern groups,
etc. They also add a number of new useful functions as well, such asglobmatchwhich functions likefnmatch, but for
paths.Wildcard Match also adds a file search utility calledwcmatchthat is built on top offnmatchandglobmatch. It
was originally written forRummage, but split out into this project to be
used by other projects that may find its approach useful.Bash is used as a guide when making decisions on behavior forfnmatchandglob. Behavior may differ from Bash
version to Bash version, but an attempt is made to keep Wildcard Match up with the latest relevant changes. With all of
this said, there may be a few corner cases in which we've intentionally chosen to notexactlymirror Bash. If an issue
is found where Wildcard Match seems to deviate in an illogical way, we'd love to hear about it in theissue tracker.FeaturesA quick overview of Wildcard Match's Features:Provides an interface comparable to Python's builtin infnmatch,glob, andpathlib.Allows for a much more configurable experience when matching or globbing with many more features.Adds support for**in glob.Adds support for escaping characters with\.Add support for POSIX style character classes inside sequences:[[:alnum:]], etc. TheClocale is used.Adds support for brace expansion:a{b,{c,d}}-->ab ac ad.Adds support for expanding~or~usernameto the appropriate user path.Adds support for extended match patterns:@(...),+(...),*(...),?(...), and!(...).Adds ability to match path names via the path centricglobmatch.Provides apathlibvariant that uses Wildcard Match'sgloblibrary instead of Python's default.Provides an alternative file crawler calledwcmatch.And more...InstallationInstallation is easy with pip:pip install wcmatchDocumentationhttps://facelessuser.github.io/wcmatch/LicenseMIT
Package: wcmp
Python Wechat Message Push PackageA simple message plus package for notification via wechat.Installation# Install via pippipinstallwcmpUsageHere is a simple example for pushing a message to your wechat.importwcmp# replace the 'X' with your tokens=wcmp('XXXXXXX')s.send('messgaedf')About the TokenYou need to get your personal token fromPushPlush
Package: wc-novaposhta
WebCase Novaposhta APISDK for Novaposhta's(Ukrainian logistics company) API.Installationpipinstallwc-novaposhtaUsagefromwc_novaposhta.clientimportClientnovaposhta=Client('YOUR_API_KEY)# Getting cities listcities=novaposhta.geo.cities.get_list()TODOGeography catalog lookup methods.[_] Streets catalog lookup methods.[_] Warehouses catalog lookup methods.[_] Counterparty management methods.[_] Registries management methods.[_] Waybills management methods.[_] Smaller catalogs lookup methods.[_] Printing forms management methods.
Package: wcoin-wtech
# wcoin
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.Optimised in both speed and memory.InstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Uwcoin-wtech# Windowspy-3-mpipinstall-Uwcoin-wtechOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"wcoin-wtech"# Windowspy-3-mpipinstall-Uwcoin-wtechTo install the development version, do the following:$gitclonehttps://github.com/wangtry3417/wcoin.git$cdwcoin.git$pipinstallwcoin-wtechOptional Packages
Package: wcommon
This is my common Python tool classes./data/apps/public/conf.ini content like:[mysql]
host=example.com
port=3306
user=username
passwd=password
database=test
charset=utf8mb4Find the localhost internal network ip:fromwcommonimport*ip=getLocalIp()hostname=getLocalHostname()Decode unusual json string:fromwcommonimport*line="""{name:'java',system:'linux'}"""result=dejson(line)# output result{"name":"java","system":"linux"}# check the reuquirement listcheck_requirement(['requests','flask'])Operate mysql data:mysql=Mysql(configuraion_file="/data/apps/public/conf.ini",section="mysql")# queryrows=mysql.query("select * from example_table where status =%sorder by id desc limit%s",(1,10))forrowinrows:print(row)# bulk_insertmysql.bulk_insert("test.person",["name","age"],[["mahuateng",40],["liyanhong",39]])# bulk_insertmysql.bulk_insert2("test.person",[{"name":"ma2","age":40},{"name":"liyanhong2","age":39},{"name":"ren"}])Feature1.3.5Mysql insert语句执行的时候，忽略值为None的字段。1.3.8可以通过check_requirement方法检测依赖包是否已经安装，如果没有安装，则提示安装。
Package: wc-onto
WC-OntoOntology for whole-cell modelingInstallationInstalling the ontology for use in PythonInstall this Python package with pippip install git+https://github.com/KarrLab/wc_onto.git#egg=wc_onto[all]This command will install this Python package, including the ontology
(in OBO format) and the Python code for using the ontology. Once
installed, the ontology will be located atpkg_resources.resource_filename('wc_onto','onto.obo').Obtain aBioPortal API keySave your BioPortal API key to a configuration file
(~/.wc/wc_onto.cfg)[wc_onto]
    [[bioportal]]
        key = <BioPortal API key>Import the package. The other ontologies which wc_onto references
will automatically be downloaded the first time that the package is
imported.from wc_onto import ontoDownloading the ontologyAlternatively, the ontology can be downloaded (in OBO format) from
GitHub or BioPortalDownloadlatest
revisionfrom GitHubDownloadlatest
snapshotfrom
BioPortalDocumentationPlease see theAPI documentation.LicenseThe package is released under theMIT license.Development teamThis package was developed by theKarr Labat the Icahn School of Medicine at Mount Sinai in New York, USA.Questions and commentsPlease contact theKarr Labwith any
questions or comments.
Package: wcorr
WeightedCorrWeighted correlation in Python. Pandas based implementation of weighted Pearson and Spearman correlations.v2.1 20-03-2021Fixed Issue #1V2 Update 21-07-2020Switched from apandasbackend to anumpy/scipybackend. Usage remains the same, but performance for Spearman correlations is significantly improved. See table below.N samplesPearson_v1Pearson_v2Spearman_v1Spearman_v2103.55 ms ± 64.1 µs1.59 ms± 9.32 µs14 ms ± 131 µs1.78 ms± 7.55 µs1006.69 ms ± 89 µs4.94 ms± 79.9 µs21.4 ms ± 979 µs5.08 ms± 144 µs100039.1 ms ± 426 µs36.7 ms± 529 µs93.7 ms ± 1.03 ms37.2 ms± 433 µs10000350 ms ± 4.56 ms343 ms± 5.41 ms746 ms ± 5.29 ms350 ms± 7.42 ms1000003.48 s ± 11.9 ms3.48 s± 6.44 ms7.44 s ± 20.1 ms3.52 s± 9.27 msInstallpipinstallwcorrUsageThis class can be used in a few different ways depending on your needs. The data should be passed to the initialization of the class. Then calling the class will produce the result with desired method (pearson is the default). Note that the method should be passed to the call, not the initialization. The examples below will result in pearson, pearson, and spearman correlations.fromwcorrimportWeightedCorrYou can supply a pandas DataFrame with x, y, and w columns (columns should be in that order). The output will be a single floating point value.WeightedCorr(xyw=my_data[['x', 'y', 'w']])(method='pearson')You can supply x, y, and w pandas Series separately. The output will be a single floating point value.WeightedCorr(x=my_data['x'], y=my_data['y'], w=my_data['w'])()You can supply a pandas DataFrame, and the name of the weight column in that DataFrame. In this case the output will be an (M-1)x(M-1) pandas DataFrame (the correlation matrix) where M is the number of columns in the original dataframe (no correlation is calculated for the weight column, hence M-1).WeightedCorr(df=my_data, wcol='w')(method='pearson')Weighted Pearson correlationThe weighted Pearson r, givennpairs is calculated asWhereWeighted Spearman rank-order correlationFirst, initial ranks (z) are assigned to x and y. Duplicate groups of records are assigned the average rank of that group. Next the weighted rank (rank) is calculated for x and y separately innpairs. Such that thej-thrankof either x or y will be:WhereandThese weighted ranks are then passed to the weighted Pearson correlation function.
Package: wcovid19-data
IntroductionThis is an Open-Source Project intended to aid the developers in the Healthcare Industry.This package helps you to get country-wise covid data which contains 15 important fields for statistical analysis.With increased severity of COVID-19, data plays a very critical role in determining the trend and patterns.The data is live and get updated every now and then.How To UseImport usingfrom wcovid19.wcd import WorldCovidData as wcdGet ICD Code's Description using :wcd.getCovidData("Mexico")
wcd.getCovidData("Dominican Republic")
wcd.getCovidData("Saint Pierre Miquelon")Finally, it looks like this :from wcovid19.wcd import WorldCovidData as wcd
wcd.getCovidData("<Country_Name>")Returns a Map of the above mentioned fields.Note : All the imports/dependencies are automatically installed.Bugs & IssuesIf you find a Bug or have an Idea, please feel free to drop a mail @sakethaux1111@gmail.com!
Package: wcpan-drive-cli
wcpan.drive.cliCommand line tool forwcpan.drive.This package needs plugins to actually work with a drive.Configpython3-mwcpan.drive.cli-c/path/to/config...Here is an example of the config file:version:2file:main:name:package.module.create_service# args and kwargs are optionalargs:-arg1-arg2kwargs:kwarg1:kwargkwarg2:kwarg# middleware is optionalmiddleware:-name:package.module.create_serviceargs:-arg1-arg2kwargs:kwarg1:kwargkwarg2:kwargsnapshot:main:name:package.module.create_serviceargs:-arg1-arg2kwargs:kwarg1:kwargkwarg2:kwargmiddleware:-name:package.module.create_serviceargs:-arg1-arg2kwargs:kwarg1:kwargkwarg2:kwargCommand Line UsageGet the latest help:python3-mwcpan.drive.cli-c/path/to/config-hYou need to authorize an user first.python3-mwcpan.drive.cli-c/path/to/configauthThen you should build local cache.
Many commands reliy on this cache to avoid making too many API requests.Note that this is theONLYcommand that will update the cache.
Which means afterupload,mkdir,remove,rename, you need to run this
command to make the cache up-to-date.python3-mwcpan.drive.cli-c/path/to/configsyncTheremovecommand only put files to trash can, it doesNOTpermanently
removeANYfiles.However, some cloud services may clean up trashes after certain period.Removing a folder will also remove all its descendants.python3-mwcpan.drive.cli-c/path/to/configremovefile1file2...
Package: wcpan-drive-core
wcpan.driveAsynchronous generic cloud drive library.This package only provides the core functionality.
It needSnapsnotServiceandFileServiceimplementation to work.Example Usagefromwcpan.drive.coreimportcreate_drivefromwcpan.drive.core.typesimport(CreateFileService,CreateSnapshotService,)fromwcpan.drive.core.libimport(download_file_to_local,upload_file_from_local,)# Assumes we already know how to create FileService and SnapshotService.asyncdefsimple_demo(create_file_service:CreateFileService,create_snapshot_service:CreateSnapshotService,):asyncwithcreate_drive(file=create_file_service,snapshot=create_snapshot_service,)asdrive:# Check for authorization.ifnotawaitdrive.is_authorized():# Start OAuth 2.0 processurl=awaitdrive.get_oauth_url()# ... The user visits the url ...# Get tokens from the user.token=...# Finish OAuth 2.0 process.awaitdrive.set_oauth_token(token)# It is important to keep the snapshot up-to-date.asyncforchangeindrive.sync():print(change)# Get the root node.root_node=awaitdrive.get_root()# Get a node.node=awaitdrive.get_node_by_path('/path/to/drive/file')# List children.children=awaitdrive.get_children(root_node)# Make a directory.new_directory=awaitdrive.create_directory('directory_name',root_node)# Download a file.awaitdownload_file_to_local(drive,node,'/tmp')# Upload a file.new_file=awaitupload_from_local(drive,root_node,'/path/to/local/file')# Traverse drive.asyncforroot,directorys,filesindrive.walk(root_node):print(root,directorys,files)
Package: wcpan-drive-google
wcpan.drive.googleFileServiceextension for wcpan.drive which provides Google Drive support.Please usewcpan.drive.google.create_serviceto create the file.RequirementNeed aclient_secret.jsonfile which can be downloaded from
Google Developer Console.Examplefromfunctoolsimportpartialfromwcpan.drive.coreimportcreate_drivefromwcpan.drive.googleimportcreate_serviceasyncdefmain():# Your API credential.client_secret="/path/to/client_secret.json"# Stores access token and refresh token.oauth_token="/path/to/oauth_token.json"create_file_service=partial(create_service,client_secret=client_secret,oauth_token=oauth_token,)asyncwithcreate_drive(file=create_file_service,snapshot=...,)asdrive:...
Package: wcpan-drive-sqlite
wcpan.drive.sqlitesqlite3 snapshot service for wcpan.drive.Example Usagefromcontextlibimportasynccontextmanagerfromwcpan.drive.coreimportcreate_drivefromwcpan.drive.core.typesimportFileServicefromwcpan.drive.sqliteimportcreate_service@asynccontextmanagerasyncdefcreate_sqlite_service():asyncwithcreate_service(dsn="/path/to/sqlite")assnapshot:yieldsnapshot# Assumes we already know how to create FileServiceasyncdefsimple_demo(create_file_service:FileService):asyncwithcreate_drive(file=create_file_service,snapshot=create_sqlite_service,)asdrive:...
Package: wcpan-logging
wcpan.loggingA configuration generator for builtin logging module.This module does not have any side effect, it is the user's choice to put it
intologging.dictConfig.importloggingfromwcpan.loggingimportConfigBuilderlogging.dictConfig(ConfigBuilder(path="/your/log",rotate=True).add("moduleA",level="DEBUG").add("moduleB","moduleC",level="INFO").to_dict())
Package: wcpan-queue
wcpan.queueAn utility forasyncio.Queue.Examplefromwcpan.queueimportAioQueueasyncdeftask()->int:...asyncdefamain():# Creates a priority queue.# Use AioQueue.fifo() for FIFO and AioQueue.lifo() for LIFO.withAioQueue[int].priority()asqueue:# Push a task which priority is 1, lesser number has higher priority.# Default is 0.# Priority is ignored for FIFO and LIFO queues.awaitqueue.push(task(),1)# Spawns 8 consumers to consume the queue.# The default is 1.awaitqueue.consume(8)awaitqueue.push(task())# Or collect the results like this:asyncforresultinqueue.collect(8):...# If any error occurs, the context manager will cleanup all coroutines.
Package: wcpan.telegram
Telegram Bot API with Tornado.High Level API ExampleTeleLichis a high level undead, you can demand it to send requests:fromtornadoimportgen,ioloopfromtelezombieimportapi,types@gen.coroutinedefmain():API_TOKEN='your_token'lich=api.TeleLich(API_TOKEN)talk_to=42# getMeuser=yieldlich.get_me()print(user)# getUpdatesupdates=yieldlich.get_updates()print(updates)# sendMessagemessage=yieldlich.send_message(talk_to,'hello')print(message)# sendPhotophoto=types.InputFile('path_to_your_phoho.png')message=yieldlich.send_photo(talk_to,photo)print(message)# sendAudioaudio=types.InputFile('path_to_your_audio.ogg')message=yieldlich.send_audio(talk_to,audio)print(message)# sendVideovideo=types.InputFile('path_to_your_video.mp4')message=yieldlich.send_video(talk_to,video)print(message)# sendDocumentdocument=types.InputFile('path_to_your_file.zip')message=yieldlich.send_document(talk_to,document)print(message)main_loop=ioloop.IOLoop.instance()main_loop.run_sync(main)And let it handles updates:fromtornadoimportgen,ioloopfromtelezombieimportapiclassKelThuzad(api.TeleLich):def__init__(self,api_token):super(KelThuzad,self).__init__(api_token)@gen.coroutinedefon_text(self,message):id_=message.message_idchat=message.chattext=message.text# echo same textyieldself.send_message(chat.id_,text,reply_to_message_id=id_)@gen.coroutinedefon_video(self,message):chat=message.chatvideo=message.video# echo video without upload againyieldself.send_video(chat.id_,video.file_id,reply_to_message_id=id_)@gen.coroutinedefforever():API_TOKEN='your_token'lich=api.KelThuzad(API_TOKEN)yieldlich.poll()main_loop=ioloop.IOLoop.instance()main_loop.run_sync(forever)Or handles updates by webhook:fromtornadoimportgen,ioloop,webfromtelezombieimportapiclassHookHandler(api.TeleHookHandler):@gen.coroutinedefon_text(self,message):lich=self.application.settings['lich']id_=message.message_idchat=message.chattext=message.text# echo same textyieldlich.send_message(chat.id_,text,reply_to_message_id=id_)@gen.coroutinedefcreate_lich():API_TOKEN='your_token'lich=api.TeleLich(API_TOKEN)yieldlich.listen('https://your.host/hook')returnlichmain_loop=ioloop.IOLoop.instance()lich=main_loop.run_sync(create_lich)application=web.Application([(r"/hook",HookHandler),],lich=lich)# please configure your own SSL proxyapplication.listen(8000)main_loop.start()Low Level API ExampleAlthough theTeleLichis handy, sometimes you just need a ghoul to
collect lumber for you, so you can use it to build your own Ziggurat.TeleZombieprovides simple and direct API mapping:fromtornadoimportgen,ioloopfromtelezombieimportapi,types@gen.coroutinedefmain():API_TOKEN='your_token'ghoul=api.TeleZombie(API_TOKEN)talk_to=42# getMeuser=yieldghoul.get_me()print(user)# getUpdatesoffset=0updates=[]whileTrue:us=yieldghoul.get_updates(offset)updates.extend(us)ifnotus:breakoffset=us[-1].update_id+1print(updates)# sendMessagemessage=yieldghoul.send_message(talk_to,'hello')print(message)# sendDocumentdocument=types.InputFile('path_to_your_file.zip')message=yieldlich.send_document(talk_to,document)print(message)main_loop=ioloop.IOLoop.instance()main_loop.run_sync(main)
Package: wcpan-watchdog
wcpan.watchdogAn asynchronous watchdog utility built with asyncio.Installationpipinstallwcpan.watchdogCommand Line UsageYou can simply use the main module like this:python3-mwcpan.watchdog--<anycommand>It will restart the command (if it is still running) for every file changed.Library UsageYou can also use this in your code:importasyncioimportsignalfromwcpan.watchdog.watcherimportWatcherasyncdefauto_rerun():path='the path you want to observe'# Setup how to stop the watcher.# In this example I use SIGINT to set the Event.loop=asyncio.get_running_loop()stop_event=asyncio.Event()loop.add_signal_handler(signal.SIGINT,lambda:stop_event.set())asyncwithWatcher()aswatcher:# This will not stop until stop_event is set.asyncforchangesinwatcher(path,stop_event=stop_event):# Changes contains changed information.
Package: wcpan-worker
wcpan.workerAn asynchronous task queue with priority support.fromwcpan.workerimportAsyncQueue,TaskclassHighPriorityTask(Task):@propertydefpriority(self)->int:return2classLowPriorityTask(Task):@propertydefpriority(self)->int:return1# Note this queue is non-preemptive.queue=AsyncQueue()queue.start()# function_2 will come first.queue.post(LowPriorityTask(function_1))queue.post(HighPriorityTask(function_2))# cancel pending tasksqueue.flush()# wait for executing task (if any) ends, then stop the queueawaitqueue.stop()
Package: wcraas-common
wcraas_commonWCraaS Storage ServiceFree software: MIT licenseDocumentation:https://wcraas-common.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.7 (2019-10-28)BUGFIX: Correctstart_consume’s argumentqueue=>queue_name.0.1.6 (2019-10-02)Break RMQ queue subscription to own function.0.1.5 (2019-10-02)BUGFIX: Missing imports0.1.2 (2019-10-27)Move RPC & Consume initialization to common moduleProvide consume & is_rpc decoratorsWcraasWorkeris now an Abstract Class.0.1.1 (2019-10-02)Mark docs as stable.0.1.0 (2019-09-21)First release on PyPI.