Saravanan666/pypi-org huggingface dataset:
Package: rswiki-wrapper
RSWiki-WrapperRSWiki-Wrapper is an open-source Python library wrapping functionality of the RuneScape Wiki API. Its goal is to support all RuneScape Wiki API endpoints for both OldSchool RuneScape and RuneScape (aka RS3).Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.RequirementsTo begin using the wrapper, you can install with pippip install rswiki-wrapperThe package is imported withimport rswiki_wrapperorfrom rswiki_wrapper import Exchange.To begin developing and testing this wrapper, set up a python environment with the prerequisites noted inrequirements.txt.Acceptable Use PolicyTo interface properly with the RuneScape Wiki API, first review theiracceptable use policy.To assist in the user setup, each child class accepts auser_agentparameter. Each user should identify a method of contact which will be submitted in each request header. This allows the RuneScape Wiki staff to contact you and correct any misbehaving queries. I recommend using the formatuser_agent='{Project Name} - {Contact}'. The library contains a generic user agent which identifies you as using this wrapper and will warn you to use a custom user agent.UsageThe project is written such that it exposes the full API responses for user interaction underWikiQuery.response. Users can review all aspects of the request response under this property. Each class also exposes two helpful properties:WikiQuery.jsonis a python dictionary format of the API responseWikiQuery.contentis the "useful" data returned by the query, typically formatted as a python dictionary or list of dictionaries, where applicable.For detailed documentation on the various API endpoints exposed and sample usage, see theproject documentationAPI EndpointsFor information on the various acceptable routes, queries, and optional arguments see the following documentation:MediaWiki APIfor all requests related to RuneScape wiki. This endpoint is valid for both OldSchool RuneScape and RuneScape.Weird Gloop APIfor requests to use the WeirdGloop API, which provides data for the RuneScape Grand Exchange and RuneScape Information.Real-Time APIfor access to real-time Grand Exchange data. This endpoint is valid only for OldSchool RuneScape.TestsTesting for this project is performed using PyTest. All tests are written in/testsand should confirm the.contentis formatted correctly, confirm the response data matches the expected value (if possible) and confirm the response keys match the expected output format.ContributingPull requests are welcome. As a novice, I welcome all suggestions for improvements. For major changes, please open an issue to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: rswt
TheRobertSonics WavTriggeris an audio player for wave files. Audio playback can be controlled through a serial port.rswt.pyis a python library for the WavTrigger that uses thepython serial libraryto control the audio player.DocumentationDocumentation for the library is on theGithub project pageA users guide for the WavTrigger is on theRobertSonics websiteInstallThe module supports Python 2.7 and Python 3.3 onwards:pip install rswtor:pip3 install rswtSource codeThe project is hosted onGithub
Package: rswt-flasher
TheRobertSonics WavTriggeris an audio player for wave files. Audio playback can be controlled through a serial port.rswt-flasheris a commandline utility written in python to upload new firmware to a WavTrigger.rswt-flasheruses thepython serial libraryDocumentationDocumentation for the utility is on theGithub project pageA users guide for the WavTrigger is on theRobertSonics websiteInstallThe module supports Python 2.7 and Python 3.3 onwards:pip install rswt-flasheror:pip3 install rswt-flasherSource codeThe project is hosted onGithub
Package: rsxr
R# - RSX-RA compiled statically typed multi paradigm general purpose programming language designed for cross platform applications.RSX LogoRSX IconRequirementsPython 3.10 or higherGetting StartedHow to installWindows (Installs the RSX-R python library).\install.batLinux (Installs the RSX-R python library)./install.shExamplesHello, World!include"rsxrio":*;// using namespace std;intmain(){std::rout("Hello, World!",std::endl());return0;}```## Factorial and Fibonacci```c++include"rsxrio":*;intfactorial(intn){if(n==1)returnn;returnfactorial(n-1)*n;}intfibonacci(intn){if(n<=1)returnn;returnfibonacci(n-1)+fibonacci(n-2);}intmain(){intn;n=5;printf("factorial(%d) = %d\n",n,factorial(n));n=8;printf("fibonacci(%d) = %d\n",n,fibonacci(n));return0;}```# Libraries-rsxrio-rsxrmath-rsxrglfw-rsxrgl-rsxr-rvr
Package: rsxtr
R#-TRPlatformlar arası uygulamalar için tasarlanan, yorumlanan, statik olarak yazılan çoklu paradigmalı genel amaçlı bir programlama dili olanR#'ın Türkçe versiyonu.R#-TR LogoExamplesHello, World!içer"rsxtrio":*;tamana(){standart::yaz("Merhaba, Dünya!"+standart::bitir());dön0;}
Package: rsyncdaemon
RSyncDaemonPython based CLI Remote Syncing Daemon service.FeaturesReal time Remote syncingUsed secure shell session for data transferConfigurable with custom configInstallationpipinstallrsyncdaemonConfigurationconfiguration file present at~/.rsyncdaemon/rsyncdaemon.conf.please create configuration file if not present.replace values with correct valuesremove configs that does not requiredefault configuration:[SyncConfig]local_dir=""remote_dir=""ssh_host="localhost"ssh_port=22ssh_username="jackson"ssh_password=""ssh_private_key_path=""rsync_command="rsync"rsync_options=["-az","--delete",]exclude_patterns=[][LogConfig]log_file_path="/home/jackson/.rsyncdaemon/rsyncdaemon.log"log_max_size=10485760log_backup_count=5minimum configuration:[SyncConfig]local_dir=""remote_dir=""ssh_host="localhost"ssh_port=22ssh_username="jackson"ssh_password=""ssh_private_key_path=""NOTE:Remember to remove one of the option eitherssh_passwordorssh_private_key_pathconfiguration supports toml file type/format, i.e. it supports list/object inside config fileUsagewith Default config filersyncdaemonwith Custom config filersyncdaemon-c<configfilepath>
eg:rsyncdaemon-c~/Documents/rsyncdaemon_custom_config.confHelprsyncdaemon-hVersionrsyncdaemon-vUse as a system serviceNOTE: Required sudo permission# install Packagesudopipinstallrsyncdaemon# Create rsyncdaemon home directory somewhere. for eg /tmp/rsyncdaemon/mkdir/tmp/rsyncdaemon/# create config file at /tmp/rsyncdaemon/rsyncdaemon.conf inside rsyncdaemon home directory created above[SyncConfig]local_dir=""remote_dir=""ssh_host="localhost"ssh_port=22ssh_username=""ssh_password=""ssh_private_key_path=""rsync_command="rsync"rsync_options=["-az","--delete",]exclude_patterns=[][LogConfig]log_file_path="/var/log/rsyncdaemon.log"log_max_size=10485760log_backup_count=5# replace with correct values# create service file at /etc/systemd/system/rsyncdaemon.service  with following content[Unit]Description=RSyncdaemonServiceAfter=network.target[Service]User=rootGroup=rootExecStart=/usr/bin/rsyncdaemon-c/tmp/rsyncdaemon/rsyncdaemon.confRestart=always[Install]WantedBy=multi-user.target# Reloading Change to Systemd Unit Filessudosystemctldaemon-reload# Start servicesudosystemctlstartrsyncdaemon# Enable service to start on bootsudosystemctlenablersyncdaemon# check statussudosystemctlstatusrsyncdaemon# check logssudotail-f/var/log/rsyncdaemon.log# To stop servicesudosystemctlstoprsyncdaemon# To remove servicesudosystemctldisablersyncdaemon
sudorm/etc/systemd/system/rsyncdaemon.serviceUninstallpipuninstallrsyncdaemonWho do I talk to?Repo owner or adminOther community or team contact
Package: rsync-progress
Shows file progress and total progress as a progress bar.UsageRun rsync with -P and pipe into this program. Example:rsync -P -avz user@host:/onefolder otherfolder/ | rsync-progress.pyIt will show something like this:65%|30652/117251|################         |ETA:  0:04:20|File:100%|Illustris-3/...68/gas2_subhalo_5885.hdf5|0:00:00|156.48kB/s

                                                               ^ File progress
                                                                     ^ File name                             ^ ETA  ^ Speed
                  ^ Overall progress bar   ^ and ETA
           ^ total number of files
       ^ files to be checked
