Saravanan666/pypi-org huggingface dataset:
Package: rb3
rb3, the rb fork support Python3.7Changes compared togetsentry/rbNot a compatibility upgrade.From this version, this fork of rb will only support Python3.7+ (Python3.5+ is tested but not recommend).At the moment, we focus on how to make rb work under Python3.7 like it workd well on Python2.7.Change incrc32:Python 3 crc32 documentation clarificationscrc32 Python 3 doccrc32 Python 2 docFor now, we decide to support Python2-likecrc32computing result by editingrb/router.py:classPartitionRouter(BaseRouter):"""A straightforward router that just individually routes commands tosingle nodes based on a simple ``crc32 % node_count`` setup.This router requires that the hosts are gapless which means thatthe IDs for N hosts range from 0 to N-1.``crc32`` returns different value in Python2 and Python3, for detailscheck this link: https://bugs.python.org/issue22341."""def__init__(self,cluster):BaseRouter.__init__(self,cluster)assert_gapless_hosts(self.cluster.hosts)defget_host_for_key(self,key):ifisinstance(key,text_type):k=key.encode('utf-8')else:k=bytes_type(key)# Make sure return value same as in Python3# return (crc32(k) & 0xffffffff) % len(self.cluster.hosts)# Make sure return value same as in Python2crc_res=crc32(k)crc_res=(crc_res-((crc_res&0x80000000)<<1))returncrc_res%len(self.cluster.hosts)But may turn to use Python 3's nativecrc32function in the future.TODOoption to choosecrc32's methodfix macOS travis testfix pypy travis testrb's original READMErb - the redis blaster.The fastest way to talk to many redis nodes.  Can do routing as well as
blindly blasting commands to many nodes.  How does it work?For full documentation seerb.rtfd.orgQuickstartSet up a cluster:fromrbimportClustercluster=Cluster({0:{'port':6379},1:{'port':6380},2:{'port':6381},3:{'port':6382},},host_defaults={'host':'127.0.0.1',})Automatic routing:results=[]withcluster.map()asclient:forkeyinrange(100):client.get(key).then(lambdax:results.append(int(xor0)))print('Sum:%s'%sum(results))Fanout:withcluster.fanout(hosts=[0,1,2,3])asclient:infos=client.info()Fanout to all:withcluster.fanout(hosts='all')asclient:client.flushdb()
Package: rbackupd
rbackupd is a backup program for linux using rsync. It creates “snapshots” of
the filesystem that contain all files and directories of that filesystem at the
time of the snapshot. To reduce the required disk space, files that have not
changed since the last snapshot are hardlinked into the new snapshot.You can specify multiple intervals in which snapshots will be created, and a
maximum number of backups that should be kept for every interval. Intervals
can be given in a cron-like format, which means you have great flexibility in
specifiying these intervals.Thanks to rsync, rbackupd will preserve hard links, special files such as named
sockets and fifos, device files, permissions, ownership, modification times,
ACLs and extended attributes.As the snapshots are neither compressed nor encrypted by rbackupd, every user
can access all files owned by him without requiring root privileges.rbackupd is written in python, for version 3.3.Requirementsa POSIX compatible operating systemrsync v2.5.7 or laterpython v3.3 or latera filesystem supporting hardlinksUsagerbackupd <configuration file>DocumentationLook into doc/ for more detailed documentation.InstallationSee INSTALL for installation information.AuthorsSee AUTHORS for a list of authors.ChangelogSee CHANGELOG for a complete changelog.Licenserbackupd is licensed under the GNU General Public License version 3. See
LICENSE for a copy of the GPL.Contacte-mail:hannes.koerber+rbackupd@gmail.com
Package: rb-api-python
rb-api-pythonProject descriptionrb-api-python is an open-source library that supports rapid development of software that deals with cobot control.Supported CobotRB5-850RB3-1200RB10-1300Supported platformsThe package has been tested on:Ubuntu 18.04 and 20.04Windows 10 64-bitWith Python versions:3.7, 3.8Examplesfrom rainbow import cobot

