Saravanan666/pypi-org huggingface dataset:
Package: rcmd
rcmd.py=======Sort of like Python's built in "cmd" module, but with regex handlers.## Basic usage```python# -*- coding: utf-8 -*-from rcmd import Rcmdr = Rcmd(__name__)# Note: this will match "foo!", and "foober" - use "foo$" if you want# to avoid this sort of stuff. Regexes are like that, yeah?@r.command(r"foo")def foo(args):print("Foo!")@r.command(r"\d+!", with_cmd=True)def fact(args, cmd):print(cmd[:-1] + "?")r.loop()```## Registering various handlersRcmd has a few handlers you can override (through decorators, of course!).```python@r.emptylinedef emptyline():# Called when the user doesn't type anything.pass@r.defaultdef default(line):# Called when nothing matches the user's line.pass@r.bangdef bang(args):# Called when the user types "! [stuff]".# Convenience since this is a handy addition.pass@r.questiondef question(args):# Called when the user types "? [stuff]"# Convenience since this is a handy addition.pass@r.precmddef precmd(line):# Allows you to modify a line before it passes through# the parser and matchers.return line@r.postcmddef postcmd(stop, results, line):# `stop` -> truthy values mean we'll stop next loop.# `results` -> list of results any matching commands returned# `line` -> the line the user enteredreturn stop, results@r.preloopdef preloop():# Called before the initial command loop starts.pass@r.postloopdef postloop():# Called after the command loop finishes.pass```## Example `help` commandThis isn't built in because to each his own - you might want different things to me, so here's a basic structure you can work with.This will let people do `help` and `help thing` (with optional `?` alias to help), and prints the `__doc__` of each command handler that _thing_ matches.```python@r.question@r.command(r"help$")def help(args):def tidy_regex(regex):return regex.lstrip("^").rstrip("$")def create_help(regex, functions, matching=None):if matching is not None and not regex.match(matching):return Noneout = [">>> {0}".format(tidy_regex(regex.pattern))]for i, function in enumerate(functions, 1):if function.__doc__:out.append(textwrap.dedent(function.__doc__))else:out.append("{0}. No help provided. :( ({1})".format(i, function.__name__))out.append("")return "\n".join(out)# No arguments provided, just list things.if not args or len(args) != 1:for regex, functions in r.handlers.iteritems():print(create_help(regex, functions))return# Do a search for matching handlers.cmd, matched = args[0], Trueprint('"{0}" would run:\n'.format(cmd))for regex, functions in r.handlers.iteritems():t = create_help(regex, functions, matching=cmd)if t is None:continuematched = Trueprint(t)if not matched:print("nothing :(\n")```
Package: rcmdow
Welcome to my rich CMDOW cliThe CMDOW cli is a command line interface for the CMDOW tool. It is written in python and is a work in progress.The CMDOW cliThe goal is to make a command line interface for CMDOW that is easy to use and has a rich feature set.
To avoid python's (andpandas'overhead,the cli uses polarsto do the heavy lifting.The CMDOW toolCMDOW is a command line tool for Windows that allows you to control windows. It is written in C++ and is available onthe author's webpage.Why use CMDOW?I just stumbled upon CMDOW and I think it is a great tool. It is very powerful and allows you to do a lot of smart stuff with regards to windows. As a humble side project, I decided to write a command line interface for CMDOW that is easy to use and has a rich feature set.For example, CMDOW allows you to do the following:Get a list of all windows and their positions/sizes (in pixels):cmdow/p/fHowever the output was pure text, and I wanted to add a little bit of spark to it. So I wrote a python script that usespolarsto parse the output and make it a bit more readable. You can get the same output as above by running the following command:rcmdowrawNote that therawcommand is just an alias forcmdow /p /f.
To add a little bit of spark to the output, you can run the following command:rcmdowlsThis will give you a nice table with the windows and their positions/sizes.Features / UsageGet information about windowsThe equivalent ofcmdow /t /p /f(which lists only taskbar windows) can be achieved by running the following command:rcmdowlstTo let the cli tool guess what your current layout is, run the following command:rcmdowlayoutThis output is just a filter on top of thercmdow lscommand. It will show you all windows that are visible on your screen.Move windowsSo far the cli tool only supports screen splitting. You can split your screen into two halves by running the following command:Left/Right:rcmdowhzlname1name2You can get the names of the windows by running thercmdow lsorrcmdow lstcommand and selecting theImagecolumn.
Note that the names arenot case sensitive.Top/Bottom:rcmdowvtlname1name2InstallationPrerequisitesPython 3.8 or higherThe CMDOW tool (availablehere)An easy way to installI recommend usingscoopto install the CMDOW cli. It is a command line installer for Windows that makes installing and updating software a breeze.To install scoop, run the following command in powershell:Set-ExecutionPolicyRemoteSigned-ScopeCurrentUser# Optional: Needed to run a remote script the first timeirmget.scoop.sh|iexTo install the CMDOW cli, run the following command in powershell:scoopbucketaddextrasscoopinstallcmdowNote:The cli tool assumes you can call cmdow from the command line. If you installed CMDOW to a different location, you will have to add the location to your PATH variable.
Package: rcmemoize
# rcmemoize (Django)##### Cache anything in the current request cycle in memory for preventing duplicate method callers.##### It works for Django only for now. But can be contributed to extend other Python Web Frameworks like Flask, Bottle, TurboGears etc.# Installation```bashpip install rcmemoize```# Configuration##### Add bottom of the of the MIDDLEWARE_CLASSES```bashrcmemoize.middleware.memoization_middleware.RequestCycleMemoizationMiddleware```# Usage```bashfrom rcmemoize.memoization import request_cycle_memoize@request_cycle_memoize()def your_method(*args,**kwargs):...```# CONTRIBUTE##### All contributions are very welcomed!
Package: rcmf
Risk control modeling framework（风控建模工具集）声明：工具箱为风控建模过程提供支持，因工作紧迫暂于23Feb19停更；感谢jiangchao8@jd & huyao3@jd为这些积累提供若干支持最新Note：整个工具箱已做完re-view：包括每个模块其他语言的double-check、每个模块参数名称标准化2.2.2 Chi2_merge.py模块可以使用，但还需修改Example.x为测试实例，可参照（！！实际项目中的特征名和数据等保密信息已做处理！！）Pypi:https://pypi.org/project/rcmf/需更新：特征筛选部分没有落地，仍在整理中，包括：集成模型筛选方法、逻辑回归L1正则化vintage、迁移率、pmml等3个使用示例最好生成MD，增加可读性2.2.2 Chi2_merge.py：去除卡方分箱的“最优分箱组数”判定，添加卡方值阈值约束特征筛选：逐步回归更新日志：29Dec2018添加特征筛选部分（2.x）：包含特征稳定性（PSI from *Yao）、特征共线性（方差膨胀因子和相关性矩阵）Data_Explore.py：去除相关性矩阵、对分布图拼接按照4维或9维子图展示4.1 Model performance.py：添加准召图更新日志：13Jan20192.2.2 Cut_merge.py：① 优化分箱过程，直接从pd.cut解析结果； ② 优化从分箱数据集至WOE数据集的映射逻辑； ③ 将WOE计算并入分箱程序4.1 Model performance.py：① 利用sklearn中混淆矩阵函数加快计算； ② 添加3线图（准确率、召回率、F1-Score）更新日志：25Jan20192.x Collinearity.py：相关性计算部分的热力图展示，可以控制哪些特征用于绘图；例如可以abs(corr) > 0.8的特征，或者是按相关性排序后取前20个特征3.x PDO_Score_Convert.py：放活odds定义，如不定义，则按照如下规则计算：对train数据集计算ks切点，取切点的百分位点区间内的所有y_label，计算好坏比RCMF使用说明：完成初版更新日志：10Jun2019已为全部脚本更新helpData_Explore.py：更新计算方式，更新数值型特征的自定义分布，更新伪字符型变量（99%都是数值的字符型变量）分布探索
Package: rcmp
Rcmp is a more flexible file and directory comparison tool.InstallationInstall the Python modules. You can either do it for all users:#pythonsetup.pyinstallOr just for yourself:$pythonsetup.pyinstall--userUnit TestsYou can run the unit tests using “make check” but this currently
presupposes some things like a globally installed version of
virtualenv.UsageThe basic idea here is that depending on content, files don’t have to
be bitwise identical in order to be equivalent or “close enough”.
This is particularly true for things like build directories where
binaries might include otherwise irrelevant nondeterminisms like time
stamps.  Rcmp includes a flexible extension structure to allow for a
living set of file comparisons.See doc for more info.
Package: rcmt
rcmtrcmt automates refactorings across many repositories.Write Python code to define how the content of files should look like. Then let rcmt
apply the changes across repositories and create pull requests.FeaturesMass Refactoring- create, update or delete files across many repositories.Automation- automatic creation of merge requests in repositories; optionally
merge them automatically if approved and all checks have passed.Flexibility- call third-party APIs or integrate libraries.The Task fileA Task file tells rcmt which repositories to modify. It is written in Python.fromrcmtimportTask,Context,register_task# Replace with your repository.REPOSITORY="github.com/wndhydrnt/rcmt-example"# A Task bundles the code that determines which repositories to modify and how to modify# them. It is a regular Python class that extends the base class `Task`.classHelloWorld(Task):name="hello-world"pr_title="rcmt Hello World"pr_body="""This pull request has been created as part of the how-to guide:https://rcmt.readthedocs.io/get-started/create-a-task/"""# The `filter` method determines which repositories to modify. It is called by rcmt# for each repository.deffilter(self,ctx:Context)->bool:returnctx.repo.full_name==REPOSITORY# The `apply` method contains the code that modifies files in a repository. In this# example, the `own` function creates the file `hello-world.txt` with the content# `Hello World` in the root of the repository. `target` is not an absolute path# because rcmt automatically sets the current working directory (`cwd`) to the# checkout of the repository.defapply(self,ctx:Context)->None:withopen("hello-world.txt","w+")asf:f.write("Hello World")# Register the task with rcmt so rcmt knows about it.register_task(HelloWorld())What's nextTutorialLearn how rcmt worksFeaturesExamplesReferenceContributingLearn how to contribute code to rcmt
Package: rcnb
RCNB.PythonThe world is based on RC. Thus,everythingcan be encoded into RCNB.RCNB is available in various languages:PythonJavaScriptCPHPPascal(more..)Why RCNB?RCNB vs Base64Base64RCNBSpeed❌ Fast✔️ Slow, motivate Intel to improve their CPUPrintable❌ On all OS✔️ Only on newer OS, motivate users to upgrade their legacy OSNiubility❌ Not at all✔️ RCNB!ExampleQmFzZTY0Lg==ȐĉņþƦȻƝƃŔćInstall>$pipinstallrcnbUsageimportrcnbprint(rcnb.encode("Who NB?"))# ȐȼŃƅȓčƞÞƦȻƝƃŖćprint(rcnb.decode("ȐĉņþƦȻƝƃŔć"))# RCNB!Shell is also support:python3-mrcnb-e"Who NB?"# ȐȼŃƅȓčƞÞƦȻƝƃŖćpython3-mrcnb-d"ȐĉņþƦȻƝƃŔć"# RCNB!输入输出重定向仍然有Bug,正在努力修复
Package: rcn-py
Research Collaboration Network (rcn_py)This research collaboration web application leverages data from multiple research databases, including Scopus, OpenAlex, and RSD, and is built using the Neo4j database and d3 visualization technology.Table of ContentsInstallationUsageLicenseInstallationTo install rcn-py, you can simply use pip:pip install rcn-pyUsageThercn-pypackage utilizes data from various research sources including OpenAlex, Scopus, and RSD. Please note the following details about data handling in our package:OpenAlex: Data is directly accessed through their API.Scopus and RSD: For optimal performance, we've pre-stored data from Scopus and RSD in a Neo4j Graph Database. Users are required to manage the data storage for these two sources on their own.Detailed instructions for setting up and managing data can be found in theWorkflow_D3.ipynbJupyter notebook included in the package. We highly recommend going through this notebook to understand the complete workflow and data requirements of thercn-pypackage.After the database has been properly set up and is in use, ensure that all indices and constraints in the Neo4j database have been built. This step is critical to maintaining efficient database search operations.Then, confirm that the database is active.To run the application, use the following command in your terminal:python3 rcn_d3.py [uri] [username] [password]Replace [uri], [username], and [password] with your Neo4j database's URI, your username, and your password, respectively.By running this command, you'll start the rcn-py application, which will utilize the data in your Neo4j database to generate insights about co-author networks.Licensercn-pyis distributed under the terms of theMITlicense.
Package: rcoc
rcoc - Random Country or CitySimple script forgenerating random city name (any country)generating random country namegenerating random city from of countrygenerating random location (country and city)usageimportrcocprint("Random city: ",rcoc.get_random_city())rand_country=rcoc.get_random_country()print("\nRandom country: ",rand_country)print("Random{0}city:{1}".format(rand_country,rcoc.get_random_city_by_country(rand_country)))print("\nRandom location: ",rcoc.get_random_location())output exampleRandom city:  Gagliano Aterno

