Saravanan666/pypi-org huggingface dataset:
Package: rfq
rfqSimple language-agnostic message queues: tools, conventions, examplesTable of ContentsOverviewFeaturesInstallationUsageExampleDevelopmentLicenseOverviewImplementing a reliable message queue with redis is possible but has to follow certainbest practices.
The goal of this project is to provide a simple reliable message queue Python library and command line wrapper while following best practices and capturing conventions as code.Theunderlying queue designmakes it simple to write adapters for other languages, e.g. seerfq.jsfor a Javascript/Typescript integration.Context: we've started this project because we needed a simple queue abstraction easily accessible through different languages and abstract away over manually using redis.
This project started back when we were running on a single dedicated server, but we are still using it for both local development as well as production.FeaturesLibrary and command line wrappers capturing best practicesThroughput:https://redis.io/topics/benchmarksPersistence:https://redis.io/topics/persistenceExactly-Once Processing: Messages are delivered once, and stay in the system until clients commit themFirst-In-First-Out: The order in which messages are sent and received is strictly preservedPayload size: Up to a maximum of 512 MB in message sizeTotal messages: Up to a total of 2^32-1 messages in the systemInstallationWe publishrfqto PyPI athttps://pypi.org/project/rfq/Install withpoetrypoetry add rfqInstall withpippip install rfqUsageThe command line tool and library can be configured by setting the environment variablesexport RFQ_REDIS_HOST=localhost
export RFQ_REDIS_PORT=6397The library allows you to provide a custom redis instance.For the command line wrapper, see$ rfq --helpThe command line tool comes with bash completions; install them viarfq completions bash > /etc/bash_completion.d/rfq.bash-completionFor the Python library see theQueueandTaskclass inrfq/rfq.py.UnderstandThere is a "backlog" for published messages not yet consumedThere is a "nextlog" for published messages consumed but not yet committedIn case commit never happens (e.g. crashes), "harvest" moves messages from "nextlog" back into "backlog"Examplefromrfq.rfqimportQueue# The default queue connects to redis at localhost:6397# you can pass a custom redis instance or use env vars# to configure the redis host and port the queue usesqueue=Queue()# Publishing a message of key-value pairs to a topicqueue.publish("mytopic",{"k":"v"})# Consuming from a topic returns a task; you must# only commit the task with .done() once you've# successfully completed working on ittask=queue.consume("mytopic")print(task.result())task.done()DevelopmentFor developmentmake

make run
$ rfq --help

$ exit
make downInside the self-contained reproducible containerflake8 rfq
mypy rfq
pytestLicenseCopyright © 2020 robofarmDistributed under the MIT License (MIT).
Package: rfr
Rtorrent fast resumePython module that adds fast resume data to torrent files to be used by rtorrent.DescriptionThis adds fast resume data to torrent files, allowing rtorrent to skip hash checking when a torrent is added. Based
onrtorrent_fast_resumeandrfr.pl.Installationpip install rfrUsageHere's a quick example of how to use this:import rfr

tor = rfr.FastTorrent('path_to_original.torrent', 'path_to_downloaded_files')

# Call tor.do_resume() when you're ready to generate the fast resume data
tor.do_resume()

# Before outputting the torrent, you can adjust some of the torrent's params
# using:
tor.set_tor_data_val('rtorrent', 'directory', value='whatever you want')