^ Overall progressYou need the progressbar-latest package installed (see PyPI).Installation$ pip install rsync-progressContributingContributions are welcome. Please open an issue or a pull request.License: MIT
Package: rsyncrun
rsyncrunRsync your code to server and run.Deploy changing dependent projects faster, such as batch processing
tasks, e.g. submit a Python script or a Hive script to YARN.How doesrsyncrundeploy projects ?Change your code in your serveral related projects.rsyncthese projects to server, it's really fast, except for full sync in the first time.Detect some changed codes, and re-install related projects.Launch your project and debug ...BenefitsEvery command is print to console detailly, not a black box, RAW SHELL SCRIPT rocks!To run this script, only Python and its standard library is needed, no need to install thirty-party libraries.Create avirtualenvenvironment automatically.Usagepipinstallrsyncrun
rsyncrunTODOcompact with canceled, e.g. catch event, keep the logI want a feature X ? ... pleasecreate an issue, orfork it.
Package: rsyncstats
rsyncstatsParse rsync server logs, compute statistics and store in influxdb.Installationringserverstats is distributed on PyPIhttps://pypi.orgas a universal wheel.$pipinstallrsyncstatsDatabase preparationPostgresqlChoose a database and a user able to insert rows. Then create the table as follow :createtablersyncstats(timestamptimestampwithouttimezone,sentbytesbigint,receivedbytesbigint,totalbytesbigint,moduleVARCHAR(256),loginVARCHAR(16),endtimetimestamp,geohashVARCHAR(12),hosthashVARCHAR(12),hostnameVARCHAR(256),clientipVARCHAR(16));Influxdb (deprecated)configurationThis program will fill 2 measurements. You should configure a database for these, and configure a user with write priviledges.Prepare databaseFirst, create a database, a user, and retention policie.createdatabasersyncdbcreateuserrsyncwithpassword'rsyncer'grantwriteonrsyncdbtorsyncgrantreadonrsyncdbtorsynccreateretentionpolicyrp_rsynceventsonrsyncduration1wreplication1createretentionpolicyrp_rsyncstatsonrsyncduration520wreplication1UsageTo work properly, this program needs the following environment variables set :INFLUXDB_HOST: The host name or adress of influxdb serverINFLUXDB_PORT: The port number of influxdb serverINFLUXDB_USER: The influxdb user to authenticate toINFLUXDB_PASS: The password to authenticate withINFLUXDB_DB: The database name containing the metricINFLUXDB_VERIFY_SSL: Set toyesornoto verify SSL connectionINFLUXDB_SSL: Should the connection go to https ?LOGLEVEL: value can be DEBUG,INFO,WARNING,ERROR$ringserstatstxlogs.logExplanationsThe logs from rsync are metrics suitable for a timeserie database. The idea is to parse the logs, as in the exemple below, and to generate values to insert into an influxdb timeseries database.The filegrafana-dashboard.jsoncan be imported into grafana to visualize this timeserie.Used tags in influxdb :showtagkeysfromrsynceventsshowtagkeysfromrsyncstatsThe rsyncevents measure has several tags :module : the rsync moduled accesed during transfergeohash : location of the client in geohash formathosthash : a hash of the client ip (usefull to correlate the clients requests)city : an english city nameBecause storing events in the longterm is not very relevant, thersyncstatsmeasurement groups all events by day, by host and by network. The retention policies discribed above will manage the time your data get stored in influxdb.DetailsAn event :{'timestamp': '2019-03-05 03:28:03',
 'pid': '27615',
 'logtype': 'rsync to',
 'sentbytes': '184494',
 'receivedbytes': '19414234',
 'totalbytes': '19609565',
 'module': 'PORTAL-PRODUCTS-RW',
 'directory': '/seedlinkplots/',
 'user': 'resifportal',
 'hostname': 'resif-vm30.ujf-grenoble.fr',
 'clientip': '152.77.1.6',
 'endtime': '2019-03-05 03:28:08',
 'geohash': 'u0h0fpnzj9ft',
 'city': 'Grenoble',
 'hosthash': "b'khadLrK6HR6v'"
}Licensersyncstatsis distributed under the terms of the GPL v3 or later. See LICENSE file.Buildpython3setup.pysdistTesttox
Package: rsyncwrap
A library for using rsync from python.frompathlibimportPathfromrsyncwrapimportrsyncwrapsource=Path('/the_source')dest=Path('/the_destination')forupdateinrsyncwrap(source,dest):print(update)rsyncwrapyields progress updates viaStatsobjects that have the following properties:in_progress_stats: An instance ofTransferStats(see below for a description).transferring_path: An instance ofpathlib.Paththat indicates the path that is currently
transferring.last_completed_path: An instance ofpathlib.Paththat indicates the last path to finish
transferring.completed_paths: A dictionary withpathlib.Pathkeys andTransferStatsobjects as values.
The value for each key is the stats for that completed transfer.last_completed_path_stats: An instance ofTransferStatsfor the lastcompletedtransfer.total_transferred: The total bytes transferred so far.  Does not include bytes already at the
destination when the transfer started.raw_output: A list of lines we got from the underlying rsync command.  Useful for debugging
during development.TransferStatsobjects look like this:transferred_bytes:  The total bytes transferred for the current line of rsync output.percent:  The percent complete for the current file being transferred.time:  Rsync's estimated time for the current file being transferred.transfer_rate:  Rsync's value for the current transfer in bytes.transfer_rate_unit: Rsync's outputted transfer rate unit.  e.g. "MB/s"is_completed_stats:  Is this the stats for a completed file transfer?Notes about how we use rsync:We call rsync with the-aoption. This means it's recursive and preserves everything except
hard links.This early version only supports transferring thesourcedirectoryintothe destination
directory.  In other words, in the above example we'd end up with/the_destination/the_source.Of course, since this is rsync, we only transfer changed bytes and this means it's a resumable
process.In my testing rsync yields a stats update about once a second, so that's how often we yield
them to the caller.
Package: rsyncy
rsyncyA status/progress bar forrsync.I love rsync but I always felt it was either too chatty when transferring lots of small files or did not show enough information for the large files in between. rsyncy is a wrapper to change this without having to modify rsync.Status Bar[########################::::::]  80% |      19.17G |      86.65MB/s | 0:03:18 | #306 | scan 46% (2410)\The status bar shows the following information:DescriptionSampleProgress bar with percentage of the total transfer[########################::::::]  80%Bytes transferred19.17GTransfer speed86.65MB/sElapsed time since starting rsync0:03:18Number of files transferred#306Files to scan/check- percentage completed- (number of files)- spinnerscan 46% (2410)\The spinner indicates that rsync is still checking if files need to be updated. Until this process completes the progress bar may decrease as new files are found.LimitationsInteractive ssh questions (host key, password) are happening outside of the piped content. That means that rsyncy does not know that ssh is waiting for input and will draw the status bar over it. If you have an idea on how to handle this case please let me know.Workaround: connect once to your server via ssh to add it to the known_hosts file.Installationpip3 install --user rsyncy

# or if you have pipx
pipx install rsyncyMinimum Python version is 3.6.On macOS you also need tobrew install rsyncbecause it ships with an rsync from 2006.Usagersyncyis a wrapper aroundrsync.You runrsyncywith the same arguments as it will pass them torsyncinternally.Do not specify any--infoarguments, rsyncy will automatically add--info=progress2and-hvinternally.# simple example
$ rsyncy -a FROM/ TOAlternatively you can pipe the output from rsync to rsyncy (in which case you need to specify--info=progress2 -hvyourself).$ rsync -a --info=progress2 -hv FROM/ TO | rsyncyAt the momentrsyncyitself has only one option, you can turn off colors via theNO_COLOR=1environment variable.lf supportrsyncy-statcan be used to view only the status output onlf(or similar terminal file managers).Example:cmd paste-rsync %{{
    opt="$@"
    set -- $(cat ~/.local/share/lf/files)
    mode="$1"; shift
    case "$mode" in
        copy) rsyncy-stat -rltphv $opt "$@" . ;;
        move) mv -- "$@" .; lf -remote "send clear" ;;
    esac
}}This shows the copy progress in the>line while rsync is running.DevelopmentFirst record an rsync transfer withpipevcr, then replay it to rsyncy when debugging.
Package: rsyslog-pseudonymizer
RsyslogPseudonymizerRsyslogPseudonymizer is a plug-in module for Rsyslog based on Python
which replaces personal identifiers in log messages by pseudonyms
before they are written to log files.
The pseudonym-mapping is only kept in RAM.Test and buildRun the following commands:virtualenv-p"$(whichpython3)"./venvsource./venv/bin/activate
pipinstall-rdev_requirements.txt
tox
hatchclean
hatchbuildInstallationIn the absence of OS packages, some more steps are required.
See the providedinstall.shor run it as root (tested on Debian).You should then configure your applications/services
so that the logs are written only to Rsyslog.If you use Systemd, you could configure it to forward received logs to Rsyslog.
Then it would in general only be necessary to configure applications to
only log to stdout/stderr so that Systemd handles the output.
Configuration example:/etc/systemd/journald.conf.d/forward_to_syslog.conf[Journal]
# Keep log data only in memory, but forward journal log to (r)syslog
Storage=volatile
ForwardToSyslog=yes