Random country:  Bolivia
Random Bolivia city: Reyes

Random location: Annecy-le-Vieux, FranceGetting list of all countries as list:all_countries=rcoc.get_all_countries()
Package: rcode-tddschn
rcode-tddschnrcode Improved.Fork ofhttps://github.com/yihong0618/rcode.rcode-tddschnImprovementsUsageNoteInstallationpipxpipDevelopImprovementsSupports specifying VSCode release channel (stable, insiders, etc.) via-rflag.Deleting and listingshortcuts.Detailed help messages.Grammar fixes.Uses pyproject.toml instead of setup.py.Usage$ rcode --help

usage: rcode [-h] [-r {stable,insiders}] [-l] [-s SHORTCUT_NAME] [-o OPEN_SHORTCUT] [-L] [-d DELETE_SHORTCUT] [-D] [dir] [host]

A command line tool to open directories in VSCode remotely or locally.

positional arguments:
  dir                   The local directory path to open in VSCode or the remote directory path when used with a host.
  host                  The SSH hostname as specified in your .ssh/config to open a remote directory in VSCode.

options:
  -h, --help            show this help message and exit
  -r {stable,insiders}, --release {stable,insiders}
                        VS Code release channel to use (stable or insiders)
  -l, --latest          Open the most recently used remote directory.
  -s SHORTCUT_NAME, -sn SHORTCUT_NAME, --shortcut_name SHORTCUT_NAME
                        rcode host dir -s <shortcut_name> | Add a shortcut name for the remote directory to quickly access it later. | Saved to
                        /Users/tscp/.rcode-tddschn.csv
  -o OPEN_SHORTCUT, -os OPEN_SHORTCUT, --open_shortcut OPEN_SHORTCUT
                        Open a remote directory quickly using the previously saved shortcut name.
  -L, --list            List all configured shortcuts
  -d DELETE_SHORTCUT, --delete DELETE_SHORTCUT
                        Delete a shortcut by name
  -D, --delete-all      Delete all shortcuts after confirmationNoteThis project depends ondistutilswhich was removed in Python 3.12.InstallationpipxThis is the recommended installation method.$ pipx install rcode-tddschn
