Saravanan666/pypi-org huggingface dataset:
Package: rdb-cli
Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSONRDB-CLI is a parser for Redis’ dump.rdb files. The parser generates events similar to an xml sax parser, and is very efficient memory wise.SUPPORTING LATEST REDISIn addition, rdbtools provides utilities to :Generate a Memory Report of your data across all databases and keysConvert dump files to JSONCompare two dump files using standard diff toolsRDB-CLI is forked from rdbtools written in Python, though there are similar projects in other languages. See FAQs (https://github.com/sripathikrishnan/redis-rdb-tools/wiki/FAQs) for more information.
Package: rdbex
RdbEXReplit DataBase EXtendedReplit database extended is a package designed to expand the abilities of the default replit database.it adds things such as:emulated foldersease of accessvalue sharingsafe secret storageand much more...how to use: a basic rundown(NOTE: does NOT support versions below 0.2)after installing the package, import usingimport rdbex.to create a new key in the root directory, userdbex.set("keyname").to delete a key, userdbex.delete("keyname").to create a new key within a folder, userdbex.set("keyname", "folderA"). (same thing for deleting keys within folders)to create keys within nested folders, userdbex.set("keyname", "folderA|folderB"). (same thing for deleting keys within folders)to list keys and list keys within a folder(s), userdbex.list("folderA|folderB (optional)").and to drop your database (with an optional path), userdbex.drop("folderpath (optional)")key sharingto share a key with another value, userdbex.reference("FROM", "key", "path (optional)"in thevaluesection ofrdbex.set()secret storageto safely store replit secrets and os environment variables within your database, userdbex.reference("ENV", "variable name")in thevaluesection ofrdbex.set()Recovery.warning!to repair anything without reinstalling the package, you need to make sure the "recovery.py" and "__internal/_recovery.py" files are accessible.if you delete a required file from the package or the package gets corrupted and if fails to load on import, you will get an ImportError that says"The package has been installed incorrectly and/or has been corrupted. please reinstall the package.", to fix this, just uninstall & reinstall the package using the package manager of your choice.if the database is corrupted, you will get an ImportError saying"critical damage to rdbex detected. a repair has been ran, please restart. if the error persists, use "from rdbex import recovery" and run recovery.rebuild() to attempt to fix the issue", before doing anything, try rerunning the code, as it attempts to repair the database. if the error still persists, runfrom rdbex import recovery. after importing recovery, runrecovery.rebuild()to completely rebuild the database metadata.this WILL wipe ALL user-set config, but NOT the db*keep in mind that by default, "|" is the spacing character for folders, this can be changed via theconfigure()command in utils*this is not full documentation, and it will be coming soon.converting databases is currently not implemented, but might happen in the future.
Package: rdbgenerate
# rdbgenerateUtility for generating Redis dump (.rdb) files from Python native objects## InstallationYou can install this package using `pip`pip install rdbgenerate## Version support`rdbgenerate` is written for Python 3.## Generated `.rdb` filesThe `.rdb` files generated by `rdbgenerate`:- do not use compression to reduce size, unlike Redis itself which usessmart encoding formats to keep file size down- do not include auxiliary information such as database size hints,additional version information, etc.## UsageOnce installed, use `rdb_generate` to write `.rdb` files.$ python>>> from rdbgenerate import rdb_generate>>> rdb_generate('dump.rdb',db0={b"a": b"0",b"b": {b"1"},b"c": [b"1", b"2", b"3"],b"d": {b"x": b"y"}},db1={b"California": b"dreamin'"})>>> quit()$ redis-server### EncodingsThis package supports strings that are Python `bytes` objects. It does *not* support regular Python strings.Python strings can be converted to `bytes` via>>> s = "California">>> b = s.encode('utf8')>>> print(b)b"California"For more information on string encoding in Python 3, see https://docs.python.org/3/howto/unicode.html .
Package: rdbtool
rdbtoolDropboxのファイルを簡単に扱うためのライブラリ。インストールpipinstallrdbtool事前準備ここでDropbox側の設定を行う設定方法は後日解説記事を作成予定使い方importrdbtool# クラスの定義db=rdbtool.RDB('(アクセストークン)','プロジェクト名')# ファイルのダウンロード (test.txtというファイルをtest1.txtとしてダウンロード)db.download_file('test1.txt','test.txt')# ファイルのダウンロード (ファイルの競合を防ぐロックをかける、アップロードでロック解除)db.download_file('test1.txt','test.txt',lock=True)# ファイルのアップロード (test1.txtというファイルをtest2.txtとしてアップロード)db.upload_file('test1.txt','test2.txt')# ファイルのアップロード (test1.txtというファイルをtest.txtとして上書きアップロード)db.upload_file('test1.txt','test.txt',overwrite=False)# 共有リンクの取得 (test.txtの共有リンクを取得)link=db.get_shared_link('test.txt'):
Package: rdbtools
Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSONRdbtools is a parser for Redis’ dump.rdb files. The parser generates events similar to an xml sax parser, and is very efficient memory wise.In addition, rdbtools provides utilities to :Generate a Memory Report of your data across all databases and keysConvert dump files to JSONCompare two dump files using standard diff toolsRdbtools is written in Python, though there are similar projects in other languages. See FAQs (https://github.com/sripathikrishnan/redis-rdb-tools/wiki/FAQs) for more information.
Package: rdbtools3
Inspired byredis-rdb-toolsDocumentationSeehttp://rdbtools3.readthedocs.org/Usage examplefromrdbtools3importparse_rdb_streamwithopen('/path/to/redis/dump.rdb','rb')asf:foriteminparse_rdb_stream(f):print(item.key,item.value)CHANGES0.1.2 (2014-05-21)Add MakefileAdd CHANGES.txtAdd setup.pypep8 and pyflakes3 cleanupdocumentation started
Package: rdc.common
rdc.commoncontains a few simple general purpose utilities that are used by various different projects.DocumentationTODOFull documentation for rdc.common on ReadTheDocs.Running the Test SuitepipinstallnosemaketestRelease NotesContributingI’m Romain Dorgueil.rdc.commonis onGitHub.Get in touch, via GitHub or otherwise, if you’ve got something to contribute,
it’d be most welcome!If you feel overwhelmingly grateful, or want to support the project you can tip
me onGittip.
Package: rdc.etl
rdc.etlis an Extract Transform Load (ETL) toolkit for python 2.7+ (no
python 3 support yet). It gives you all the tools needed to create complex data
integration jobs from simple atomic io-connected transformation blocks.DocumentationFull documentation for rdc.etl on ReadTheDocs.This is a work in progress, the 1.0 API may change until 1.0 is released.Example usage>>># Sample data extract transformation.>>># Use hardcoded data here for sample purpose.>>>fromrdc.etl.transform.extractimportExtract>>>@Extract...defsample_extract():...yield{'first_name':'John','last_name':'Doe',}...yield{'first_name':'Jane','last_name':'Dae',}>>># Sample data transformation.>>>fromrdc.etl.transformimportTransform>>>@Transform...defsample_transform(hash,channel):...hash['last_name']=hash['last_name'].upper()...hash['initials']='{0}.{1}.'.format(hash['first_name'][0],hash['last_name'][0]).upper()...yieldhash>>># Sample load. This is only a screen log for sample purpose.>>>fromrdc.etl.transform.utilimportLog>>>sample_load_to_screen=Log()>>># Tie everything together, then run!>>>fromrdc.etl.harness.threadedimportThreadedHarness>>>job=ThreadedHarness()>>>job.add_chain(sample_extract,sample_transform,sample_load_to_screen)>>>job()Running the Test SuitepipinstallnosemaketestRelease Notes1.0.0a6Database transformations: now present in rdc.etl.extra subpackages, to avoid
mixing core API and sugar box.Database transformations: more flexibility in what is allowed (insert/update).Better standard compliance (thanks #python)Harness is now called Job, for simplicity sake. Old name will be kept too (BC).XMLMap enhancements.HTTP status interface (early minimalistic version).Changed examples name to avoid import hell.Less hackish http reader, better unicode support (@jmorel).PasteScript can now be used to generate an empty working ETL project.FileProxy based download manager.Minor fixes.1.0.0a5Status: console now has amazing ansi, detailed io statistics, overall stats
(memory, time) added, experimental http status, db stats for database load.API stabilization, cleanup and simplification towards 1.0.0.Simple handling of KeyboardInterrupt: CTRL-C will now exit the running job
instead of making your process stale.Maps simplification.Enhancements to various transform classes: load.database.DatabaseLoad,
filter.Filter, map.xml.XmlMap, util.Log, join.database.DatabaseJoinNew transforms: util.LimitVarious bugfixes.Minor enhancements: custom names in transforms, some more tests.Moved repository to github.com/rdcli/etl.ContributingI’m Romain Dorgueil.rdc.etlis onGitHub.Get in touch, via GitHub or otherwise, if you’ve got something to contribute,
it’d be most welcome!If you feel overwhelmingly grateful, or want to support the project you can tip
me onGittip.
Package: rdchiral
rdchiralWrapper for RDKit's RunReactants to improve stereochemistry handlingRequirementsRDKit (version >= 2019)Python (version >= 3.5)InstallationTo install RDChiral runpip install rdchiralTo get the most recent version reflected by this git repo, install withpip install -e "git://github.com/connorcoley/rdchiral.git#egg=rdchiral"Fast C++ version (rdchiral_cpp)A fast C++ implementation (rdchiral_cpp) is available as a drop-in replacement. It provides ~10x speedup. To install from anaconda, runconda install -c conda-forge -c ljn917 rdchiral_cppDocumentationSeerdchiral/main.pyfor a brief description of expected behavior and a few basic examples of how to use the wrapper.Seerdchiral/test/test_rdchiral.pyfor a small set of test cases describedhere
Package: rdcli
Use Read-Debrid from your command line !rdcliis a tool allowing you to use Real-Debrid from your command
line. It’s written inPython 2.7because Python comes pre-installed
on most distribution nowadays, limiting the amount of software
dependency.InstallationUsingpip(preferred method)To install the latest version ofrdclion your computer, open a
terminal and enter the following line:sudopipinstallrdcliTo updaterdcli, run :sudopipinstallrdcli-UAlternative methodIf you don’t have/wantpipinstalled on your computer, you can
manually installrdcliwith the following commands (cloning the repo
and launching thesetup.py)gitclonehttps://github.com/MrMitch/realdebrid-CLI.gitcdrealdebrid-CLIpythonsetup.pyinstallUsageIn the command linemitch@raspberrypi~$rdcli[OPTIONS]LINKOPTIONScan be:::-vVersion. Show the installed version.-hHelp. Display this help.-iInit. Force rdcli to ask for your login and password.
Useful if you made a typo or if you changed your login information since you first used rdcli.-lList. Write a list of the successfully unrestricted links on STDOUT, without downloading.
-t and -q options have no effect if -l is used.-oOutput directory. Download files into a specific directory.-OOutput file. Specify a name for the downloaded file instead of using the original file’s name.
-O has no effect if several files will be downloaded.-pPassword. Provide a password for protected downloads.-qQuiet mode. No output will be generated.-tTest mode. Perform all operations EXCEPT file downloading.LINKcan be the URL to a file you want to download
(i.e.http://host.com/myFile.zip) or the path to a file containing one
ore several URL(s).Examples:mitch@raspberrypi~$rdclihttp://host.com/myFile.zipmitch@raspberrypi~$rdcli-oDocuments/http://host.com/myFile.zipmitch@raspberrypi~$rdcliurls.txtmitch@raspberrypi~$rdcli-tlinks-to-test.txtmitch@raspberrypi~$rdcli-llinks.txt>unrestricted-links.txtFor development purposesSee theRDWorkerfile. It defines 4 classes:RDError: Base Exception to be inherited for all Exception related
to Real-DebridUnrestrictionError: Exception thrown when an error occurs during
link unrestrictionLoginError: Exception thrown when an error occurs on logingRDWorker: Worker class providing methods tologin into Real-Debrid, establishing a cookie and keeping it until
it’s expiredunrestrict any supported linkLicenseThis software is distributed under the MIT License. A copy of
the license can be found in theLICENSE.txtfile.ContributingThis script was initially written for my personal use but I’d be more
than happy if it could be useful to any folk from the magical land of
the Internet. Feel free to fork and submit your Pull Request to
fix/improverdcli.Reportrdclibugs ongithubContributorsMrMitchfklingler
Package: rdd
rddrdd is a set of tools for implementing regression discontinuity designs in Python.  At present, it only allows for inputs that are pandas Series or DataFrames.  Check out the tutorialherefor a guide to using this package.Installation:To install usingpip, runpip install rdd. Seeherefor more information and to download from PyPI.  Otherwise, you can download this repository.Current Features:Computes the Imbens-Kalyanaraman optimal bandwidth (seethis articlefor details)Creates a dataset containing only observations within a given bandwidthGenerates a reduced pandas DataFrame for graphical analysis (such as binned scatter plots) when the number of observations is largeImplements a sharp RDDWith or without user supplied equation and/or controlsVia OLS or WLSFeatures to Come:Tutorial on how to check rdd's statistical assumptions in Python, such as using:Continuity plotsDensity plotsTests for discontinuitiesChecking for balance and testing for random assignment (though not a requirement, it can still be a useful check)McCrary testsImplementation of Fuzzy RDD
Package: rddensity
RDDENSITYDensity discontinuity testing (a.k.a. manipulation testing)
is commonly employed in regression discontinuity designs
and other program evaluation settings to detect perfect self-selection (manipulation)
around a cutoff where treatment/policy assignment changes.
This package implements manipulation testing procedures using
the local polynomial density estimators:
rddensity() to construct test statistics and p-values given a prespecified cutoff,
rdbwdensity() to perform data-driven bandwidth selection,
and rdplotdensity() to construct density plots.This work was supported in part by the National Science Foundation through grantsSES-1357561,SES-1459931,SES-1459967,SES-1947662,SES-1947805, andSES-2019432.AuthorsMatias D. Cattaneo (cattaneo@princeton.edu)Xinwei Ma (x1ma@ucsd.edu)Michael Jansson (mjansson@econ.berkeley.edu)Rajita Chandak (maintainer) (rchandak@princeton.edu)Websitehttps://rdpackages.github.io/rddensityQueries and RequestsPlease email:rdpackages@googlegroups.comImplementationTo install/update in Python type:pip install rddensityHelp:PyPI,DocumentationReplication:Python scriptUsagefrom lpdensity import lpdensity, lpbwdensityDependenciesnumpypandasmathscipyplotnineReferencesFor overviews and introductions, seerdpackages website.Software and ImplementationCattaneo, Jansson and Ma (2018):Manipulation Testing based on Density Discontinuity.Stata Journal18(1): 234-261.Cattaneo, Jansson and Ma (2022):lpdensity: Local Polynomial Density Estimation and Inference.Journal of Statistical Software101(2): 1-25.Technical and MethodologicalCattaneo, Jansson and Ma (2020):Simple Local Polynomial Density Estimators.Journal of the American Statistical Association115(531): 1449-1455.Supplemental appendix.Cattaneo, M. D., M. Jansson, and X. Ma (2023).Local Regression Distribution Estimators.Journal of Econometrics, forthcoming.Supplemental Appendix.
Package: rddl-client
rddl-clientThe rddl-client enables you to interact with the rddl-network.The following interactions are currenlty supported:RequirementsThe rddl-client installation requires pyhton above version 3.9 and an installation ofpeotry.This can for example be done viapip install --upgrade poetrytake care that thepoetrybinary is within yourPATHenviornment variable.Installing rddl-clientThe rddl-client is a basic cmd-line tool to interact with the HW-03 hardware wallets of the rddl-network.The rddl-client can be used from within the virtual environment after a successful installation.The installation of the rddl-client can be easily conducted from the root directory of the repository viapoetry installUsing rddl-clientPlease usepoetry shellto enter the virtual python environemnt. Now, you can use therddl-clientas it comes.
An alternative option is to run execute the command via poetry from the virtual environmentpoetry run rddl-client <command> --help.ConfigurationThe following variables define how the client connects to the 0x21e8 serivce and the smart meter by with tasmota firmwareHW_03_SERVICE = (default="http://localhost:8000") - the0x21e8 serviceconnectionTASMOTA_SERVICE (default="http://sonoff") - the link to thetasmota APIof the smart meterThe environment varialbes can be setby usingexportby defining them prior to the cli command on the shellHW_03_SERVICE=http://localhost:8000 TASMOTA_SERVICE=http://192.168.0.1 rddl-client --helpby defining them in the local environment file.envCommandsThe following commands are currently supportedattest-dataattest-energy-consumptionattest-machinecreate-seedrecover-seedPlease userddl-client --helpandrddl-client <command> --helpto get clear instructions.AutomationA cronjob description is within the filerddl-notarize-crontab.
The following instruction will install the file and let you notarize the energyc-consumption every 15 minutes.sudo cp rddl-notarize.crontab /etc/cron.d/rddl-notarize
sudo systemctl restart cron.serviceThe outcome of the script is written to syslog. Use the folloing command to inspect the activities on your nodesudo grep rddl-client /var/log/syslog
Package: rddlgym
rddlgymA toolkit for working with RDDL domains in Python3. Its main purpose is to wrap a RDDL domain/instance planning problem as an OpenAI Gym environment.Quickstart$ pip3 install -U rddlgymFeaturesrddlgymimplements the OpenAI Gym API for RDDL problems. It usespyrddlto parse RDDL files. Additionally, in order to simulate RDDL domains, it usesrddl2tfto compile RDDL operations and expressions toTensorFlow 1.Xops.For further details, please refer to the documentation of the following packages:pyrddl: RDDL lexer/parser in Python3.rddl2tf: RDDL2TensorFlow compiler.NOTEPlease note thatrddl2tf(and consequentlyrddlgym) has been mainly developed to support continuous state-action domains. It may not currently work for discrete MDPs.If you tried to userddlgymwith your own RDDL files and encounter errors due (probably) to the RDDL-to-TensorFlow compilation, please do not hesitate to open an issue or contact me.Usagerddlgymcan either be used as a standalone CLI app or it can be integrated with your code in order to implement customized agent-environment interaction loops.CLI$ rddlgym --help
Usage: rddlgym [OPTIONS] COMMAND [ARGS]...

  rddlgym: A toolkit for working with RDDL domains in Python3.

Options:
  --help  Show this message and exit.

Commands:
  info   Print metadata for a `rddl` domain/instance.
  ls     List all RDDL domains and instances available.
  parse  Check RDDL file parsing.
  run    Run random policy in `rddl` domain/instance.
  show   Print `rddl` file.APIimportrddlgym# create RDDLGYM environmentrddl_id="Navigation-v3"# see available RDDL domains/instances with `rddlgym ls` commandenv=rddlgym.make(rddl_id,mode=rddlgym.GYM)# you can also wrap your own RDDL files (domain + instance)# env = rddlgym.make("/path/to/your/domain_instance.rddl", mode=rddlgym.GYM)# define random policypolicy=lambdastate,t:env.action_space.sample()# initialize environamentstate,t=env.reset()done=False# create a trajectory containertrajectory=rddlgym.Trajectory(env)# sample an episode and store trajectorywhilenotdone:action=policy(state,t)next_state,reward,done,info=env.step(action)trajectory.add_transition(t,state,action,reward,next_state,info,done)state=next_statet=env.timestepprint(f"Total Reward ={trajectory.total_reward}")print(f"Episode length ={len(trajectory)}")filepath=f"/tmp/rddlgym/{rddl}/data.csv"df=trajectory.save(filepath)# dump episode data as csv fileprint(df)# display dataframeLicenseCopyright (c) 2018-2020 Thiago Pereira Bueno All Rights Reserved.rddlgym is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.rddlgym 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 Lesser
General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with rddlgym. If not, seehttp://www.gnu.org/licenses/.
Package: rdeer-service
RDEER-SERVICErdeer-service is a tool to facilitate the use ofReindeeras socket mode.
It also summarize its outputs.It is a companion toTransipedia, a web application to query easily and fastly Reindeer.InstallationRecommanded (pip)python3 -m pip install rdeer-serviceOther (git)git clone https://github.com/Bio2M/rdeer-service.gitHow to use?PrerequisiteYou need some Reindeer indexes.each index must embeds additionnal file namedfos.txtThe fos.txt file must contain the list of sample (IN ORDER) and facultatively for each sample a count to normalize counts with the-noption (delimiter: tab)Example of fof :sample_A	1234567
sample_B	2367912
sample C	4562221The indexes built with the--disk-queryoption must have a empy file nameddisk-query. So queries will use the--disk-queryoption.Start the serverthe server must be in the same physical server than Reindeer, You can have multiple servers with Reindeer.  Each of them must have the server.rdeer-server /path/to/indexesrdeer-server listen on port 12800, you can change this with--portoption.The server will only be able to handle indexes in the specified directory. If your indexes are spread over several directories, you may create symlinks in/path/to/indexes.You can add, remove or change the name of the indexes, rdeer-server takes the changes on the fly.It is recommanded to start rdeer-server as a daemon, using systemd, supervisord or whatever.Use the clientThe client could requests remote rdeer-server servers. You can enterely manage yours Reindeer indexes with subcommand:rdeer list -ato show all indexes with their statusrdeer start <index-name>to start a index (the index name is the directory hosting the index files)rdeer stop <index-name>to stop a indexrdeer check <index-name>to verify if index respondingrdeer query <index-name> -q <query.fa>to request an indexshow running indexes:rdeer-client listShow all indexes handled by rdeer-serverrdeer-client list -alist all accessible indexes by rdeer-server, with status. Status are :availablethe index is not runningloadingthe index is in a transitional mode until the running moderunningthe index is started, and can be resquested.Start an index:rdeer-client start my-indexWill starts themy-indexReindeer index. When status isrunning, the index is ready to respond to requests.Query an indexrdeer-client query my-index -q fasta-queryRequests the specified index, the query file is required and must be in a fasta format.Options of query subcommand (rdeer-client query --help):-q,--queryto send a query file at the fasta format (required)-n,--normalizeto obtain normalized counts-u,unitig-countsto obtain raw Reindeer output-s,--serverto request rdeer-server on remote host-p,--portto request rdeer-server on a specified port (default: 12800)-o,--outfileoutput is stdout by default, you can specified a file