Saravanan666/pypi-org huggingface dataset:
Package: wcag-contrast-ratio
A library for computing contrast ratios, as required byWCAG 2.0.UsageSimple usage follows this pattern:>>importwcag_contrast_ratioascontrast>>black=(0.0,0.0,0.0)>>white=(1.0,1.0,1.0)>>contrast.rgb(black,white)21.0Two useful helper functions are provided, to check if contrast meets
the required level:>>importwcag_contrast_ratioascontrast>>contrast.passes_AA(21.0)True>>contrast.passes_AAA(21.0)True
Package: wcap
wcapCapture web pages as images using Selenium and the FireFox webdriver.Usagewcap --dimensions 1500x1100 --wait 5 https://ukealong.com/key/c/ img/c.pngInstallationpip install wcapIn order forwcapto work you need to install theFireFox web browserandgeckodriver. To installgeckodriverdownload the release for your operating system fromhttps://github.com/mozilla/geckodriver/releasesand move the executable file to a directory that is included in your PATH environment variable.Authorswcapwas written byRamiro Gómez.
Package: wcartist
wcartistHow to install$ pip install wcartist$ git clone https://github.com/koji/wcartist.git
$ cd wcartist/code 
$ pip install setuptools
$ python setup.py install  this requires setuptools > 38.0.0How to use1. create a text file2. get an black & white image3. run command$ wcartist --input image.png --text test.txt --num 1000 --bc black --output wcartistoptions--input: image_file_name (required)
--text: text file name (required)
--num: words max default=500 (optional)
--bc: background color default `white` (optional)
`black`, `red`, `blue`, `green`, `orange`, `purple`
`cyan`, `gray`, `brown`, `pink`, `yellow`, `silver`
`gold`, `darkblue` etc
--output: output file name default `output` (optional)example
Package: wccls
OverviewThis is a read-only scraper for theWCCLSaccount page. It also works for theMultnomah County Bibliocommons siteUsagefromwcclsimportWccls,WcclsAsyncitems=Wccls(login=card_number_or_username,password=password)foriteminitems:print(item)items=awaitWcclsAsync(login=card_number_or_username,password=password)foriteminitems:print(item)Running testsTo record new test data (also test against live website)Set SCRUB_EMAIL, WCCLS_CARD_NUMBER, WCCLS_PASSWORD environment variablesMake a new directory tests/filesets/new_filesetpytest--collect=save-knew_filesetTo test existing test datapytest
Package: wc.cookiecredentials
This package contains a plug-in for Zope 3’s Pluggable Authentication
Utility (PAU) that challenges and extracts user credentials based on
browser cookies.  The plug-in originally appeared in the World Cookery
application, the demo application for Philipp von Weitershausen’s book
“Web Component Development with Zope 3” (http://worldcookery.com).Changes3.9 (2007-09-20)Now works with Zope 3.4 via eggs.2.0.1 (2007-02-23)Fix minor bug in the namespace package declaration.2.0 (2006-11-05)Initial release as separate package, based on example source code from
WCD 2nd ed.
Package: wc-csv
## 使い道WordCloudの時に(単語, 頻度数)という２つのカラム構成されているときに、そのままではWordCloudにかませることができない。それを解消するツールである。### 変換すべきCSVの例![CSVの例](samplecsv.png)## 使い方```sample.pyfrom wc_csv import convert_wc_csvwcsv = convert_wc_csv.Wcsv()# どれくらいの頻度の単語を指定するか指定df = wcsv.missing_value('sample.csv',8)text = wcsv.convert_string(df)```## インストール方法```pip install wc_csv```
Package: wcc-timetable-generator
Timetable 📊📰 DescriptionA CLI tool that allow you to generate a timetable for your school or university such that :A subject can't be seen on two consecutive daysA subject have a minimum of 2 hours per week and a maximum of 6The timetable is divided in slots of 1 hoursThe subjects are distributed between monday morning and saturady morningMorning classes begin at 8:30 and end at 12:30Afternoon classes begin at 13:30 and end at 17:30📦 Installation💻 Local installationTo install this project locally, you first have to clone this repo and installpoetrywith pip :pip install poetry.
Then, go to the root directory and run the following commands :poetryinstall# install all the necessary dependenciespoetrybuild
poetryrunpython-mwcc_timetable_generator🌐 Installation with PIPpipinstallwcc-timetable-generator🖱 UsageIf you installed it with pip, this is how to run the project :wcc-timetable-generator✅ RoadmapAdd the algorithmAdd GUI-like UIPublish to PyPIAdd an animated GIF as demo toREADME.mdWrite testsAdd quit buttonPrint error messages
Package: wcd
Wallpaper Changing Daemon (wcd)Wallpaper Changing Daemon reminds me of mpd, but it manages wallpapers instead of music.OverviewIt comes with wcc too, which is a CLI client app, used to interact with the Daemon.It works on python 3.9 (and, probably, on 3.7 and 3.8 too, not sure about lower versions though).It only depends onPyYAMLandcoloredlogs, but you don't have to worry about installing them manually, pip's got you covered.It copies it's default config file into~/.config/wcd/, or to wherever you point it to, via$WCD_CFG.I only code as a hobby, but I'd say I made a good job to make this very readable and, thus, feel very welcomed to check how things are implemented, to get a better understanding of what this program does, its capabilities, etc...You need to have a program which will do the wallpaper switching (such asxwallpaper,fehornitrogen) installed on your machine.Why shouldn't I just use a shell script insteadLots of people use shell scripts like this, to manage their wallpapers:while true; do
    for file in "$(find /usr/share/backgrounds/ -type f | shuf)"; do
        xwallpaper --zoom "$file"
    done
doneAnd that's fine, but I don't like that approach because it's too limiting. What if, actually, you don't like a wallpaper that has been presented to you? Well, then, you'd have to manually change it. With wcd and wcc, you can interact with the daemon as it presents wallpapers to you, going back and forward in a history buffer, choosing to start or to stop randomizing wallpapers, or just getting the next one presented to you if you don't like the current one anymore, all with a single keypress (see "sxhkd keybindings for wcc" below).InstallationInstall the package withpipx:pipx install wcdor clone this repo and runsetup.pyIf you use Arch based distros, you can install pipx as such:sudo pacman -S python-pipxRun the package once, to generate config files. If you want to, you can point to where you want your config to be stored in by exporting an evironment variable namedWCD_CFG, like this:export WCD_CFG="path/to/config" # be sure to add this line to your ~/.profile or ~/.bashrc or whatever shell you usewcdLoad the config file (defaults to~/.config/wcd/cfg.yml) on your text editor and change thewallpaper_cmdentry to whatever suits you best.Kill the previous running instance if you haven't already and, then, restart the program.You're all set, enjoy.Installing and Running as systemd ServiceClone this repo:git clone https://github.com/brunofauth/wcd.gitcd into it:cd wcdeditwcd.serviceto include whatever you get when you runwhich wcdCopy the unit file to your systemd config folder:cp wcd.service ~/.config/systemd/user/wcd.serviceTo enable starting wcd on login, run:systemctl enable --user wcd.serviceTo immediatly start wcd, run:systemctl start --user wcd.serviceCommunicating with the wcdRun:wcc --help, it stands for Wallpaper Changing Client and comes bundled withwcdsxhkd keybindings for wcc (append to your sxhkdrc)shift + XF86Audio{Play,Next,Prev}
    wcc {toggle_cycle,next,prev}TODOupdate pkgbuild to aur, along with the systemd serviceuse less memory (tracemalloc says it's fine, but htop disagrees)
Package: wc-delivery-auto-sdk
WebCase Delivery APISDK for Delivery's(Ukrainian logistics company) API.Installationpipinstallwc-delivery-auto-sdkUsagefromwc_delivery_auto.clientimportClientdelivery=Client()# Getting cities listcities=delivery.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.
Package: wc-django-celery-unicall
WebCase celery one task callerPackage to call celery tasks only once per unique key.Installationpipinstallwc-django-celery-unicallInsettings.py:INSTALLED_APPS+=['wcd_celery_unicall',]UsagefromceleryimportCeleryfromwcd_celery_unicall.taskimportCACHE_KEY_PREFIXfromwcd_celery_unicall.shortcutsimportmake_unicall,taskapp=Celery('app')# First after defining and configuring celery app you should change# the default `Task` class.# It has a small improvement in `apply_async` method, that will revoke# other pending tasks that have the same uniqueness key.app.Task=make_unicall(app.Task)# ...fromdjango.core.cacheimportcache# All other tasks that you want to check for uniqueness have to be defined# using a `task` shortcut decorator.# So instead ow writing `@app.task()` write `@task(app)`.# But that's not all. To enforce uniqueness check mechanics you must# provide at least 2 additional parameters: `unicall_key` and `unicall_cache`.@task(# Your celery app:app,# Function that receives the same arguments that your task, and generates# unique key to track task execution.unicall_key=lambdauser_id,**_:f'sync_user{user_id}',# And a django cache backend implementation. This could be anything you# wish, but `LockMem` cache backend, for example will be useless.# So this should be "global" cache backend, like redis or memcached.unicall_cache=cache,# Optional. Additional TTL, that will be added to key expirity.unicall_additional_ttl=None,# Optional. Cache key prefix, if you don't like the default one.unicall_key_prefix=CACHE_KEY_PREFIX,)defdo_something(user_id:int,param2:bool=True,param_3=None):passChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased][0.1.0]Initial version.
Package: wc-django-device-recognizer
WebCase device recognizing utilityInstallationpipinstallwc-django-device-recognizerIt depends ondjango-user-agents, so check outit's documentationabout additional installation instructions.Insettings.py:INSTALLED_APPS+=['wcd_device_recognizer',]UsageTo get all possible information from request:fromwcd_device_recognizer.servicesimportrequest_resolverinterlocutor=request_resolver.resolve(request)assertinterlocutor.device.bitness=='64'assertinterlocutor.os.family=='Linux'assertinterlocutor.os.arch=='x86'assertinterlocutor.app.family=='Chrome'assertinterlocutor.app.version==(101,0,0)assertinterlocutor.device.dpr==1And then you may save interlocutor's data to database:fromwcd_device_recognizer.servicesimportregistry# You may pass any amount of interlocutors to register here.registry.register_interlocutors((interlocutor,))CoverageTo collect interlocutor's data package uses User-Agent info and standart HTTP headers:Sec-CH-UASec-CH-UA-ArchSec-CH-UA-BitnessSec-CH-UA-Full-VersionSec-CH-UA-Full-Version-ListSec-CH-UA-Mobileser experience.Sec-CH-UA-ModelSec-CH-UA-PlatformSec-CH-UA-Platform-VersionContent-DPRDevice-MemoryDPRViewport-WidthWidthFor details look here:https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#user_agent_client_hintsAlso anySec-CH-UA-{key-name}will be saved.To provide some unique device identifier use:Sec-CH-UA-IDheader.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased][0.1.4]AddedTranslation strings.[0.1.1]Initial version.
Package: wc-django-folders-backuper
WebCase files backupVery simple folders backup script with admin interface to download backup.Installationpipinstallwc-django-folders-backuperInsettings.py:INSTALLED_APPS+=['wcd_folders_backuper',]Usagepythonmanage.pyfolders_backupChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased][0.1.1]AddedFiles will be removed on backup model instances delete.[0.1.0]Initial version.
Package: wc-django-jet-sidebar
WebCase Jet Sidebar CustomizationWebCase Jet Sidebar Customizationoffers a flexible and powerful customization system for the Django admin interface sidebar, allowing administrators to configure the order, custom names, positioning, and view mode (compact or expanded) of sidebar items for the current user.This package is perfect for those looking to enhance the usability and efficiency of their admin panel, providing custom settings for each sidebar item based on user needs and preferences.InstallationTo get started withWebCase Jet Sidebar Customization, follow these steps:Install the package using pip:pipinstallwc-django-jet-sidebarAddwcd_jet_sidebarto yoursettings.py:INSTALLED_APPS+=['wcd_jet_sidebar',]To integrate with your project, replace the inheritance of your admin interface templates:In/markup/templates/admin/base_site.htmland/markup/templates/rosetta/base.htmlfiles, replace:{% extends "admin/base.html" %}With:{% extends "wcd_jet_sidebar/base.html" %}Enjoy!You are now ready to useWebCase Jet Sidebar Customizationto customize and optimize your Django admin interface. Personalize your sidebar effortlessly and conveniently, making your work more productive and enjoyable.
Package: wc-django-locales-collector
WebCase locales collectorCollects locales from any python third parties to some local folder. It's useful for a more easier local translations management.Installationpipinstallwc-django-locales-collectorInsettings.py:INSTALLED_APPS+=['wcd_locales_collector',]WCD_LOCALES_COLLECTOR={# List of modules for which locales will be collected.'MODULES':[# For example:'rest_framework',],# Path to save collected locales.'PATH'=BASE_ROOT/'exported_locale'}# All root options could also be provided as standalone ones(for overriding, etc.):WCD_LOCALES_COLLECTOR_PATH=BASE_ROOT/'replaced_locale'# ...# Your static `LOCALE_PATHS` config should be wrapped by paths extender.# If it's not, then all exported locales will not be applied.fromwcd_locales_collector.helpersimportlocale_paths_extenderLOCALE_PATHS=locale_paths_extender(LOCALE_PATHS)# OR!# If you have some issues with that approach - you can extend `LOCALE_PATHS`# manually:fromwcd_locales_collector.servicesimportpathifierLOCALE_PATHS=LOCALE_PATHS+pathifier.get_modules_result_paths(WCD_LOCALES_COLLECTOR['MODULES'],WCD_LOCALES_COLLECTOR_PATH)Usagepythonmanage.pycollectlocalesThat's it. You have collected all locales from all provided apps into a separate folder.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased][0.1.3]AddedAutomatic mo2po sources conversion if library doesn't have po files but ships with compiled mo files.[0.1.2]FixedInitial merge issue with unicode symbols.[0.1.0]Initial version.
Package: wc-django-user-checks
WebCase User checksPackage to provide additional user check mechanics.Installationpipinstallwc-django-user-checksInsettings.py:INSTALLED_APPS+=['wcd_uer_checks',]WCD_USER_CHECKS={'REGISTRY'='wcd_user_checks.globals.registry',# default'DEFINITIONS'=None,# default'CACHE'='default',# default'DEFINITIONS'=['wcd_user_checks.builtins.MANUAL_CHECK_DEFINITION',# Manual check reason],}UsageFor all your interactions useclientmodule. It has everything that you would need.Simple check interaction# Importing clientfromwcd_user_checksimportclient# Getting check definitionfromwcd_user_checks.builtinsimportMANUAL_CHECK_DEFINITION# Setting a check reason to an initial value(invalid).client.set_check(user_id,MANUAL_CHECK_DEFINITION.reason)# Getting a user statestate=client.get_state(user_id)# It will be invalid# > state.is_passed == False# Setting a valid state valueclient.set_check(user_id,MANUAL_CHECK_DEFINITION.reason,state=builtins.ManualCheckState.VALID)# Will force user check state to become validstate=client.get_state(user_id)# > state.is_passed == TrueCreating a custom checkerFile:apps/another/checker.pyfromwcd_user_checksimportclientfromwcd_user_checks.registryimportCheckDefinition# This state might be django's `models.TextChoices` or any other Enum.classAnotherState(str,Enum):VALID='valid'PROCESS='process'INVALID='invalid'# This is your checker definition objectANOTHER=CheckDefinition(# Reason to check. Must be unique for the project.reason='ANOTHER',# States enum, that your check workflow could be resolved.states=AnotherState,# Initial state. Better to be invalid,initial_state=AnotherState.INVALID,# Inspector - function that checks whether the check is passed or not.inspector=lambdax:x.state==AnotherState.VALID)You may register this manually:client.get_registry().register(ANOTHER)Or by defining tha path to a definitions insettings.py:WCD_USER_CHECKS_DEFINITIONS=['wcd_user_checks.builtins.MANUAL_CHECK_DEFINITION',# Build in'apps.another.checker.ANOTHER',# Yours]Administrative panelBy default there will be a separate model to change user checks. But it might happen this to be not enough. An you'll need to add an inliner to a user model.There is functionality for that:admin.pyfromdjango.contribimportadminfromdjango.contrib.auth.adminimportUserAdminasBasefromdjango.contrib.authimportget_user_model# This inline here has a little bit more optimized user checks displaying.fromwcd_user_checks.adminimportUserCheckInlineAdminUserModel=get_user_model()admin.site.unregister(UserModel)@admin.register(UserModel)classUserAdmin(Base):inlines=Base.inlines+[UserCheckInlineAdmin]TODO[_] Middleware for user checks auto injection intorequest.[_] Context manager for checks for templates injection.[_] DRF permissions.[_] DRF views maybe.[_] Some simple view decorator to check user's ability to perform action.
Package: wc-django-utm
WebCase UTM trackerSimple middleware and utils for tracking utm parameters.Installationpipinstallwc-django-utmInsettings.py:INSTALLED_APPS+=['wcd_utm',]WCD_UTM={# All the "main" parameters that must be resolved.'PARAMETERS':['utm_source','utm_medium','utm_campaign','utm_term','utm_content','gclid','aclk','msclkid','fbclid','twclid',]),# Additional parameter prefixes. Also used to convert prefixed parameters# like "utm_content" into "content".'RESOLVABLE_PREFIXES':['utm_'],# Used to store all different utm parameters sets, that user had during the# session.'SESSION_STORAGE_KEY':'utm_params_stored',# Latest utm parameters set. The key that you are mostly going to use.'SESSION_ACCESS_KEY':'utm_params',# Header to parse UTM parameters from as if it is URL.# Use this to pass utm parameters from Android/iOS app, for example.'HEADER_ORIGIN_URL':'HTTP_X_UTM_ORIGIN_URL',# Same as previous, but this one should store JSON data instead of plain# URL string.'HEADER_JSON':'HTTP_X_UTM_JSON',}UsageMost of the time only the middleware will be used:MIDDLEWARE=[# ...'django.contrib.sessions.middleware.SessionMiddleware',# MUST be placed after session middleware ^.'wcd_utm.middleware.UTMSessionMiddleware',# ...]In a viewMiddleware will store parsed data in aSESSION_ACCESS_KEY('utm_params') key. Parameter values will always be a list of strings:defsome_view(request):params=request.session["utm_params"]# Values are always listsif'black_friday_sale'inparams.get('utm_campaign',[]):# Then do stuff related to you black friday sale campaign.pass# ...ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased][0.1.0]Initial version.
Package: wcf
python-wcfbinA python library for converting between WCF binary xml and plain xml.A more complete documentation could be found in the doc directory (build with sphinx).Install# Install from GitHubpipinstallgit+https://github.com/caiyunapp/python-wcfbin.git@0.5.4#egg=wcf-binary-parser# Install from PyPipipinstallwcfAboutcontributors
Package: wcferry
WeChatFerry Python 客户端📖 文档📺 视频教程🙋 FAQ🤖示例机器人框架：WeChatRobot。快速开始pipinstall--upgradewcferryDemo：参考WeChatRobot和上面的文档。后台回复WCF加群交流如果你觉得有用一起开发配置环境# 创建虚拟环境python-mvenv.env# 激活虚拟环境source.env/Scripts/activate# 升级 pippipinstall--upgradepip# 安装依赖包pipinstallgrpcio-toolspynng重新生成 PB 文件# CMDcdclients\python\wcferry
python-mgrpc_tools.protoc--python_out=.--proto_path=..\..\..\WeChatFerry\rpc\proto\wcf.proto# GitBashcdclients/python/wcferry
python-mgrpc_tools.protoc--python_out=.--proto_path=../../../WeChatFerry/rpc/proto/wcf.proto版本更新v39.0.14.0 (2024.02.18)若干优化若干功能点击查看更多版本号：w.x.y.z。其中：w是微信的大版本号，如37(3.7.a.a),38(3.8.a.a),39(3.9.a.a)x是适配的微信的小版本号，从 0 开始y是WeChatFerry的版本，从 0 开始z是各客户端的版本，从 0 开始功能：检查登录状态获取登录账号的 wxid获取消息类型获取所有联系人获取所有好友获取数据库获取某数据库下的表获取用户信息发送文本消息（可 @）发送图片（支持网络路径）发送文件（支持网络路径）允许接收消息停止接收消息执行 SQL 查询接受好友申请添加群成员删除群成员解密图片获取朋友圈消息保存图片保存语音发送卡片消息拍一拍群友邀请群成员图片 OCR转发消息撤回消息获取登录二维码
Package: wcfhttp
WeChatFerry HTTP 客户端基于wcferry封装的 HTTP 客户端。快速开始安装pipinstall--upgradewcfhttp运行# 查看版本wcfhttp-v# 查看帮助wcfhttp-h# 忽略新消息运行wcfhttp# 新消息转发到指定地址wcfhttp--cbhttp://your_host:your_port/callback接收消息回调接口文档参考文档（默认地址为：http://localhost:9999/docs）接收消息回调样例。后台回复WeChatFerry加群交流如果你觉得有用
Package: wcfkcenters
Python implementations of the Weighted CLuster FuzzykCenters algorithms for fuzzy clustering categorical data:Installation:Using pip:pipinstallwcfkcentersImport the packages:fromWCFkCenters.WCFkCentersimportWCFkCenters
fromWCFkCentersimportTDef
importnumpyasnpGenerate a simple categorical dataset:X=np.array([[0,0,0],[0,1,1],[0,0,0],[1,0,1],[2,2,2],[2,3,2],[2,3,2]])y=np.array([0,0,0,0,1,1,1])LSHk-Representatives (Init):algo=WCFkCenters(X,y,k=TDef.k,alpha=TDef.alpha)algo.SetupMeasure("Overlap")algo.DoCluster()algo.CalcScore()Built-in evaluattion metrics:algo.CalcFuzzyScore()Outcome:SKIPLOADINGdistMatrixbecause:Truebd=Noneyellow
SavingOverlapto:saved_dist_matrices/json/Overlap_None.json
>>>algo.DoCluster()array([0,0,0,0,1,1,1],dtype=int64)>>>algo.CalcScore()Purity:1.00NMI:1.00ARI:1.00Sil:0.59Acc:1.00Recall:1.00Precision:1.00(1.0,1.0,1.0,1.0,1.0,0.5873015873015872,0.011969540000001189,-1,1.0,1.0,1.0)FuzzyscoresPC:1.00NPC:1.00FHVâ†“:0.02FSâ†“:-2000.00XBâ†“:0.11BHâ†“:0.06BWS:-2000.00FPC:3.49SIL_R:0.70FSIL:0.70MPO:12.18NPE:0.01PE:0.01PEB:0.01Parameters:X: Categorical datasety: Labels of object (for evaluation only)n_init: Number of initializationsn_clusters: Number of target clustersmax_iter: Maximum iterationsverbose:random_state:Outputs:cluster_representatives: List of final representativeslabels_: Prediction labelsu: Fuzzy membership
cost_: Final sum of squared distance from objects to their centroidsn_iter_: Number of iterations\References:To be updated
Package: wcfmclient
WCFM ReST API ClientInstallationThis library is distributed onpypi. In order to add it as a dependency, run the following command:$pipinstallwcfmclientor$pip3installwcfmclientPrerequisiteThis library is built in consideration withJWT Authentication for WP REST API.
Make sure that you follow WCFM's official authentication setuphere.Using the client libraryInstantiate an API object as shown belowfromwcfmclient.apiimportAPIfromwcfmclient.jwt_auth_serviceimportJWTAuthServicefromwcfmclient.sessionimportsessionapi=API(**{"username":"vendor's username","password":"vendor's password","url":"https://your.domain.name","session":session})Authenticate with your store's server.fromwcfmclient.apiimportAPIfromwcfmclient.jwt_auth_serviceimportJWTAuthServicefromwcfmclient.sessionimportsessionapi=API(**{"username":"vendor's username","password":"vendor's password","url":"https://your.domain.name","session":session})jwt_auth_service=JWTAuthService(api)jwt_auth_service.authenticate()Consuming wcfm rest api.fromwcfmclient.apiimportAPIfromwcfmclient.jwt_auth_serviceimportJWTAuthServicefromwcfmclient.sessionimportsessionapi=API(**{"username":"vendor's username","password":"vendor's password","url":"https://your.domain.name","session":session})jwt_auth_service=JWTAuthService(api)jwt_auth_service.authenticate()res=api.get("wp-json/wcfmmp/v1/products/")products=res.json()
Package: wch
wchpip install wchwch --helpUsage: wch [OPTIONS] COMMAND

  Runs the provided command on detected file changes.

  example: wch -d src -d tests -i docs "black --check ."

Arguments:
  COMMAND  [required]

Options:
  -d, --directory TEXT  [default: .]
  -i, --ignore TEXT     [default: ]
  --help                Show this message and exit.