Saravanan666/pypi-org huggingface dataset:
Package: rqalpha-mod-faithquant
项目名称请介绍一下你的项目吧运行条件列出运行该项目所必须的条件和相关依赖条件一条件二条件三运行说明说明如何运行和使用你的项目，建议给出具体的步骤说明操作一操作二操作三测试说明如果有测试相关内容需要说明，请填写在这里技术架构使用的技术框架或系统架构图等相关说明，请填写在这里协作者高效的协作会激发无尽的创造力，将他们的名字记录在这里吧
Package: rqalpha-mod-log
log ModRQAlpha log Mod，supporting logbook outputEnable/Disable log Mod# Disable log Mod$rqalphamoddisablelog# Enable log Mod$rqalphamodenablelogMod ConfigConfigs of log Mod are as followed.{# Specify the log output file"log_file":"./log.txt",# Python open() method to read/write file"log_mode":"a",}Extend commandWith this mod enabled, you can use follow function:rqalpha runcommand can use--log-file file_pathoption to export the log tofile_pathlocationrqalpha runcommand can use--log-mode log_modeoption，which is the 'mode' param in  python built-inopen()method，to determine how to read/write the output log file
Package: rqalpha-mod-shipane
=======rqalpha-mod-ShiPanE=======`RQAlpha`_ 不支持股票实盘交易， 不过通过他的 Mod 机制，可以很方便的扩展自己的实盘交易接口。`ShiPanE Python SDK`_ 提供了 RESTFul 接口，可以管理通达信等交易终端，因此可以实现 RQAlpha 产生的下单逻辑通过实盘易进行下单操作。## Installation### 安装环境*   建议使用 Anaconda Env 来搭建 Python 虚拟环境，传送门: `基于Anaconda的环境搭建`_*   安装 RQAlpha，参考 `RQAlpha 安装指南`_*   更新 `lxml`.. code-block:: bash$ conda install -f lxml*   安装 `rqalpha-mod-shipane`.. code-block:: bash$ pip install rqalpha-mod-shipane### 安装实盘易扩展ModRQAlpha 提供了非常简单的 Mod 安装机制，直接使用如下命令即可完成 Mod 安装.. code-block:: bash# 安装实盘易Mod$ rqalpha install shipane# 启用实盘易Mod$ rqalpha enable shipane# 关闭实盘易Mod$ rqalpha disable shipane# 卸载实盘易Mod$ rqalpha uninstall shipane### FAQ如果报如下错误.. code-block:: bashImportError: dlopen(/Users/eric/anaconda/envs/rqalpha/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libxml2.2.dylibReferenced from: /Users/eric/anaconda/envs/rqalpha/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.soReason: Incompatible library version: etree.cpython-36m-darwin.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0解决方案:.. code-block:: bashconda install libxml2pip install -f lxml==3.6.4.. _RQAlpha: https://github.com/ricequant/rqalpha.. _ShiPanE Python SDK: https://github.com/sinall/ShiPanE-Python-SDK.. _基于Anaconda的环境搭建: http://rqalpha.readthedocs.io/zh_CN/stable/intro/detail_install.html.. _RQAlpha 安装指南: http://rqalpha.readthedocs.io/zh_CN/stable/intro/install.html
Package: rq-cli
A RQ CLI tool withempty,requeueandinfocommands.Install$pipinstallrq-cliUsage$rq--helpUsage:rq[OPTIONS]COMMAND[ARGS]...Options:-u,--urlTEXTURLdescribingRedisconnectiondetails.--helpShowthismessageandexit.Commands:empty[QUEUES]:queuestoempty,default:failed...infoRQcommand-linemonitor.requeueRequeueallfailedjobsinfailedqueue
Package: rq-dashboard-fast
RQ Dashboard FastAPI🛠RQ Dashboard FastAPIis a general purpose, lightweight FastAPI-based web frontend to monitor your RQ queues, jobs, and workers in real-time.Example UsagefromfastapiimportFastAPIfromrq_dashboard_fastimportRedisQueueDashboardimportuvicornapp=FastAPI()dashboard=RedisQueueDashboard(“redis://redis:6379/”,"/rq")app.mount(“/rq”,dashboard)if__name__=="__main__":uvicorn.run(app,host="0.0.0.0",port=8000)Access the Dashboard athttp://127.0.0.1:8000/rqInstalling from PyPi$ pip install rq-dashboard-fastRunning in DockerYou can run the RQ Dashboard FastAPI as a Docker container with custom Redis URL:docker run -e REDIS_URL=<your_redis_url> hannes221/rq-dashboard-fastAccess the Dashboard athttp://127.0.0.1:8000/rqTo change change the port, you can specify the following flag:docker run -e REDIS_URL=<your_redis_url>  -e FASTAPI_PORT=<your_fastapi_port> hannes221/rq-dashboard-fastReplace <your_fastapi_port> with your desired FastAPI and host port.You can use Docker Compose by creating a docker-compose.yml file:version: '3.11'
services:
  dashboard:
    image: hannes221/rq-dashboard-fast
    ports:
      - '8000:8000'
    environment:
      - REDIS_URL=<your_redis_url>Then run:docker compose upAccess the Dashboard athttp://127.0.0.1:8000/rqTo change the part update the compsoe file:version: '3.11'
services:
  dashboard:
    image: hannes221/rq-dashboard-fast
    ports:
      - '<your_fastapi_port>:<your_fastapi_port>'
    environment:
      - REDIS_URL=<your_redis_url>
      - FASTAPI_PORT=<your_fastapi_port>Replace <your_fastapi_port> with your desired FastAPI and host port.Docker Hub:hannes221/rq-dashboard-fastGithub RepositoryGithub:rq-dashboard-fast$ pip install rq-dashboard-fastPlanned FeaturesData from rq-schedulerMore data about workersDocker ImageRun Standalone (Terminal)Add pagination to jobs pageContributingIf you want to contribute, reach out or create a PR directly.
Package: rqdatac
RQDATAC: Ricequant Data Clientrqdatacis a python package providing financial data from trusted sources, free you
from IT maintenance or data cleansing tasks for financial institutions.It provides with audited data in formatted data structure via thoughtfully designed APIs so to
improve efficiency in data processing.Get StartInitAPI DocChange LogHave A TryGet free access toRQData.Learn moredetails.
Package: rql
This package provides base library for the Relationship Query LanguageINSTALLthe standard way:python setup.py installbuilding rql binary extension in place:python setup.py build_ext –inplaceDOCUMENTATIONDocumentation is available athttps://rql.readthedocs.ioHOW TO RELEASE?Bump version number in __pkginfo__.py, then update the debian changelog with:dch -v <version>-1 -D unstableCommit withhg commit-m"[pkg] Version <version>"and tag withhg tag <version>debian/<version>-1.Ensure you have a clean working directory before upload to pypi by runninghg clean--all--dirs--files(warning: this will remove all untracked
files).Generate the source distribution withpython3 setup.py sdist.rql has a faster implementation using libgecode. To make this available to
users using pip and not having libgecode installed, we publish manylinux
wheels to pypi.To build a manylinux package for rql we use quay.io/pypa/manylinux1_x86_64
docker image and a custom scriptbuild_wheel.shso you just have to execute
it and it will pull docker image and execute script in this image :docker pull quay.io/pypa/manylinux_2_24_x86_64
./build_wheel.shThen upload source dist and wheels to pypi using twine:twine upload dist/*.tar.gz dist/*.whl
Package: rqlquery
SummaryExperimental ORM Query objectThe idea is to make RQL requests building simpler, and all with pythonic
syntax.It borrows a lot from the SQLAlchemy ORM.ExamplesBasic query with no filtering::CWUser = vreg[‘etypes’].etype_class(‘CWUser’)
CWGroup = vreg[‘etypes’].etype_class(‘CWGroup’)q = req.query(CWUser)
assert q.torql(), (“Any X WHERE X is CWUser”, {})q.all()Same with attribute eagerloading:q = req.query(CWUser).eagerload('login')With filtering:q = req.query(CWUser)
q = q.filter(CWUser.in_group.filter(CWGroup.name == u'managers'))More complex filtering:import datetime as dt

q = req.query(CWUser)
q = q.filter(
    (CWUser.creation_date >= dt.date.now() - dt.timedelta(30))
    & CWUser.in_group.filter(
        (CWGroup.name == u"users")))
Package: rq-monitor
DescriptionRQMonitor is a simple Tornado-based application to monitor RQ queues and workers.InstallationInstalling from pipSimply invoke:$ pip install rq-monitorInstalling from sourcesYou can clone therq-monitorgit repository and install it manually:$ git clone git://github.com/andrzej-jankowski/rq-monitor.git .
$ pip install -e .RunTo runrq-monitoruse the command:$ rq-monitorThen run your web browser and putlocalhost:7272in address field.To get more help invoke:$ rq-monitor -hRemarksThis software uses Highcharts JS. Highcharts is not free for commercial use.Highcharts site:www.highcharts.com
Package: rqpop
rqpopuses the python packagestressypyto create a certain number of cpu-stressing jobs for a variably
distributed amount of time, the distribution type and seed being specified by the user.
It createsstressypy’sJobBlockobjects which contain pertinent information for queueing these test jobs to
test queueing algorithms by enqueueing a certain number of randomly ‘sized’ jobs, which simulates the real job influx
of a webservice, for example. The jobs are enqueued with RQ (Redis Queue).JobBlocks:refer tohttps://github.com/salbrandi/stressypy#jobblock-attributesfor documentation on JobBlock objectsInstallationrqpopcan be installed withpip install rqpopand will auto-install all dependencies.Alternatively, it can be cloned manually from the url:https://github.com/salbrandi/rqpop.gitor the tarfile can be downloaded from the url:https://github.com/salbrandi/rqpop/archive/0.1.tar.gzand setup withpython setup.py installIn order to run rqpop, you must have a REDIS server running and RQrqworkerslistening on the default queue:Documentation for quickly setting up a REDIS server can be found here:https://redis.io/topics/quickstartFull REDIS documentaiton here:https://redis.io/documentationDocumentation for RQ (Redis Queue) cna be found here:http://python-rq.org/but for most users a worker can be started, listening on the default queue with simply therqworkercommand.Directionsrqpopruns using the commandrqpop queuewith the number of jobs desired and the max time allowed being passed as arguments.The help page:Usage: rqpop queue [OPTIONS] NUM_JOBS MAX_TIMEOptions:–seed TEXT    The seed to be internalized for the number distribution–dist TEXT    the distirbution to be used for psuedo-random generation–mnc INTEGER  the minimum number of cpus to be used, default 1–mxc INTEGER  maximum number of cores a job should be able to require,default: maximum configured cores–mnt INTEGER  minimum amount of time the jobs should run for, default 1–q TEXT       the queue that the jobs should be enqueued to, default:“default”–help         Show this message and exit.Distributions supported are:Log Normal:normal- defaultBox:boxSpike/Dirac/Delta:spikeExponential/Power:powerExamplesrqpop queue 10 12--seed0--distributionnormal:creates and enqueues 10 jobs normally distributed with seed 0 and a max time of 12 secondsrqpop queue 21456--seed1023041--distributionpower--mnc2--mxc10-qhigh:creates and enqueues 21, 456 jobs exponentially distributed with seed 1023041, min cores 2, max cores 10 on the queue ‘high
Package: rqr
Python ReQuiRements.Handle requirements for python. Based on pip, inspired by npm. And get rid of all those different requirements.txt files.WARNING: This is alpha and a pure prototype at the moment.Installation$pipinstallrqrUsageInstallJust likepip installwith the possibility to--saveyour required package.$rqrinstall--savedjangoipython{'django':'1.9.7','ipython: '4.2.1'}Does also support--save-developmentand--save-production. Default isbasewhich is shared across the other two.ListWARNING: This does display all managed requirements, but it does NOT say anything about the installed ones.Shows all managed requirements, just likepip list.$rqrlistbase:-django@1.9.7development:-ipython@4.2.1UpdateChecks for updates in yourrqr.yamlfile’s packages. Does write new versions to file by default, to do otherwise use--dry-runflag.$rqrupdatedjango1.3.0->1.9.7MigrateWARNING: Does override yourrqr.yamlconfiguration if you had one before without any further warning.Tries to discover existing requirements files or folders and migrate them. Uses current working directory and does not traverse directories deeply.$rqrmigrateDiscovereddev-requirements.txt(development)Discoveredrequirements/base.txt(base)-django@1.9.3-djangorestframework@3.3.1-pillow@3.1.1Discoveredrequirements/development.txt(development)-Invalid:-rbase.txt-ipython@4.0.0Discoveredrequirements/production.txt(production)-Invalid:-rbase.txt-gunicorn@19.3.0Discoveredrequirements-dev.txt(development)Discoveredrequirements.txt(base)
Package: rqrcode
rqrcode.py使用方法(usage)安装(install)pipinstallrqrcode测试(test)fromrqrcodeimportrqrcodeif__name__=='__main__':# 生成二维码PNG图片保存(Generate QR code PNG picture and save)rqrcode.qrcode_img("hello","C:\\Users\\user\\Desktop\\qrcode.png")# 生成二维码SVG图片保存(Generate QR code SVG picture and save)rqrcode.qrcode_svg("hello","C:\\Users\\user\\Desktop\\qrcode.svg")# 生成二维码unicode(Generate QR code unicode)rqrcode.qrcode_unicode("hello")扩展(extend)如果使用源码自定义扩展(If you use the source code to customize the extension)1.下载源码(Download source code)gitclonehttps://github.com/korykim/rqrcode2.安装(Install)python-mvenvC:\Users\user\myenv# 创建虚拟环境(Create virtual environment)cdC:\Users\user\myenv\Scripts# 进入虚拟环境目录(Enter the virtual environment directory).\activate# 激活虚拟环境(Activate virtual environment)pipinstallmaturin# 安装maturin(Install maturin)cdrqrcode# 进入源码目录(Enter the source code directory)maturindevelop# 会自动打包出一个 wheel 包，并且安装到当前的 venv 中(Automatically package a wheel package and install it to the current venv)3.现在可以在python中正常使用了(Now you can use it normally in python)4.发布whl包(Publish whl package)maturinbuild--release--interpreterpython此时在./target/wheels目录下会生成whl包，可以上传到pypi或者使用pip install安装(At this time, a whl package will be generated in the ./target/wheels directory, which can be uploaded to pypi or installed using pip install).
Package: rq-retry
RQ RetryRQ Retryis a package that adds retry functionality to theRQqueueing system. It can retry failed jobs immediately or optionally
schedule them to retry after a delay usingRQ Scheduler.Installationpip install rq-retry
pip install rq-scheduler # optionalUsageRun worker process:rqworker -w rq_retry.RetryWorker
rqscheduler # optionalSee Documentation for details
Package: rq-retry-scheduler
RQ Retry SchedulerRQ Retry Schedulerextends the RQ worker class to provide functionality to enqueue jobs
based on time.Additionally, it provides a worker that will automatically retry failed
jobs using a backoff scheme.UsageQueuesTherq_retry_scheduler.Queueclass can be used as a drop in
replacement forrq.Queue. It provides two additional enqueuing
methods:enqueue_at- Enqueue the job at the specified time. The time
should be adatetime.datetimeobject with the UTC timezone.enqueue_in- Enqueue the job after the specified amount of time.
The time should be adatetime.timedeltaobject.Additionally, two other methods are availableenqueue_job_atandenqueue_job_inwhich work like the above methods but take arq.Jobobject as the paramter.Getting list of jobsQueue.scheduled_jobsis a generator that produces the jobs that
are currently scheduled for a particular queue.Scheduler.schedulereturns a list of job ids and scheduled time.Checking if a job is scheduledYou can check if a job or job id is currently scheduled. Example:job in queueUnscheduling jobsYou can unschedule jobs withQueue.remove_job. This removes the job
from the scheduler queue but does not remove it from RQ.Repeating jobsOnce a job has been enqueued you can set it to repeat withQueue.repeatwhich takes the job and adatetime.timedeltaobject. Additionally you can pass amax_runsvalue to limit the
number of times it will repeat.If the job is not already in the queue it will be enqueued at the given
interval.In order to ensure that job results cleanup doesn’t remove the job (thus
breaking the repetition) the job is copied into a new job. The parent
job can be accessed viaJob.parentfor the repeated jobs.Due to how the jobs are put into the work queues the maximum frequency
is controlled by the scheduler’s interval.SchedulerIn order to move jobs from the schedule queue into the proper RQ queue a
scheduler needs to be ran. This can be accomplished via therqschedulerscript. Additionally, you can extend fromrq_retry_scheduler.Schedulerto customize the functonality.WorkerA worker is provided that will requeue jobs that fail using a defiend
backoff strategy. The worker is designed to use the functionality from
theQueueclass to control the backoff.The worker can be used by using the-woption torq worker:rq worker-w'rq_rety_scheduler.Worker.The backoff times and total attempts is controlled byWorker.retry_delays.InstallationInstall via pippip install rq-retry-schedulerAcknowledgementsThis package was based heavily on the work ofRQ
Scheduler.
Package: rqs
rqsA handy tool to manage your credentials or frequent used commands.Usage$ rqs --help
Usage: rqs [OPTIONS] COMMAND [ARGS]...

  A handy tool to manage your credentials or frequent used commands.

  COMMAND:
      add ENTRT_NAME other_command    # add an entry
      list                            # list all entries
      delete ENTRY_NAME               # delete entry by name
      delete_all                      # delete all entries

  RUN ENTRY:
      rqs ENTRY_NAME

  EXAMPLES:

      $ rqs add mongo_local mongo localhost -u xxx -p xxx
      rqs added a command entry.

      $ rqs mongo_local
      > (local) show dbs

      $ rqs add APIKEY xxxxxx
      rqs added a text entry.

      $ rqs APIKEY  # just print APIKEY to stdout
      xxxxxx

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.Install$ pip install rqs
Package: r-quests
uroUsing a URL list for security testing can be painful as there are a lot of URLs that have uninteresting/duplicate content;uroaims to solve that.It doesn't make any http requests to the URLs and removes:human written content e.g. blog postsurls with same path but parameter value differenceincremental urls e.g./cat/1/and/cat/2/image, js, css and other static filesUsageFirst, install uro with pip:pip3 install uroNow, there's just one way to use it, no args, no bullshit.cat urls.txt | uro
Package: rquote
rquoteget_price方法提供 A股/港股/美股/ETF基金/期货 日线历史数据获取使用新浪/腾讯的id形式，如sh000001表示上证指数，sz000001表示深市000001股票平安银行，sh510050表示上证50指数ETF，hk00700表示港股腾讯。
期货代码需加fu前缀，如fuAP2110，美股需加对应交易所后缀，如usBABA.N，usC.N，usAAPL.OQ等
Package: rr
===============Runner-Reloader===============Runner for development code.Usage=====.. code:: shell$ rr --helpusage: rr [-h] [--interval INTERVAL] [--exclude EXCLUDE][--loglevel {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL}]...Runner-Reloader for developmentpositional arguments:command               commandoptional arguments:-h, --help            show this help message and exit--interval INTERVAL, -i INTERVALinterval for check--exclude EXCLUDE, -e EXCLUDEexclude pattern--loglevel {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL}loglevel for rrSimple------.. code:: shell$ rr --interval=10 my-app serve --listen=0.0.0.0:8080This command launch ``my-app serve --listen=0.0.0.0:8080``and scan current directory for changed files every ten seconds.If some files was changed, application authomatically restarted.This is usable for *development* docker containers.Signal------The process rr receives a signal SIGUSR1 for starting reload process.Installation============.. code:: shell$ pip install rrSettings========File ``.rr`` in current directory parsed for settings.rr uses the `zini <https://github.com/zzzsochi/zini>`_ library for this.:command: command for run:interval: interval between scan directory:exclude: list of excluded directories for scan:loglevel: `loglevel <https://docs.python.org/3/howto/logging.html#logging-levels>`_ for rrCommand line arguments has a higher priority than settings.For example:~~~~~~~~~~~~.. code:: ini[default]command = 'ping 8.8.8.8'interval = 5sloglevel = 'DEBUG'exclude ='*/__pycache__''.git''node_modules''build''dist'
Package: rraft-py
rraft-pyThis library provides Python bindings of thetikv/raft-rscrate, allowing for integration of theRaft consensus algorithmin Python applications.Whether you're building a distributed database, a highly-available service, or any other type of application that requires consensus among a set of nodes, this binding makes it simple to get started.✨ HightlightsProvides almost the same APIs withtikv/raft-rsto Python, even along with concrete type hints and comments for all types.Provides reliable implementation with more than 10,000 lines of test code porting.Provides flexible design inherited fromtikv/raft-rs, which meansrraft-pylets users could combine any storage and network layer they want through Python.🤔 Why?There have been several attempts to implement aRaft implementationin the Python ecosystem before, but unfortunately, there is no library being used as ade-factostandard as of now.This binding was created to resolve this problem and to make it possible to integrate your Python code withlow-level Raft implementation.When to use and when not to useThis library is a binding fortikv/raft-rsand only contains an implementation of the consensus module. Therefore, you need to write the logic for both the transport and storage layers yourself. If you just want to quickly integrate Raft with your Python application, using this library might not be suitable. In this case, you can consider to usingRaftifyorPySyncObj.However, if you want to integratewell-testedRaft implementation that is reliable for production-level use in Python, or want to change the transport layer to a different layer, or want to changefine-grainedsettings according to your application's specific use case, this binding could provide you a valid starting point.DisclaimerMemory managementThe library provides a different API compared to other Python libraries to bypass the memory management differences between Python and Rust.Refer to theHow it workspage in the Wiki for more details.🚀 Getting startedInstallationWith pip$ pip install rraft-pyExampleExample using coroutine with single in-memory nodeExample using coroutine with multi in-memory nodesReferencestikv/raft-rs- This binding provides almost completely similar APIs with raft-rs, so it would be helpful to refer to its documentation.huggingface/tokenizer- This lib's RefMutContainer implementation is greatly inspired from this binding.
Package: rr.approx
Approximate floating point arithmetic library. This simple module can be used to compare numbers using a relative and absolute tolerance, to mitigate floating point rounding errors.fromrr.approximportApproxx=Approx(0.1)*3printx==0.3# TrueTheApproxclass is very simple to use as a replacement for “regular” floats – you can useApproxobjects instead of floats in most (if not all) contexts: arithmetic and comparisons.TheApproxContextclass, also accessible asApprox.Context, provides a context manager to temporarily modify the module’s tolerance parameters.printApprox.Context()# display current contextApprox.Context(rtol=1e-4,atol=1e-2).apply()# permanently modify tolerancesprintApprox.Context()withApprox.Context(rtol=1e-5,atol=1e-3):# temporary modificationprintApprox.Context()printApprox.Context()DisclaimerPlease note that this moduledoes not solveany problems with floating point numbers. What it does is provide a little (or big, depending on how you configure your tolerance parameters) buffer to compensate for rounding errors, but as these errors accumulate you can always get unexpected results.Float rounding is inherently innaccuratein all computers and programming languages due to representing a possibly recurring decimal in a finite number of digits. If you really care about exact results and don’t mind paying a performance penalty, you should check out thedecimalmodule from the standard library or some other alternative.Installation>From PyPI (“stable” release):pipinstallrr.approxOr from the Git repo:gitclonehttps://github.com/2xR/rr.approx.gitpipinstall./rr.approxContributingContributions are welcome through github pull requests (tests would sure be nice to have… :P).And if you’re using the library and would like to say“thanks!”and/or keep me working on it, why notbuy me a beer?Happy approximate comparisons!
Package: rrb3
RaspiRobotBoard V3 Python library.For full instructions for installation and use, see:https://github.com/simonmonk/raspirobotboard3for Version 1 (through hole kit) of the RaspiRobotBoard, see:https://github.com/simonmonk/raspirobotboard/wikifor Version 2 of the RaspiRobotBoard, see:https://github.com/simonmonk/raspirobotboard2