# This IP address can be found in the control box.
cobot.ToCB('10.0.2.1') 

# Initialize (activate) the cobot.
cobot.CobotInit()

# In real mode, you need to be careful as the cobot is actually moving.
cobot.SetProgramMode(cobot.PG_MODE.REAL)
Package: rbatools
rbatoolsThis tool serves as an interface to resource-allocation modelling with the RBA-method (https://rba.inrae.fr).
It includes methods to solve, manipulate and analyse RBA-models and to export model information and simulation results into various formats.The code and teaching materials, including a sample model for B.subtilis, can be found athttps://github.com/SysBioInra/rbatoolsRBA models can be obtained from the repositoryhttps://github.com/SysBioInra/Bacterial-RBA-modelsInformation on RBA can be found athttps://rba.inrae.frand on rbatools athttps://rba.inrae.fr/rbatools
Package: rbautoml
Rainbird AutoMLCreate machine learning models using just the dataset and associated information about the data. Rainbird AutoML will ingest the data, light touch clean the data, capture statistics over the training data, before automating the steps required to transform, train, and fine tune numerous models based on a number of ML algorithms. The resulting model performances can be reviewed and predictions made against the chosen model. The model can receive batch prediction requests and can be deployed to dedicated cloud infrastructure.AuthorsNathan RobertsDocumentationFor demos and documentation see theRainbird Community
Package: rbcommenttype
This is an extension toReview Boardthat adds a new field when writing
comments, allowing users to choose a category (such as security, performance,
bug fixes, etc.) for a comment. This can help teams prioritize the type of
feedback they give and address.RequirementsThe comment categorization extension requires Review Board 3.0 or newer.InstallationTo install this extension, run:sudo pip install -U rbcommenttypeIf you’re on Python 2.7 and previously installed usingeasy_install, run:sudo easy_install -U rbcommenttypeOnce done, log in to Review Board’s administration interface. Navigate toExtensions, selectComment Categorization, and clickEnable.If you don’t see this extension, reload/rescan your list of extensions.ConfigurationThe available categories are set in the extension’s administration interface.
From the extension list in the Review Board administration UI, clickConfigureto get to the extension configuration.If you want users to have to specify a comment type for every comment that they
file, selectRequire comment type. If this is not selected, users can leave
the field blank when making new comments.Below this is a table of the available type names. New types can be added by
clickingAdd type.Types can be removed by clicking theXto the right of the name, or hidden
by un-checking the “Visible” check-box.Once changes have been made, clickSaveto update the configuration.UsageWhen creating a new comment, the comment dialog will contain a newTypedrop-down with the configured type names.The comment type saved with each comment can be seen next to the comment text,
and is also available in the API (in theextra_data.commentTypekey in the
various comment resources).ContributingAre you a developer? Do you want to help improve this extension? Great! Let’s
help you get started.First off, read through ourcontributor guide.We accept patches to Review Board-related projects onhttps://reviews.reviewboard.org. (Please note that we do not accept pull
requests on GitHub.)Got any questions about anything related to RBTools and development? Head
on over to ourdevelopment discussion list.
Package: rbco.msexcel
Author:Rafael Oliveira <rafaelbco@gmail.com>OverviewProvide functions to read, parse and convert MS Excel spreadsheets into various
data structures.UsageTo read a MS Excel file into memory callxls_to_excelerator_dict(filename).
This will return a dict in theexcelerator_dictformat.
Functions are provided to convert between this format and the following
formats.excelerator_dictA list of tuples (sheet_name, dict). dict keys are (row_num, col_num) pairs:[
    (
        sheet_name,
        {
            (row_num, col_num): value,
        }
    ),
]rows_and_columnsNested dicts which keys sheet name, row number and column number:{
    sheet_name: {
        row_num: {
            col_num: value,
        }
    },
}matrixA dict mapping from sheet names to matrices, i.e, a lists of lists:{
    sheet_name: [
        [v01, v02, v03, ...],
        [v11, v12, v13, ...],
    ]
}structurePerhaps the more user-friendly format: A dict mapping from
sheet names to lists. These lists contains the rows. Each row is
represented by a dict, mapping from column names to values. Column names
are the values in the first row of the sheet:{
    sheet_name: [
        {
            col_name: value,
        },
    ]
}This format is only useful if the first row of each sheet is actually
a header row
Package: rbco.nautilusscripts
IntroductionThis package provide some scripts for Nautilus, the Gnome file manager application.InstallingUse Python’ssetuptoolsto install the package:easy_install rbco.nautilusscriptsThis will install a set of scripts namednautilus_*into/usr/bin(or similar).Run therbco_nautilusscirpts_installscript (also in/usr/bin) to symlink thenautilus_*scripts into the~/.gnome2/nautilus-scriptsdirectory.If the scripts doesn’t show up in theScriptscontext-menu then:Open Nautilus.Go to File -> Scripts -> Open Scrips Folder.Visit each folder and reload its contents to show the scripts.Available scriptsAfter installing the following scripts will be available (by folder):renamedelete_first_n_charsremove_accentuationadd_prefixmp3replaceunhidedeletelower_case_underscoreid3add_suffixfileinfofilename_lengthreal_pathmiscchange_owner_to_mebackup: Copies FILE to FILE.bak . If FILE.bak exists then first moves FILE.bak to FILE.bak.1 .open_in_terminalopen_real_pathexecute_custom_commandtextrst2htmlChangelog0.8 (2014-08-20)Added support for Nemo and Caja (forks of Nautilus for Linux Mint).misc/open_in_terminal now uses “x-terminal-emulator” instead of “gnome-terminal”.Corrected install script name.Allow to pass source directory to install script.0.7 (2012-05-24)Now all scripts capture and display exceptions to the user.0.6 (2011-12-27)Added local copy of PyZenity.py because it’s gone missing from it’s original URL.0.5 (2011-06-26)Addedrename/mp3script.0.4 (2011-04-27)Addedtext/rst2htmlscript.0.3 (2011-03-13)Now therbco_nautilusscirpts_installscript correctly locates the installed scripts, instead
of just assuming they were on/usr/bin.0.2 (2011-01-31)Added new renaming script:remove_accentuation.Now depends onrbco.renameversion>=0.3. Previously was>=0.2.0.1 (2010-08-31)Initial release
Package: rbco.rename
Introductionrbco.renameprovides a set of Python scripts to rename files in batch.InstallInstallsetuptools.Run:easy_install rbco.renameThis will install the renaming scripts mentioned in the following section.Usagerendel STR FILESDeletes the string STR from the names of all files in FILES.rendeln N FILESDeletes the N first characters from the names of all files in FILES.renlu FILESRenames all files in FILES performing the following operations:replaces ‘ ‘ by ‘_’;replaces ‘ - ‘ and ‘- ‘ by ‘-‘;lowercase the names;remove leading and trailing spaces.renmp3 FILESRenames all files in FILES performing the following operations:replaces all accentuated characters by their ASCII counterparts.replaces ‘_’ by ‘ ‘;replaces ‘ - ‘ and ‘- ‘ by ‘-‘;titlecase the names;lowcase file extension;remove leading and trailing spaces;replace ‘ ‘ by ‘-’ after the track number, if needed;makes track numbers have always 2 digits.renid3 FILESUSAGE: renid3 FILESRename all FILES based on the ID3 tags and the FORMAT. Example of FORMAT:
‘%(tracknumber)s-%(artist)s-%(title)s.mp3’. Other tags can be specified: date, author,
composer, performer, discnumber, album, etc.FORMAT is retrieved from the RBCO_RENAME_ID3_FORMAT environment
variable. If there’s no such variable then a default format is used.renpre PREFFIX FILESRenames all files in FILES adding PREFFIX in the beggining of the file name.renrep OLDSTR NEWSTR FILESRenames all files in FILES replacing OLDSTR by NEWSTR.rensuf SUFFIX FILESRenames all files in FILES adding SUFFIX in the end of the file name. File
extension is preserved.unhide FILESUnhides all hidden files in FILES.renremoveacc FILESRename the FILES by replacing all accentuated characters by their ASCII counterparts.Changelog0.5 (2011-06-26)Addedrenid3script.0.4 (2011-01-31)Refactoring: moved funcionality out ofconsole.renmp3torenaming.rename_mp3.Now “mp3” renaming – provided by therenmp3script – also removes accentuation.0.3 (2011-01-31)Addedrenaming.rename_remove_accentuationandconsole.renremoveacc– and its
corresponding console script entry-point.0.2 (2010-08-18)Fixed badsetup.py.0.1 (2010-08-15)Initial release
Package: rbco.statcvswrapper
rbco.statcvswrapperIntroductionrbco.statcvswrapper is an wrapper aroundStatCVSto make it more straightforward to use. It also
solves a problem: it corrects the encoding so accentuation is displayed correctly in the generated
reports.InstallingDownload the StatCVS jar from its website.Add an environment variable calledSTATCVS_JAR_PATHwith the full path to the downloaded JAR.
Example:exportSTATCVS_JAR_PATH=/home/rafaelb/statcvs.jar. Normally you want to put this
at the end of your~/.bashrcfile.Use Python’s setuptools to install rbco.statcvswrapper.
Example:easy_install rbco.statcvswrapperRunningChange into your working copy directory.Do acvs update.Runstatcvs_wrapper ..This will issue the command to get the log from CVS, run StatCVS, correct the encoding of the
report and open the report in Firefox.Changelog0.2 (2010-08-06)Refactoring to make it more modular, in order to allow other programs to extend it to perform
extra formatting of the reports.0.1 (2010-08-05)Initial release
Package: rbc-tools
rbc-tools are command line tools for managingRedBridge Cloud <https://cloud.redbridge.se/>.Using rbc-tools you can manage instances, networks and othe compute resources in RBC.The tools are tested on MacOS X and Linux only at the moment, but should also work on Windows in a cygwin environment.The tools are in a early beta stageso please report any bugs tosupport@redbridge.seor as issues ongithub <https://github.com/redbridge/rbc-tools/issues>Getting startedRegister for an account onRedBridge Portal <https://portal.redbridge.se/account/signup/>Get your access key and secret key from your account page in the portal.Create a ~/.rbc/rbc.cfg file (in a terminal):mkdir -p ~/.rbc
cat > ~/.rbc/rbc.cfg <<EOF
[main]
apikey = <your api key as found in the Portal>
secretkey = <your secret key as found in the Portal>
endpoint = api.rbcloud.net
EOFInstall rbc-tools using pip (or easy_install)Now you should have access to a number of command line scripts, prefixed with rbc-*Note that you can also set api key and secret key by using environment variables:export RBC_APIKEY=XXXXX; export RBC_SECRETKEY=XXXXExamplesCreate a ssh key pair:rbc-sshkeys generate my-keypair > ~/.ssh/my-keypair_id_rsaTo deploy 3 small instances in the RedBridge Cloud, using a ssh key:rbc-instances deploy -i 3 -g test -t rbc/ubuntu-14.04-server-cloudimg-amd64-20GB-201461111 -o small -w default -s my-keypair my-instancesDevelopmentDevelopment of rbc-tools takes place on github (https://github.com/redbridge/rbc-tools).History0.3.4 (2015-05-07)Fix issue when tags are not used0.3.3 (2015-05-04)Add an ansible inventory to rbc-tools0.3.2 (2015-04-02)Do not fail on network create if the command timeouts.0.3.0 (2015-02-10)Use post for instances, this makes it possible to use up to 32K of user data0.1.18 (2014-08-07)Fix broken network list when using VPC’s0.1.17 (2014-07-31)First pypi release0.1.0 (2014-07-31)Initial release.Credits“rbc-tools” is written and maintained by RedBridge AB.Contributorscldmnky <https://github.com/cldmnky>eal <https://github.com/eal>Please add yourself here alphabetically when you submit your first pull request.
Package: rbd-iscsi-client
This is a REST client that talks to ceph-iscsi’s rbd-target-api to export
rbd images/volumes to an iSCSI initiator.Free software: Apache Software License 2.0Documentation:https://rbd-iscsi-client.readthedocs.io.OverviewThis python package is a client that talks to the ceph-iscsi rbd-target-api.
rbd-target-api coordinates the rbd volume exports via iSCSIRequirementsThis package requires a running ceph cluster that has the ceph-iscsi
gateway tools installed properly and running.  The rbd-target-api must
be configured and runningInstallationpip installrbd-iscsi-clientFeaturesThis is a REST client that talks to ceph-iscsi’s rbd-target-api to export
rbd images/volumes to an iSCSI initiator.get_api - Get all the api endpointsget_config - get the entire gateway configget_targets - Get all of the target_iqn’s defined in the gatewayscreate_target_iqn - create a new target_iqndelete_target_iqn - delete a target_iqnget_clients - get the clients (initiators) defined in the gatewaysget_client_info - get the client informationcreate_client - Register a new client (initiator) with the gatewaysdelete_client - unregister a client (initiator) from the gatewaysset_client_auth - set CHAP credentials for the client (initiator)get_disks - get list of volumes defined to the gatewayscreate_disk - create a new volume/disk that the gateways can exportfind_disk - Find a disk that the gateway knows aboutdelete_disk - delete a disk from the gateway and poolregister_disk - Make the disk available to export to a client.unregister_disk - Make a disk unavailable to export to a client.export_disk - Export a registered disk to a client (initiator)unexport_disk - unexport a disk from a client (initiator)CreditsThis package makes use of the rbd-target-api fromceph-iscsipackage.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: rbfly
RbFly is a library for RabbitMQ Streams using Python asynciohttps://www.rabbitmq.com/streams.htmlhttps://docs.python.org/3/library/asyncio.htmlThe library is designed and implemented with the following qualities in
mindSimple, flexible, and asynchronous Pythonic API with type annotations.Use of AMQP 1.0 message format to enable interoperability between
clients.Performance by implementing critical sections of code using Cython,
avoiding copying of data, and testing.Auto reconnection to RabbitMQ broker with lazily created connection
objects.RabbitMQ Streams features supportedPublishing single messages, or in batches, with confirmation.Subscribing to a stream at a specific point in time, from a specific
offset, or using offset reference.Writing stream offset reference.Message deduplication.Integration with AMQP 1.0 ecosystem at message format level.RbFly library is licensed under terms of GPL license, version 3, see
COPYING file for details. As stated in the license, there is no warranty,
so any usage is on your own risk.
Package: rbf-otp
rbf-otpRobotFramework tools provided by QA teamDocumentationhttps://packaging.python.org/en/latest/tutorials/packaging-projects/Configuration .pypircFile in ~/.pypirc
https://packaging.python.org/en/latest/specifications/pypirc/
https://python-packaging.readthedocs.io/en/latest/dependencies.htmlPackagingPrerequisite (first install)Configure python virtual env
- python -m venv .venv
Activate pyhton virtual env
- .venv\Scripts\activate
Update pip
- %CD%\.venv\Scripts\python.exe -m pip install --upgrade pip
Install/Update setuptools
- pip install --upgrade setuptools
Intall build package
- pip install --upgrade build
Install twine package
- pip install --upgrade twineIntall package associated to the toolsNeed by biuldOTP.py (repository: https://pypi.org/project/pyotp/)
- pip install pyotp==2.6.0Save the packages installedpip freeze > requirements.txtPrerequisite (clone from git)pip install -r requirementsBuild the packageChange version in files:
    - pyproject.toml
    - setup.cfg
    - setup.py
Remove files or Directory
    - rm -rf dist/*
    - rm -rf src/rbf_otp.*
Environment variable should not set
    - http_proxy
    - https_proxy
    - ftp_proxy
Build the package
    - python -m build
Will create files .tar.gz and .whl in ./dist directoryUpload packageIn current terminal define proxy your proxy
    - set proxy=http://[username]:[password]@[proxy machine]:[port]
    - set http_proxy=%proxy%
    - set https_proxy=%proxy%
    - set ftp_proxy=%proxy%

Execute commande
- python -m twine upload --repository pypi dist/*
Or
- twine upload --repository pypi dist/*pip installationpip install rbf-otp==0.1.0pdm installationpdm add --save-exact rbf-otp==0.1.0Project configurationUse library in robot file.Add the library in robot file
- Library   rbf_otp

Use the library in robot file
- ${GENERATE_KEY} Get Otp ${SECRET}

${SECRET} is extract from the QR Code as follow:
QR Code as URI => otpauth://[URL]?secret=[SECRET]&issuer=[TEXTE]
Extract [SECRET] and use it in statement of your robot file
- ${SECRET} [SECRET]

${GENERATE_KEY} is the variable with the 6 digits code generated.Update VersionUpdate files:
- pyproject.toml
- setup.cfg
- setup.pyDocumentationhttps://towardsdatascience.com/setuptools-python-571e7d5500f2Setuptools KeywordsFor file setup.py
https://setuptools.pypa.io/en/latest/references/keywords.htmlFile: setup.cfgIs an ini file containing option defaults for setup.py commands.
Package: rb-generator
Randomized benchmarking for 1-qubit and 2-qubitInstallpip install rb_generatorUsageSeetest.rb22.get_full_sequence_and_inverse_sequencerb22=rb_generator.RB22()# Open file firstifnotrb22.load_from_file('./rb22.dat'):print('load failed')exit(0)# Define the clifford lengthclifford_length=100# Generate a random sequence (each element in [0, N-1], N is the size of the clifford group)cliffords=np.random.randint(0,rb22.N,clifford_length)sequence,inverse_sequence=rb22.get_full_sequence_and_inverse_sequence(cliffords)print(sequence)print(inverse_sequence)# You will obtain the following two outputs# sequence = [3, 6, 5, 4, 1, 4, 4, 5, 2, 5, 3, 4, 3, 3, 6, 5, 6, 5, 4, 5, 1, 6, 3, 4, 5, 4, 4, 3, 5, 4, 3, 4, 5, 4, 6, 2, 3, 3, 4, 1, 4, 6, 5, 3, 3, 6, 3, 1, 6, 3, 6, 6, 5, 4, 3, 3, 4, 5, 4, 5, 5, 6, 4, 5, 0, 6, 5, 2, 5, 5, 4, 3, 6, 5, 2, 3, 5, 3, 6, 3, 4, 3, 4, 5, 3, 6, 6, 5, 3, 4, 5, 4, 3, 0, 3, 4, 3, 4, 2, 3, 2, 5, 1, 6, 4, 5, 6, 5, 3, 3, 6, 3, 5, 6, 5, 4, 5, 4, 3, 6, 3, 6, 5, 5, 4, 4, 5, 2, 2, 2, 1, 6, 6, 2, 3, 4, 3, 4, 5, 6, 6, 3, 6, 3, 4, 1, 4, 3, 6, 3, 0, 6, 5, 4, 5, 6, 3, 3, 4, 3, 4, 5, 6, 5, 6, 3, 2, 3, 6, 3, 0, 1, 6, 5, 6, 2, 3, 5, 4, 5, 6, 5, 6, 5]# inverse_sequence = [5, 6]"sequence" means the operation sequence for generating the RB sequence.
"inverse_sequence" means the operation sequence for inverting the sequence to identity.rb44.get_full_sequence_and_inverse_sequenceSame as the version of rb22.For the definition of basic generatorsThey are generated by C++ enums. Find them inclifford22.handclifford44.henumGenerator22Enum:int{Generator_I22,Generator_X,Generator_Y,Generator_SX,Generator_SY,Generator_SXdag,Generator_SYdag,};enumGenerator44Enum:int{Generator_I44,Generator_XI,Generator_IX,Generator_YI,Generator_IY,Generator_SX_I,Generator_SXdag_I,Generator_I_SX,Generator_I_SXdag,Generator_SY_I,Generator_SYdag_I,Generator_I_SY,Generator_I_SYdag,Generator_CZ,};