# After calling tor.do_resume(), you can either save the resulting torrent to a file
# or upload straight to rtorrent via xml rpc
tor.save_to_file(dest)
tor.add_to_rtorrent(rtorrent_xmlrpc_url)
Package: r-freeze
r_freezePipreqs for RFree software: MIT licenseDocumentation:https://r-freeze.readthedocs.io.FeaturesGenerates the list of packages used in the projectIf the output file is specified as R, R script file is generatedUsageFor printing the name of packages:r_freeze .For creating a requirments file:r_freeze -o req.txt .For creating a requirments as R script:r_freeze -o req.R .For overwriting a requirments file:r_freeze -o req.R --overwrite .CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2021-02-16)Fixed the R file generations script0.1.0 (2020-09-30)First release on PyPI.
Package: rfrx
rfrxReceive RF frames from some remote controllers.Available Decoder / Readers:SBUSPro-Tronik PTR-6A v2:warning: Don't forget to invert its electrical signal, eg. with a NAND gate ! :warning:ConfigurationCould be done in python calls, or by setting the following environment variables:SBUSRFRX_PORT: default to/dev/ttyS0RFRX_TIMEOUT: default to 1RFRX_N_CHANS: default to 16, number of useful channels for your caseRFRX_RUNNING: default toON, to keep reading and procesing dataRFRX_RETRY: default toON, to close and reopen the port again when something went wrongRFRX_LOG_LEVEL: default toWARNINGProTronikMinimum, Middle and Maximum values read on your Right and Left Horizontal and Vertical joysticksRFRX_RX_MIN: default to 192RFRX_RX_MID: default to 992RFRX_RX_MAX: default to 1796RFRX_RY_MIN: default to 302RFRX_RY_MID: default to 1100RFRX_RY_MAX: default to 1900RFRX_LY_MIN: default to 180RFRX_LY_MID: default to 980RFRX_LY_MAX: default to 1779RFRX_LX_MIN: default to 192RFRX_LX_MID: default to 992RFRX_LX_MAX: default to 1790
Package: rfsdk
rfsdkrfsdk是基于pyant实现的一个fst客户端（python），对常用交易业务进行封装，向用户提供易用的服务和接口功能依赖说明订阅推送业务依赖说明:pyant无法识别“未声明”的pb消息类型，会将这类消息的原始pb序列化字符串base64编码后回调给业务层；业务层根据自身业务，针对性的将原始pb序列化字符串反序列化为对应的pb对象；依赖模块：google protobuf开源库（python版）；业务proto对应的pb2.py文件（proto文件统一存放在protocol仓库中，通过protoc工具生成pb2.py时，需要保持目录结构不变）
Package: rf-se-dtl-selectors-plugin
rf-se-dtl-selectors-pluginDOM testing libraryinspired selectors for Robot FrameworkSeleniumLibrary.InstallationTo install this plugin fromPyPI, run:pipinstallrf-se-dtl-selectors-pluginUsageIn order to use selector provided by this plugin, loadSeleniumLibrarywithTestingLibrarySelectorsPluginin the plugin array:*** Settings ***
Library         SeleniumLibrary    plugins=TestingLibrarySelectorsPlugin

*** Test cases ***
Click input element
    Click element  placeholder:SearchThe plugin providesalttext,label,placeholder,testid,text, andtitleselectors. Seeacceptance_testsdirectory for usage examples. These locators are automatically registered when the plugin is initialized.All attribute and text values are passed tonormalize-space()XPath function before comparison with the given value.In addition to the locator strategies, this plugin providesGet Xpathkeyword to get the XPath expression for given locator. For example:*** Settings ***
Library         SeleniumLibrary    plugins=TestingLibrarySelectorsPlugin

*** Test Cases ***
Find elements with xpath
    ${xpath}=  Get Xpath  placeholder:Search
    Click element  xpath:${xpath}TestingCheck and automatically fix formatting with:pycodestyleTestingLibrarySelectorsPlugin