# Reduce amount of logs stored in RAM somehow
MaxFileSec=1h
MaxRetentionSec=2daysThen:systemctl restart systemd-journald.service
Package: rtadubai
rtadubaiUnofficial API for RTA (Dubai)InstallingpipinstallrtadubaiInstalling Development Versionpipinstallgit+https://github.com/NotNalin/rtadubaiExamplesGetting Nol Card balancefromrtadubaiimportNolcard=Nol.Card("Your nol card number")balance=card.balance# --------------------OR----------------------------details=Nol.details("Your nol card number")balance=details["balance"]More examples
Package: rt-api
rt_apirt_api is a python client for the Rooster Teeth Api. It allows easy access to resources such as episodes, seasons, shows, and users.It supports Python 2.7, 3.4-3.7, as well as PyPy.InstallationTo installrt_api, run:pip install rt_apiAlternatively rt_api can be installed from source by cloning the repository
and running setuptools:git clone https://github.com/NickMolloy/rt_api
cd rt_api
python setup.py installUsingrt_apiThe main entry point for the library is theApiclass.
Instantiating this class will give access to all of the API functionality.
For example:fromrt_api.apiimportApiapi=Api()# Instantiate api. Generates default access token.latest_episodes=api.episodes()# Get an iterable of the latest episodesnewest_episode=next(latest_episodes)print(newest_episode.title)# Print out episode titleshow=newest_episode.show# Get a reference to the show the episode is fromprint(show.name)# Print out name of the showIf you want to be able to perform actions as a specific user, you must first
authenticate:fromrt_api.apiimportApiapi=Api()api.authenticate("myUsername","myPassword")# Authenticate as myUsernameFrom this point, all actions performed will be done in the context of that user.
For instance, the current user is available through themeattribute of the api:my_user=api.me# Get the user object associated with the authenticated usermy_user.queue# Get the current user's episode watch listFor more information on the available actions, see thepackage documentation,
or someexamples.
Package: rt.atmigrator
IntroductionThis simple package allows to migrate from a portal-type to another.
This is done byProducts.contentmigration, we only provide a simple interface that allows to select source and destination portal_types.InstallationYou only need to add the product to eggs and launch the buildout. No installation needed, is only a view.buildout.cfg:[instance]
eggs +=
     rt.atmigratorUsageTo migrate some contents, you only need to call “@@migrate-types” view in site root.Remember to update the catalog after migration to align metadatas.TODOHandle more specific queries (for example filtering by path or review_state)Handle custom migration behaviors (pre and post migration) for specified portal_types with some additional pluginsCompatibilityThis product is tested with Plone 3.3.x and 4.2.x (with tests).AuthorsThis product was developed by RedTurtle Technology team.Changelog0.1.0 (2013-03-12)Initial release
