Saravanan666/pypi-org huggingface dataset:
Package: westac-statistics
Package for parsing the Swedish parlimentary proceedingsThe proceedings can be foundhereThis can create a Pandas dataframe containing all speeches found, along with who spoke and when.The usual way to use this method is in combination with Jupyter notebooks that are not included as part of this package.Docker-compose fileThe github repository includes a docker-compose file along with necessary files for execution.This includes:Notebooks in .py format (must be converted using jupytext)Stop words for the notebooksdocker-compose files for executionScripts for converting between notebooks and py filesDocker executionNote that the notebooks expects to have access to the riksdagen-corpus files, so they must also be added by the user in the directoryriksdagen-corpusin the root of this repository.To then start the file, simply go to thedockerdirectory and execute the commanddocker-compose up -dto start the container. The default listening port is9006instead of the default 8888, so if the notebook is started on the local machinethis linkshould workDuring startup, the notebooks in.pyformat will be automatically converted to jupyter notebook format, but no files will be overwritten. If the user wishes to redo the conversion, delete the appropriate notebook files and run the script again manually or restart the container.Similarly, if changes should be converted back to.pyformat from notebook format, use the scriptnotebook_to_py.shinside the docker container.
Package: westat
金融行业信用评分卡模型开发工具一、描述用于开发信用评分卡模型的python包，包含特征分箱、特征筛选、WOE和IV计算，KS值和AUC计算、模型提升度LIFT、模型稳定性 PSI 计算、决策树绘制、评分卡制作等功能另外，westat包含常用的金融计算函数，例如等额本息、等额本金等还款方式的计算。westat基于python3.10进行开发，是开源数据分析处理项目pyminer的一部分，但是也可以被单独使用。
westat 希望更多朋友能够参与项目，一起维护并提升！二、交流QQ群：945391275邮箱：westat@foxmail.com三、安装pipinstallwestat四、开发# 创建环境condaenvcreate-fenvironment.yml# 激活环境condaactivatewestat-dev# 构建python-mbuild# 上传到 pypipython-mtwineuploaddist/*五、测试# 创建环境condaenvcreate-fenvironment.yml# 激活环境condaactivatewestat-dev# 测试jupyter-notebook# 在jupyter上打开 HereWeGo.ipynb 进行测试六、常见操作查看版本号importwestat
westat.version使用教程请查看帮助文档https://westat.readthedocs.io决策树分箱等频分箱个性化分箱ks和auc计算ks绘图模型提升度 Lift 计算模型稳定度 PSI计算评分卡制作评分卡分数预测
Package: westeros
westeros[Deprecated] As test is part of DevOps.Please Move to another project[super-devops]Westeros is pure python code.Westeros based on robotframework and unittest.[awesome-testing]Developmentdevelopment:pycharm
intellibot
ideavimfirefox for ui:geckodriver 0.19.0
firefox 55.0
selenium 3.5chrome for ui:chromedriver 2.33
chrome 60-62
selenium 3.5usageDownload source code and extend:$ git clone https://github.com/crazy-canux/westeros.gitInstall from source code:$ sudo python setup.py installCommand line is the only user interface:$ westeros --helpContribution[Contribution]Authors[Authors]License[License]
Package: west-ic-antenna
WEST ICRH Antenna Electrical ModelThis code is a numerical model of the WEST Ion Cyclotron Resonance Antenna. The code builds the electrical circuit of an antenna, connecting the different parts of the antenna separately full-wave calculated. The front-face of the antenna, evaluated using bespoke antenna code or full-wave software, is given as an input. The antenna tuning capacitors can be automatically optimized for a given frequency. The voltages and currents at the capacitors can be evaluated for a given antenna excitation (power and phase).Antenna Digital TwinYou can test the antenna model online with Binder:InstallationThe package can be installed via pypi:pip install west-ic-antennaReferencesHillairet, J., 2020. RF network analysis of the WEST ICRH antenna with the open-source python scikit-RF package. AIP Conference Proceedings 2254, 070010.https://doi.org/10/ghbw5p(free versionhttps://hal-cea.archives-ouvertes.fr/cea-02459571/document)
Package: westworld
WestworldDescriptionWestworldis a multi-agent simulation library, its goal to simulate and optimize systems and environments with multiple agents interacting. Its inspiration is drawn from Unity software andUnity ML Agents, adapted in Python.The goal is to be able to simulate environments in logistics, retail, epidemiology, providing pre-coded spatial environments and communication between agents. Optimization can be included using heuristics as well as Reinforcement Learning.!!! warning "Experimental"
This library is extremely experimental, under active development and alpha-release
Don't expect the documentation to be up-to-date or all features to be tested
Please contactusif you have any questionThe name is of course inspired by the TV series Westworld, which is actually a gigantic multi-agent simulation system.DocumentationDocumentation is available locally in docs folder or online athttps://theolvs.github.io/westworldFeaturesCurrent featuresEasy creation of Grid and non-grid environmentsObjects (Agents, Obstacles, Collectibles, Triggers)Subclassing of different objects to create custom objectsSpawner to generate objects randomly in the environmentBasic rigid body system for all objectsSimple agent behaviors (pathfinding, wandering, random walk, fleeing, vision range)Automatic maze generationLayer integration to convert image to obstacle and snap it to a gridSample simulations and sample agents for classic simulationsSimulation visualization, replay and export (gif or video)Roadmap featuresMore classic simulations and tutorials (boids, sugarscape)Better pathfindingEasy Reinforcement Learning integration with Stable BaselinesOther visualization functions than PyGame for web integrationInstallationInstall from PyPiThe library is available onPyPiviapip install westworldFor developersYou can clone the github repo / fork and develop locallyPoetry is used for environment management, dependencies and publishing, after clone you can run# To setup the environment
poetry install