autopep8-aaar--in-placeTestingLibrarySelectorsPluginRun static analysis with:pylint-E--enable=invalid-name,unused-import,useless-object-inheritanceTestingLibrarySelectorsPluginRun unit tests:# Run unit testspython3-munittestdiscover-sunit_tests/# Run unit tests with coverage analysiscoveragerun\--branch\--sourceTestingLibrarySelectorsPlugin/\-munittestdiscover-sunit_tests/
coveragereport-mRun acceptance tests in Docker container:# Build imagedockerbuild.-tatest# Run acceptance testsdockerrun--rmatest# Run acceptance tests and get test output to ./outdockerrun-v$(pwd)/out:/out--rmatest-d/out-LTRACE:INFO
Package: rf-seleniumextensionlibrary
SeleniumExtensionLibraryLibrary Scope:GLOBALCreated:10/29/2019 16:21 PM UTC-8Author:Shiela Buitizon | email:shiela.buitizon@mnltechnology.comCompany:Spiralworks Technologies Inc.Contents:SeleniumExtensionLibraryContentsIntroductionInstallationUsageGenerating DocumentationIntroductionSeleniumExtensionLibraryis a extension library ofRobotframework SeleniumLibrary.View the latest keywordDocumentation here.InstallationOption 1Install using pypi, run:pipinstallrf-seleniumextensionlibraryOption 2With recent version ofpip, it is possible to install directly from GitHub repository. To Install latest source
from the master branch, use this command:pipinstallgit+https://github.com/MainSystemDev/rf-seleniumextensionlibrary.gitPlease note that installation will take some time, becausepipwill
clone theSeleniumExtensionLibraryproject to a temporary directory and then
perform the installation.UsageTo use SeleniumExtensionLibrary in Robot Framework tests, the library needs to
first be imported using theLibrarysetting as any other library.*** Settings ***LibrarySeleniumExtensionLibraryGenerating DocumentationTo Generate the keyword Documentation, simple run:python-mrobot.libdocSeleniumExtensionLibrarydocs/index.htmlNote that the library must first be installed before generating a documentation.
Package: rf-shared-resources
rf-shared-resourcesLibrary for importing Robot Framework resource files from python libraries. Seeexamples/directory for an example of Python library with embedded Robot Framework resources and usage of this library.UsageThere are three different ways to import resources with this library: inside the Python library that contains the resources, in Settings table with initialization parameters, or through a keyword.Inside a Python libraryfromSharedResourcesimportSharedResourcesclassEmbeddedResources(SharedResources):def__init__(self):super().__init__('EmbeddedResources.resources','a_keywords.resource','b_keywords.robot')In settings table*** Settings ***
Library  SharedResources  EmbeddedResources
...      a_keywords.resource b_keywords.robotThrough a keyword*** Settings ***
Library  SharedResources

*** Keywords ***
Load resources
    Import resource from package  EmbeddedResources.resources
    ...  a_keywords.resource  b_keywords.robotTestingCheck and automatically fix formatting with:pycodestyleSharedResources