Package: rtb-data
Robotics Toolbox for Python - data filesThis package includes large data files associated with the Robotics Toolbox for Python (RTB-P).RationaleThe data files are provided as a separate package to work around disk space limitations on PyPI.  Including these data with the RTB code adds nearly 200MB to every release, which will blow the PyPI limit quite quickly.Since the data doesn't change very much, it's mostly robot models and a few data sets, it makes sense for it to be a standalone package.Package contentsFolderPurposedatamiscellaneous STL files and data setsmeshesSTL mesh models for DH robotsxacroURDF/xacro models for URDF robotsAccessing data within the packageThe Toolbox functionpath_to_datafile(file)will return an absolutePathtofilewhich is relative to the root of the data package.  For exampleloadmat("data/map1.mat")   # read rtbdata/data/map1.mat
loadmat("foo.dat")         # read ./foo.dat
loadmat("~/foo.dat")       # read $HOME/foo.datA matching local file takes precendence over a file in the data package.Installing the packageYou don't need to explicitly install this package, it happens automatically when you when you install RTB-Ppip install roboticstoolbox-pythonsince it is a dependency.
Package: rtbhouse-sdk
OverviewThis library provides an easy-to-use Python interface to RTB House API. It allows you to read and manage you campaigns settings, browse offers, download statistics etc.API docs:https://api.panel.rtbhouse.com/api/docsInstallationRTB House SDK can be installed withpip:$ pip install rtbhouse_sdkUsage exampleLet’s write a script which fetches campaign stats (imps, clicks, postclicks) and shows the result as a table (usingtabulatelibrary).First, createconfig.pyfile with your credentials:USERNAME = 'jdoe'
PASSWORD = 'abcd1234'Set up virtualenv and install requirements:$ pip install rtbhouse_sdk tabulatefromdatetimeimportdate,timedeltafromoperatorimportattrgetterfromrtbhouse_sdk.clientimportBasicAuth,Clientfromrtbhouse_sdk.schemaimportCountConvention,StatsGroupBy,StatsMetricfromtabulateimporttabulatefromconfigimportPASSWORD,USERNAMEif__name__=="__main__":withClient(auth=BasicAuth(USERNAME,PASSWORD))asapi:advertisers=api.get_advertisers()day_to=date.today()day_from=day_to-timedelta(days=30)group_by=[StatsGroupBy.DAY]metrics=[StatsMetric.IMPS_COUNT,StatsMetric.CLICKS_COUNT,StatsMetric.CAMPAIGN_COST,StatsMetric.CONVERSIONS_COUNT,StatsMetric.CTR]stats=api.get_rtb_stats(advertisers[0].hash,day_from,day_to,group_by,metrics,count_convention=CountConvention.ATTRIBUTED_POST_CLICK,)columns=group_by+metricsdata_frame=[[getattr(row,c.name.lower())forcincolumns]forrowinreversed(sorted(stats,key=attrgetter("day")))]print(tabulate(data_frame,headers=columns))LicenseMIT