# To run Jupyter notebook or a python console
poetry run jupyter notebook
poetry run pythonContributorsThéo Alves Da CostaJavascript versionA javascript version is being developed athttps://github.com/TheoLvs/westworldjs
Package: wet_copy
Wet CopyThe purpose of this program is to format and print wetlab protocols that are
stored as text files in git repositories.  Printed out protocols are nice
because they can be easily carried around lab during an experiment, annotated
in real time, and ultimately taped into a lab notebook.  Digital protocols
stored as text files in git repositories are nice as well, because they can be
updated and modified without losing any information.  This script helps manage
the process of printing out and keeping track of digital protocols.To use this program, start by the adding protocols you use to a git repository.
Then use the wet_copy command to print out copies of your protocols formatted
with all the information needed to recover the original digital protocol (e.g.
a repository URL and a commit hash), enough space to make annotations in the
margins, and lines showing where to cut so the protocol can be taped into a lab
notebook.  The wet_copy command won’t let you print protocols that have any
lines wider than 53 characters (otherwise the margin will be too small) or that
have any uncommitted changes (otherwise the original protocol won’t be
recoverable).InstallationThe easiest way to install wet_copy is from the PyPI:$ pip3 install wet_copyAlternatively, you can clone this repository and install wet_copy from source:$ git clone git@github.com:kalekundert/wet_copy.git
$ pip3 install ./wet_copyNote that wet_copy requires python 3.LicenseCopyright (C) 2015, Kale KundertThis program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.
Package: wethenew-client
wethenew-clientOverviewThe wethenew-client is an unofficial Python wrapper for the API of the Wethenew sneaker platform. It facilitates interactions with the platform, allowing users to manage their sneaker listings and offers. This project is independent and is not officially associated with Wethenew.InstallationYou can install the package using pip:pipinstallwethenew-clientFunctionsBelow is a table of the functions available in the WethenewClient object, detailing whether user login is required.Function NameDescriptionLogin Requiredget_current_listingsRetrieves the current sneaker listings.Yesget_current_offersFetches the current sneaker offers.Yesextend_listingsExtends the expiration date of sneaker listings.Yesaccept_offerAccepts a specific offer.Yesreject_offerRejects a specific offer.YesFiltersWhen listing a product or retrieving current listings, you can specify filters to narrow down the results or to set the conditions of your listing. Below are the filter types and their possible values:ListingDurationThis filter is used to specify the duration for which a product will be listed on the platform. The possible values are:Days15: List the product for 15 days.Days30: List the product for 30 days.Days60: List the product for 60 days.Usage ExamplefromwethenewimportWethenewClient,ListingDuration# Initialize the WethenewClient with your credentials.client=WethenewClient(email='your_email@example.com',password='your_password',proxies_file_name='path_to_proxies_file.txt')# Retrieve current listings and print them.listings=client.get_current_listings()print(listings)# Accept an offer.client.accept_offer(offer_id='some_offer_id',variant_id=123)# Extend a listing.client.extend_listings(days=ListingDuration.DAYS60,apply_to_same_variants=True)NoteThe use of proxies is recommended to avoid potential rate limits or blocks by the Wethenew API. You can specify proxies in a file, as shown in the example.
Package: wethr
WeatherCLIWeb Scraping tool and a Command Line Interface forWeather.comInstallatoinInstall via PIPpip install weathercliorGit Clone usinggit clone https://github.com/AbinashSinha/WeatherCLIUsageName of the City/Place-p PLACE, --placeDate-d DATE, --date [default : Current Time]Type of Forecast:1: Daily,2: Hourly,3: 5-Days,4: 10-Days,5: Weekend,6: Monthly.-t TYPE, --type [Default: 1: Daily]weather -p Bhopal -t 3weather -p Bhopal -t 2weather -p Bhopal -d 12/03/19APIReturn a JSON fileusage:from weathercli import WeatherWeather(place='Bhopal')Weather(palce='Bhoapl',date='20/03/19')Weather(place='Bhopal,typeof='2' )
Package: wetland
wetlandMapping surface water and wetland hydrological dynamics using Google Earth EngineFree software: MIT licenseDocumentation:https://wetland.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-10-18)First release on PyPI.
Package: wetransfer
WeTransfer Python SDKA Python SDK for the WeTransfer's Public APIInstallationUse PYPI to install latest stable version:pip install wetransferCheckout the repository and inside the repo's root directory use pip to install latest version to your environment with:pip install .UsageBefore starting make sure you have an API key acquired fromDevelopers Portal.As a first step you need to create a client and fill in your board name:fromwetransfer.clientimportWTApiClientkwargs={"key":"<my-very-personal-api-key>"}wt_client=WTApiClient(**kwargs)After you have the client instance you need to authorize using this client:wt_client.authorize()If authorization is successful you should be able to create an new empty transfertransfer=wt_client.create_transfer(transfer_name="My very first Transfer")Afterwards you should be able to add items to itfromwetransfer.itemsimportFilef1=File("~/test.txt")f2=File("~/test2.txt")transfer.add_items([f1,f2])print(transfer)After callingadd_itemsmethod the upload process should start. As soon as it returns you should be
able to see details for this transfer and access the url that your transfer is available for download.The full code snippet is as follows:importsysfromwetransfer.itemsimportFile,Linkfromwetransfer.clientimportWTApiClientkwargs={"key":"<my-very-personal-api-key>"}wt_client=WTApiClient(**kwargs)ifnotwt_client.authorize():sys.exit(0)transfer=wt_client.create_transfer(transfer_name="My very first Transfer")f1=File("./test.txt")l1=Link("https://wetransfer.com/","WeTransfer Website")transfer.add_items([f1,l1])print(transfer)which if you run it you should see something like:Transfer with id: <id>, can be found in short url: <str>, with following items: ['Transfer item, file type, with size 10, name test.txt, and local path /Users/bla/test.txt, has 1 multi parts']Helper methodsIf you need to upload only file you can skip theFileobjects creation and use a helper function that allows you to specify a list of paths as strings and will add these for you a givenTransfertransfer.add_files(["file1.txt","file2.txt"])Similar method exist for URLs:transfer.add_links(["https://wetransfer.com/","http://www.visitgreece.gr/"])DebuggingIf you need to debug or investigate weird behaviours you can enable logs for this SDK by enabling the dedicated python loggerimportlogginglogging.basicConfig()logging.getLogger("wetransfer-python-sdk").setLevel(logging.DEBUG)kwargs={"key":"<my-very-personal-api-key>"}wt=WTApiClient(**kwargs)...You can set the severity level accordingly depending on the verbosity you desire.ContributingSeededicatedsection.
Package: wetransferpy
Python script for uploading and downloading wetransfer files from the command line.
Inspired byupload-wetransferbykraynelandwetransfer-uploadbySpencer Cree <https://github.com/creemerica>.FeaturesUpload files or directories of files with or without authenticationDownload file from urlShow progress of upload and downloadInstallationpipinstallwetransferpyorgitclonehttps://github.com/predat/wetransferpyUsageAuthenticate upload:fromwetransferpyimportWeTransferwt=WeTransfer(username="name@example.com",password="thepassword",sender="sender@example.com",receivers=["receiver1@example.com","receiver2@example.com"],channel='',message='Hello from python',expire_in='3m',progress=True,)wt.uploadFile('thefile.mov')Anonymous upload:fromwetransferpyimportWeTransferwt=Wetransfer()url=wt.uploadFile('thefile.mov')printurlUpload Shell script usage:wetranfer-upload-husage:wetransfer-upload[-h][-b][-uUSERNAME][-pPASSWORD][-eEXPIRE][-cCHANNEL][-r[RECEIVER[RECEIVER...]]][-sSENDER][-mMESSAGE][-R]files[files...]UploadsfilesorfolderstoWeTransfer.positionalarguments:filesfilesordirectorytosendoptionalarguments:-h,--helpshowthishelpmessageandexit-b,--no-progressbarHideprogressbar-uUSERNAME,--usernameUSERNAMEWeTransferuseraccountname-pPASSWORD,--passwordPASSWORDWeTransferpassword-eEXPIRE,--expireEXPIREFileexpiration-cCHANNEL,--channelCHANNELWeTransferchannel-r[RECEIVER[RECEIVER...]],--receiver[RECEIVER[RECEIVER...]]emailsofthereceivers-sSENDER,--senderSENDERemailofthesender-mMESSAGE,--messageMESSAGEmessagetosend-R,--recursiverecursivesendDownload shell script usage:wetranfer-download-uhttp://we.tl/XV4MmuqPRd
Package: wetsuit
WetsuitA Scikit-Learn wrapper for H2O Estimators.Why WetsuitWhile H2O Estimators have the.fit()and.predict()methods of the Scikit-Learn API, they don't always
function as expected, especially withPipelineobjects. This package contains two estimators and a
single transformer to remedy.For example. theH2OEstimator.fit()method expects twoH2OFrameobjects, vice pandasDataFrameor
numpyNDArrayobjects. Wetsuit provides two options for handling this behavior:WetsuitRegressorandWetsuitClassifierclasses that wrapH2OEstimatorobjects and handle type conversion automatically, within the.fit()and.predict()methods.H2oFrameTransformerclass that converts bothDataFrameandNDArrayobjects toH2OFrameobjects via.fit_transform(), and an.inverse_transform()method to convert back.InstallCreate a virtual environment with Python >= 3.9 and install from git:pipinstallgit+https://github.com/chris-santiago/wetsuit.gitUseDocumentationDocumentation hosted on Github Pages:https://chris-santiago.github.io/wetsuit/
Package: wettingfront
WettingFrontWettingFront is a simple and extensible Python package for wetting front analysis.UsageStore analysis parameters in configuration file (YAML or JSON).data1:
    type: Unidirectional
    model: Washburn
    path: your-video.mp4
    output-vid: result.mp4
    output-data: result.csv