autopep8-aaar--in-placeSharedResourcesRun static analysis with:pylint-E--enable=invalid-name,unused-import,useless-object-inheritanceSharedResourcesRun acceptance tests:# Run acceptance testsrobot-LTRACE:INFO-dout/acceptance_tests/# Run acceptance tests with coverage analysiscoveragerun\--branch\--sourceSharedResources/\-mrobot-LTRACE:INFO-dout/acceptance_tests/
coveragereport-mRun acceptance tests in Docker container:# Build imagedockerbuild.-tatest# Run acceptance testsdockerrun--rmatest# Run acceptance tests and get test output to ./outdockerrun-v$(pwd)/out:/out--rmatest-d/out-LTRACE:INFOGenerate documentation with:python3-mrobot.libdocSharedResourcesdocs/index.html
Package: rfslib
rfslibRemote file system libraries for data manipulation between remote /and local host/ (cp, mv, ls, rm,..).
Libraries provides Python3 universal interface for multiple protocols like SFTP, FTP, FTPS, SMB, FS (local filesystem) and enables you to solve encoding problems during file transfer.Warning: This package is still under heavy development and the API may change.InstallationTODODocumentationDocumentation can be found at repositoryrfslib-docs
Package: rfsspec
rfsspecRust python FSsImplements s3, gcs, azure blob and HTTP backends for fsspec using Rust.Respects concurrency of many simultaneous requests as made by
fsspec, butdoes not need python asyncio,releases the GIL,can safely be called from multiple threadsis probablyNOTfork-safeLimitationsCurrently only the methodscat_ranges,catandcat_fileare supported, enough
to open a (consolidated) zarr dataset for reading.ImplementationsThe http backend supports:headersmethodrangesThe s3 implementation supports configuration by environment variables and .aws files,
and optionsprofileendpoint_urlanonregionrangesrequester-paysThe GCS backend supports:anonrangesrequester-paysassumes credentials via env variables and gcloud CLIThe Azure blob backend supportsanonrangesaccount/key auth (account always required)Installation> pip install -i https://pypi.anaconda.org/mdurant/simple rfsspecBenchmarksLatest results from examples/script.py:Rust http: 0.1335
Rust s3: 0.1163
Rust anon s3: 0.0921
fsspec http: 0.1611
fsspec s3: 0.4758
fsspec anon s3: 0.4208(multi-threaded benchmarks should be more meaningful)
Package: rfswarm-agent
rfswarm (Robot Framework Swarm)Aboutrfswarm is a testing tool that allows you useRobot Frameworktest cases for performance or load testing.Swarm being the collective noun for Robots, just as Flock is for Birds and Herd for Sheep, so it made sense to use swarm for a performance testing tool using Robot Framework, hence rfswarmWhile Robot Framework is normally used for functional or regression testing, it has long been considered the holy grail in testing for there to be synergies between the functional and performance testing scripts so that effort expended in creating test cases for one does not need to be duplicated for the other which is currently the normal case.rfswarm aims to solve this problem by allowing you to take an existing functional or regression test case written in Robot Framework, make some minor adjustments to make the test case suitable for performance testing and then run the Robot Framework test case with as many virtual users (robots) as needed to generate load on the application under test.rfswarm is written completely in python, so if you are already using Robot Framework, then you will already have most of what you need to use rfswarm and will be familiar with pip to get any extra components you need.To learn more about rfswarm please refer to theDocumentationGetting HelpCommunity Supportrfswarm DocumentationDiscordReporting Issues / Known IssuesAn example of how your rfswarm setup might look.Commercial SupportThe easiest way to get commercial support is to sponsor this project onGitHubDonationsIf you would like to thank me for this project please consider using one of the sponsorship methods:GitHubPayPal.me(the $5 is a suggestion, feel free to change to any amount you would like)
Package: rfswarm-manager
rfswarm (Robot Framework Swarm)Aboutrfswarm is a testing tool that allows you useRobot Frameworktest cases for performance or load testing.Swarm being the collective noun for Robots, just as Flock is for Birds and Herd for Sheep, so it made sense to use swarm for a performance testing tool using Robot Framework, hence rfswarmWhile Robot Framework is normally used for functional or regression testing, it has long been considered the holy grail in testing for there to be synergies between the functional and performance testing scripts so that effort expended in creating test cases for one does not need to be duplicated for the other which is currently the normal case.rfswarm aims to solve this problem by allowing you to take an existing functional or regression test case written in Robot Framework, make some minor adjustments to make the test case suitable for performance testing and then run the Robot Framework test case with as many virtual users (robots) as needed to generate load on the application under test.rfswarm is written completely in python, so if you are already using Robot Framework, then you will already have most of what you need to use rfswarm and will be familiar with pip to get any extra components you need.To learn more about rfswarm please refer to theDocumentationGetting HelpCommunity Supportrfswarm DocumentationDiscordReporting Issues / Known IssuesAn example of how your rfswarm setup might look.Commercial SupportThe easiest way to get commercial support is to sponsor this project onGitHubDonationsIf you would like to thank me for this project please consider using one of the sponsorship methods:GitHubPayPal.me(the $5 is a suggestion, feel free to change to any amount you would like)
Package: rfswarm-reporter
rfswarm (Robot Framework Swarm)Aboutrfswarm is a testing tool that allows you useRobot Frameworktest cases for performance or load testing.Swarm being the collective noun for Robots, just as Flock is for Birds and Herd for Sheep, so it made sense to use swarm for a performance testing tool using Robot Framework, hence rfswarmWhile Robot Framework is normally used for functional or regression testing, it has long been considered the holy grail in testing for there to be synergies between the functional and performance testing scripts so that effort expended in creating test cases for one does not need to be duplicated for the other which is currently the normal case.rfswarm aims to solve this problem by allowing you to take an existing functional or regression test case written in Robot Framework, make some minor adjustments to make the test case suitable for performance testing and then run the Robot Framework test case with as many virtual users (robots) as needed to generate load on the application under test.rfswarm is written completely in python, so if you are already using Robot Framework, then you will already have most of what you need to use rfswarm and will be familiar with pip to get any extra components you need.To learn more about rfswarm please refer to theDocumentationGetting HelpCommunity Supportrfswarm DocumentationDiscordReporting Issues / Known IssuesAn example of how your rfswarm setup might look.Commercial SupportThe easiest way to get commercial support is to sponsor this project onGitHubDonationsIf you would like to thank me for this project please consider using one of the sponsorship methods:GitHubPayPal.me(the $5 is a suggestion, feel free to change to any amount you would like)
Package: rft1d
rft1dOne-DimensionalRandom Field Theoryin Python.rft1dis a Python package for exploring and validating Random Field Theory (RFT)
expectations regarding upcrossings in univariate and multivariate 1D continua.
These expectations can be used to make statistical inferences regarding signals
observed in experimentally measured 1D continua including scalar and vector time series.Please cite:Pataky TC (2016) RFT1D: Smooth One-Dimensional Random Field Upcrossing Probabilities in Python.Journal of Statistical Software71(7): 1-22.https://doi.org/10.18637/jss.v071.i07Documentation is available at:www.spm1d.org/rft1dIssuesPlease report software bugs or other problems by searching existing issues or creating a new issuehere.
Package: rftools
RF toolsTools for designing RF components and networksInstallation# for latest version (from GitHub)python3-mpipinstallgit+https://github.com/garrettj403/RF-tools.git# for lastest release (from PyPI)python3-mpipinstallrftoolsExamples of the Command Line ToolsCalculate the properties of a WR4.3 rectangular waveguide at 230 GHz:Input:$waveguideWR4.3--freq230Output:RectangularWaveguide:WR4.3--------------------------------------------------Dimensions:a1.092[mm]b0.546[mm]Standardfrequencyrange:low171.553[GHz]mid215.471[GHz]high259.388[GHz]Cutofffrequencies:TE10137.242[GHz]TE20274.485[GHz]TE01274.485[GHz]TE/TM11306.883[GHz]Propertiesat230.0GHz:wavelength1.624[mm]impedance469.469[ohms]Calculate the attenuation constant of a WR2.8 waveguide at 345 GHz:Input$waveguide-att--typeWR2.8--freq345--cond5.85e7OutputRectangularWaveguide:WR2.8--------------------------------------------------Dimensions:a711.200[um]b355.600[um]Standardfrequencyrange:low263.457[GHz]mid330.901[GHz]high398.346[GHz]Propertiesat345GHz:wavelength1.098[mm]impedance475.852[ohms]Attenuationat345GHz:conductivity5.850E+07[S/m]skindepth112.030[nm]attenuation1.976[Np/m]17.160[dB/m]0.172[dB/cm]Calculate the properties of a 0.5 mm radius circular waveguide at 345 GHz:Input:$cwaveguide0.5--freq345Output:CircularWaveguide:--------------------------------------------------Dimensions:radiusa0.500[mm]Cutofffrequencies:TE11175.681[GHz]TM01229.502[GHz]TE21291.434[GHz]TE01365.676[GHz]TM11365.676[GHz]Propertiesat345.0GHz:wavelength1.010[mm]impedance437.735[ohms]Calculate the noise temperature using the Y-factor technique:Input:$noisetemp4.9/2.2--freq850--thot300--tcold20Output:NoisetemperaturefromY-factor--------------------------------------------------Physicaltemperatureofblackbodyloads:Hotload300.000[K]Coldload20.000[K]Equiv.temp.fromCWequations(withf=850.0GHz):Hotload300.462[K]Coldload26.496[K]Y-factor2.227Noisetemperature196.735[K]Calculate the width of a microstrip:Input:$50ohm-line--z050--thickness15--er2.2Output:Microstrip:--------------------------------------------------Inputvalues:desiredZ050.000[ohms]thickness(t)15.000[mil]rel.permittivity2.200Output:microstripwidth1.174[mm]
Package: rfuse
FuseFuse is a content aggregation CLI tool written in Python.Currently supports Reddit and Medium as sources.Installationpip install Fuse-ConView PyPi project athttps://pypi.org/project/Fuse-Con/Basic Usagepython ./src/main.py --reddit --sub programming --hot --limit 3Note: To use reddit as a source you need to generate a key for Reddit's API, follow this guide onreddit's githuband then setREDDIT_CLIENT_IDandREDDIT_CLIENT_SECRETas environment variables or pass these keys through the CLI with the argumentsreddit_idandreddit_secret.python ./src/main.py --medium --tag programmingNote: limit is 10 by default.
Package: rf-userpoollibrary
UserpoolLibraryLibrary Scope:GLOBALCreated:09/10/2019 15:58 UTC-8Author:Shiela Buitizon | email:shiela.buitizon@mnltechnology.comCompany:Spiralworks Technologies Inc.Contents:UserpoolLibraryContentsIntroductionInstallationUsageGenerating DocumentationIntroductionUserpoolLibraryis aRobotframeworktest Library for userpool support.View the latest keywordDocumentation here.InstallationOption 1Install using pypi, run:pipinstallrf-userpoollibraryOption 2With recent version ofpip, it is possible to install directly from GitHub repository. To Install latest source
from the master branch, use this command:pipinstallgit+https://github.com/MainSystemDev/rf-userpoollibrary.gitPlease note that installation will take some time, becausepipwill
clone theUserpoolLibraryproject to a temporary directory and then
perform the installation.UsageTo use UserpoolLibrary in Robot Framework tests, the library needs to
first be imported using theLibrarysetting as any other library.*** Settings ***LibraryUserpoolLibraryhttp://myhost.com/userpoolapi/129*** Test Cases ***Borrow User${user}Borrow UserLog To Console${user}Generating DocumentationTo Generate the keyword Documentation, simple run:python-mrobot.libdocUserpoolLibrarydocumentation.htmlNote that the library must first be installed before generating a documentation.
Package: rfw_utils
# rfw_utils本库的目的在于根据一个给定的 json，快速生成一个 RESTful 的后台接口，但是不关心具体的业务逻辑，需要你在生成的接口上添加其他的逻辑。生成的代码可作为脚手架或者快速原型的工具。## 截图如下依据 test.json 生成的 models.py![](images/2.png)依据 test.json 的接口生成的 API 接口![](images/1.png)## 安装 & 使用* ```git clone git@github.com:h3l/rfw_utils.git```* 切换到你所处的虚拟环境* python setup.py install 直接安装* 在 Django 的 setting.py 的 INSTALLED_APPS 中添加 "rfw_utils"* ```python manage.py startapp_skeleton XXX.json```(XXX.json 为配置文件，例子可见代码库中的test.json)* 将上一步中的 XXX 加入INSTALLED_APPS 中，在 urls 中添加新 app 的urls，即完成了快速构建的过程​## TODO鉴于 Django admin 的二次开发成本很高，可以依据 json 配置文件生成相应的前端代码，方便快速开发。