# pipx install --python "$(which python3.11)" rcode-tddschnpip$ pip install rcode-tddschn
# python3.11 -m pip install rcode-tddschnDevelop$ git clone https://github.com/tddschn/rcode-tddschn.git
$ cd rcode-tddschn
# poetry env use "$(which python3.11)"
$ poetry install
Package: rco_dl
readcomiconline.to downloaderA readcomiconline.to downloader using asyncio.DependenciesNode.js: Used by cfscrape to bypass CloudFlare's antibot.Installationsudo pip3 install rco_dlto install it system-wide.Usagerco_dl <url_to_comic>will download the HQ images of the comic to a cbz file on the directory where the script is located.
Package: rcolors
Permission is hereby granted, free of charge, to any person obtaining a copy of thissoftware and associated documentation files (the "Software"), to deal in the Softwarewithout restriction, including without limitation the rights to use, copy, modify,merge, publish, distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject to the followingconditions:The above copyright notice and this permission notice shall be included in all copies orsubstantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULARPURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USEOR OTHER DEALINGS IN THE SOFTWARE.Description: rcolor 0.0.1-beta=================>## Descripcion> Sencillo script que permite introducir texto y el color con el que se imprimira en pantalla ese texto.### Demo[![asciicast](https://asciinema.org/a/p9li1MDwph2uyfA9Kk0bVgyED.png)](https://asciinema.org/a/p9li1MDwph2uyfA9Kk0bVgyED)Keywords: colores terminal texto colorPlatform: UNKNOWNClassifier: Development Status :: 4 - BetaClassifier: Intended Audience :: DevelopersClassifier: Intended Audience :: Information TechnologyClassifier: Programming Language :: Python :: 3.2Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Topic :: Software Development :: Libraries :: Python ModulesClassifier: License :: OSI Approved :: MIT License
Package: rcomp
Introductionrcompis a proof-of-concept for facilitating reproducible research by
running primary assets remotely while providing interaction and result
collection by easy-to-install client software.This Python package provides a client to thercompserver. Source code for
everything is available athttps://github.com/slivingston/rcompLicenseThis is free software released under the terms ofthe BSD 3-Clause License.  There is no warranty; not even
for merchantability or fitness for a particular purpose.  Consult LICENSE.txt
for copying conditions.
Package: rcon
rconAn RCON client implementation.Source RCON protocolBattlEye RCon protocolRequirementsrconrequires Python 3.10 or higher.DocumentationDocumentation is available onreadthedocs.InstallationInstall rcon from theAURor via:pip install rconQuick startTheRCONprotocols are used to remotely control game servers, i.e. execute
commands on a game server and receive the respective results.Source RCONfromrcon.sourceimportClientwithClient('127.0.0.1',5000,passwd='mysecretpassword')asclient:response=client.run('some_command','with','some','arguments')print(response)Async supportIf you prefer to use Source RCON in an asynchronous environment, you can usercon().fromrcon.sourceimportrconresponse=awaitrcon('some_command','with','some','arguments',host='127.0.0.1',port=5000,passwd='mysecretpassword')print(response)BattlEye RConfromrcon.battleyeimportClientwithClient('127.0.0.1',5000,passwd='mysecretpassword')asclient:response=client.run('some_command','with','some','arguments')print(response)Handling server messagesSince the BattlEye RCon server will also send server messages to the client
alongside command responses, you can register an event handler to process
those messages:fromrcon.battleyeimportClientfromrcon.battleye.protoimportServerMessagedefmy_message_handler(server_message:ServerMessage)->None:"""Print server messages."""print('Server message:',server_message)withClient('127.0.0.1',5000,passwd='mysecretpassword',message_handler=my_message_handler)asclient:response=client.run('some_command','with','some','arguments')print('Response:',response)Have a look atrcon.battleye.proto.ServerMessagefor details on the
respective objects.
Package: r-config
r_configa customized way to use configusage:from str:fromr_configimportRConfigrc=RConfig()str_yaml="""yek:ramin: 2mehran: 'salam'# comment to testdow:se:p1: 2.2f1: 'khodafez'"""rc.update_from_str(str_yaml)from file:fromr_configimportRConfigfrompathlibimportPathrc=RConfig()path=Path('/path/to/config.yaml')rc.update_from_file(path)from dict:fromr_configimportRConfigr_dict={'a':10,'b':'salam','f':{'p':2,'q':3}}rc=RConfig(r_dict)
Package: rconnet
rconnetThe project is a module for python, and the task of the module is to create a connection to the RCON Battlefield 2142, Battlefield 2 server. Simply put, it is an RCON client.Main idea of the project was to implement something similar to ORM, as for databases.It was developed on version python 3.11, it was not tested on other versions.FeaturesSeparate methods for server managementMaplist managerSettings managerBan managerPlayer managerManagers allow you to "objects" manageSpecificationsAdminscript - default supportBattlefield 2142 support (It has not been tested in Battlefield 2, but it can work)You can do anything with this module, for example, a web banlist, a GUI program, a bot for Discord or telegram. That was the goal, to use a ready-made solution for different purposes.ExamplesSimple output of the server namefromrconnet.rconbf2142.defaultimportDefaultwithDefault("127.0.0.1","super123")asrcon:name=rcon.settings.server_name()print(name)# Battlefield 2142View the maplist and install the next mapfromrconnet.rconbf2142.defaultimportDefaultwithDefault("127.0.0.1","super123")asrcon:maplist=rcon.maplist.listprint(maplist)# {0: Map(name=minsk, gpm=gpm_cq, size=32), 1: Map(name=fall_of_berlin, gpm=gpm_cq, size=32), 2: Map(name=suez_canal, gpm=gpm_ti, size=48)}maplist.get(1).set_next()rcon.run_next_level()Adding a ban to the listfromrconnet.rconbf2142.defaultimportDefaultwithDefault("127.0.0.1","super123")asrcon:rcon.banmanager.add_ban("172.123.54.6")banlist=rcon.banmanager.listprint(banlist)# [Ban(address=172.123.54.6, period=Perm)]
Package: rcon-server
rcon-serverA implementation of the RCON protocol on the server side.Why do you need an RCON server implementation?rcon-server is primarily designed as a tool for testing, e.g. with unit tests.
Installing, running, updating, etc a regular srcds server might use a lot of
resources.
>10GB of storage space per server is not uncommon.
Also it is hard to get some results from an server in a test environment.
A server only reports the amount of users which are on the server.
Getting several people on a server for testing is pretty annoying and time
consuming.
rcon-server allows you to implement a function that returns an answer per
command.SpecificationThe RCON Specification can be found here:
[https://developer.valvesoftware.com/wiki/Source_RCON_Protocol]How to installpip install rcon-serverhow to run the tests:cd rcon_server
python3 -m unittest
Package: rcon-shell
PyRconShellMinecraft rcon shell in Python using:https://github.com/conqp/rconhttps://github.com/jedie/dev-shellWorks on Linux, macOS and Windows. It requires Python 3.8 or higher.
Note on Debian based Linux thepython3-venvpackage is needed.usageBootstrap and use PyRconShell, e.g.:~$gitclonehttps://github.com/jedie/PyRconShell.git
~$cdPyRconShell
~/PyRconShell$./rcon-shell.py

...

Developershell-py_rcon_shell-v0.0.1

...(py_rcon_shell)rconlist
Send:list
Response:
----------------------------------------------------------------------------------------------------
Thereare3ofamaxof10playersonline:Foo,Bar,JohnDoe
----------------------------------------------------------------------------------------------------(py_rcon_shell)rconopJohnDoe
Send:opJohnDoe
Response:
----------------------------------------------------------------------------------------------------
MadeJohnDoeaserveroperator
----------------------------------------------------------------------------------------------------Activate rcon serverTo enable rcon in yourserver.propertieschange this:enable-rcon=true
rcon.port=25575
rcon.password=a-password-is-neededNote a password must be set! A empty password will disable rcon!Add these settings into:~/.PyRconShell.ini, e.g.:[DEFAULT]rcon_host=127.0.0.1rcon_port=25575rcon_password=a-password-is-neededhintsCheck if rcon listen with e.g.:$lsof-iLinkshttps://minecraft.gamepedia.com/Commands#List_and_summary_of_commandsProject linksGithub:https://github.com/jedie/PyRconShellPyPi:https://pypi.org/project/rcon-shell/