data2:
    type: MyType
    my-parameters: ...
data3:
    ...Pass the file to command:$ wettingfront analyze config.ymlYou can also define your own analysis type bywriting a plugin.InstallationWettingFront can be installed usingpip.$ pip install wettingfrontTo access image processing features, install with optional dependency[img].$ pip install wettingfront[img]Other optional dependencies are listed inmanual.DocumentationWettingfront is documented withSphinx.
The manual can be found on Read the Docs:https://wettingfront.readthedocs.ioIf you want to build the document yourself, get the source code and install with[doc]dependency.
Then, go todocdirectory and build the document:$ pip install .[doc]
$ cd doc
$ make htmlDocument will be generated inbuild/htmldirectory. Openindex.htmlto see the central page.
Package: wev
wev: with environment variableswevis a cross-platform command line tool for resolving temporary environment variables.For example:wevcancreate a multi-factor authenticated Amazon Web Services session.wevcanset Amazon Web Services named profiles per-project.wevcanrequest an Amazon Web Services CodeArtifact authorisation token on behalf of pipenv.User and developer documentation is online atwevcli.app.Thank you! 🎉My name isCariad, and I'm anindependent freelance DevOps engineer.I'd love to spend more time working on projects like this, but--as a freelancer--my income is sporadic and I need to chase gigs that pay the rent.If this project has value to you, please consider☕️ sponsoringme. Sponsorships grant me time to work onyourwants rather thansomeone else's.Thank you! ❤️
Package: wev-awsmfa
wev-awsmfa: Awevplugin to support Amazon Web Services multi-factor authentication on the command linewev(withenvironmentvariables)is a command line tool for resolving environment variables and running shell commands.Thewev-awsmfaplugin allows you to verify your Amazon Web Services via multi-factor authentication without needing to modify your credentials file.ExampleSay your IAM user policy requires you to verify your identity via multi-factor authentication. If you try to use theawscommand line…awss3ls…your request is denied, because you didn't multi-factor authenticate:An error occurred (AccessDenied) when calling the ListBuckets operation: Access DeniedWith an appropriate.wev.ymlconfiguration (see below), you can run theawscommand line viawev:wevawss3lsResolving AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN...
Please enter your MFA token to authenticate.

Token:Enter your one-time token, thenwev-awsmfawill create a temporary session, set the environment variables, then run the command:2019-10-13 11:42:03 bucket-one-87yiuhhguy98ouo
2019-10-13 11:42:27 bucket-two-kjhu65564ewtrgd
2020-07-03 15:38:22 bucket-thr-08uytgftryjh766InstallationInstallwev, then:pip3installwev-awsmfaConfigurationThekeymust be a list of three strings, describing the environment variables to set for:The access key ID. You probably want this to beAWS_ACCESS_KEY_ID.The secret access key. You probably want this to beAWS_SECRET_ACCESS_KEY.The session token. You probably want this to beAWS_SESSION_TOKEN.Your minimal configuration is likely to look like this:[AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN]:plugin:id:wev-awsmfaThere are two optional properties:mfa_devicedescribes the ARN of the MFA device to use.wev-awsmfawill attempt to discover this automatically if omitted.durationdescribes the duration of the temporary session, in seconds. Default is 900 seconds.[AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN]:plugin:id:wev-awsmfaduration:1800mfa_device:arn:aws:iam::123456789012:mfa/fooDevelopmentTest plancdinto a new directory and create.wev.yml:[AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN]:plugin:id:wev-awsmfaCreate an IAM user namedxand attach this inline policy:{"Version":"2012-10-17","Statement":[{"Action":["iam:GetUser","iam:ListMFADevices"],"Effect":"Allow","Resource":["arn:aws:iam::*:user/${aws:username}"]},{"Action":"s3:ListAllMyBuckets","Condition":{"Bool":{"aws:MultiFactorAuthPresent":"true"}},"Effect":"Allow","Resource":"*"}]}Useaws configureto set the user's credentials into a new profile namedy.Temporarily set this new profile as the default:exportAWS_DEFAULT_PROFILE=<Y>Confirm that you do not have permission to list your S3 buckets:awss3lsAn error occurred (AccessDenied) when calling the ListBuckets operation: Access DeniedInstallwevandwev-awsmfa:pipenvinstallwevwev-awsmfaUsewevto list your S3 buckets:wev--log-leveldebugawss3lsYou should be prompted for a token, then your S3 buckets should be listed.
Package: wework
# Aboutwework 是为了简化开发者对企业微信API接口的使用而设计的，API调用库系列之 python 版本[官方文档](https://work.weixin.qq.com/api/doc)# Install & Update` pip install-Uwework `# A Simple Example`python from wework.CorpApi import CorpApi, CORP_API_TYPE api =CorpApi(TestConf['CORP_ID'],TestConf['APPROVAL_APP_SECRET'])params = {"starttime": 1566871220, "endtime": 1566874224} response =api.httpCall(CORP_API_TYPE['GET_APPROVAL_DATA'],params) `详细使用方法参考examples路径下的样例# 关于token的缓存token是需要缓存的，不能每次调用都去获取token，[否者会中频率限制](https://work.weixin.qq.com/api/doc#10013/%E7%AC%AC%E5%9B%9B%E6%AD%A5%EF%BC%9A%E7%BC%93%E5%AD%98%E5%92%8C%E5%88%B7%E6%96%B0access_token)
在本库的设计里，token是以类里的一个变量缓存的
比如api/src/CorpApi.py 里的access_token变量
在类的生命周期里，这个accessToken都是存在的， 当且仅当发现token过期，CorpAPI类会自动刷新token
刷新机制在 api/src/AbstractApi.py
所以，使用时，只需要全局实例化一个CorpAPI类，不要析构它，就可一直用它调函数，不用关心 token` api = CorpAPI(corpid, corpsecret); api.dosomething() api.dosomething() api.dosomething()....`当然，如果要更严格的做的话，建议自行修改，全局缓存token，比如存redis、存文件等，失效周期设置为2小时。# 注意事项WXBizMsgCrypt.py文件封装了WXBizMsgCrypt接口类，提供了用户接入企业微信的三个接口，Sample.py文件提供了如何使用这三个接口的示例，ierror.py提供了错误码。WXBizMsgCrypt封装了VerifyURL, DecryptMsg, EncryptMsg三个接口，分别用于开发者验证回调url，收到用户回复消息的解密以及开发者回复消息的加密过程。使用方法可以参考Sample.py文件。加解密协议请参考企业微信官方文档。本代码用到了pycrypto第三方库，请开发者自行安装此库再使用。# 其它语言的库推荐python :https://github.com/sbzhu/weworkapi_pythonabelzhu@tencent.com(企业微信团队)ruby :https://github.com/mycolorway/weworkMyColorway(个人开发者)php :https://github.com/sbzhu/weworkapi_phpabelzhu@tencent.com(企业微信团队)golang :https://github.com/sbzhu/weworkapi_golangryanjelin@tencent.com(企业微信团队)golang :https://github.com/doubliekill/EnterpriseWechatSDK1006401052yh@gmail.com(个人开发者)# Contact usabelzhu@tencent.com
Package: weworkapi-cfomp
# 简介企业微信服务端API，运管平台依据https://github.com/sbzhu/weworkapi_python.git改写成python3版本
企业微信服务端API文档地址https://work.weixin.qq.com/api/doc/90000/90135/90664运管平台目前和企业微信的集成主机在以下两个应用场景：
1. 发送应用消息，https://work.weixin.qq.com/api/doc/90000/90135/902362. 接收消息与事件，https://work.weixin.qq.com/api/doc/90000/90135/90237