Saravanan666/pypi-org huggingface dataset:
Package: rtmidi-python
Python wrapper forRtMidi, the lightweight, cross-platform MIDI I/O
library. For Linux, Mac OS X and Windows.SetupThe wrapper is written inCython, but the generated C++ code is
included, so you can install the module as usual:python setup.py installIf you want to build from the Cython source, make sure that you have a
recent version of Cython (>= 0.17), and run:python setup.py install --from-cythonUsage Examplesrtmidi-pythonuses the same API asRtMidi, only reformatted to comply
with PEP-8, and with small changes to make it a little more pythonic.Print all output portsimport rtmidi_python as rtmidi

midi_out = rtmidi.MidiOut()
for port_name in midi_out.ports:
    print port_nameSend messagesimport rtmidi_python as rtmidi

midi_out = rtmidi.MidiOut()
midi_out.open_port(0)

midi_out.send_message([0x90, 48, 100]) # Note on
midi_out.send_message([0x80, 48, 100]) # Note offGet incoming messages by pollingimport rtmidi_python as rtmidi

midi_in = rtmidi.MidiIn()
midi_in.open_port(0)

while True:
    message, delta_time = midi_in.get_message()
    if message:
        print message, delta_timeNote that the signature ofget_message()differs from the originalRtMidiAPI: It returns a tuple instead of using a return parameter.Get incoming messages using a callbackimport rtmidi_python as rtmidi

def callback(message, time_stamp):
    print message, time_stamp

midi_in = rtmidi.MidiIn()
midi_in.callback = callback
midi_in.open_port(0)

# do something else here (but don't quit)Note that the signature of the callback differs from the originalRtMidiAPI:messageis now the first parameter, like in the tuple returned byget_message().Licensertmidi-pythonis licensed under the MIT License, see LICENSE.It usesRtMidi, licensed under a modified MIT License, see
RtMidi/RtMidi.h.
Package: rtmilk
Python wrapper for "Remember the Milk"APIAsynchronous and synchronous APIsSubscription supportUsage of clientfromrtmilk.clientimportClientfromrtmmilk.modelsimportRTMError# These are the equivalent objects, created differentlyclient=Client.Create(API_KEY,SHARED_SECRET,TOKEN)client2=awaitClient.CreateAsync(API_KEY,SHARED_SECRET,TOKEN)try:task=client.Add(name='name 1')asserttask.complete.valueisFalsetask.tags.Set({'tag1','tag2'})asserttask.tags.value=={'tag1','tag2'}task=awaitclient.AddAsync(name='name 2')awaittask.tags.SetAsync({'tag1','tag2'})tasks=client2.Get('name:"name 1"')asserttasks[0].tags.value=={'tag1','tag2'}exceptRTMErrorase:print(e)Usage of API functions directlyfromrtmilk.api_syncimportAPIfromrtmmilk.modelsimportRTMErrorapi=API(API_KEY,SHARED_SECRET,TOKEN)timeline=api.TimelinesCreate().timelinetry:api.TasksAdd(timeline,'task name')exceptRTMErrorase:print(e)fromrtmilk.api_asyncimportAPIAsyncfromrtmmilk.modelsimportRTMErrorapiAsync=APIAsync(API_KEY,SHARED_SECRET,TOKEN)timeline=awaitapiAsync.TimelinesCreate().timelinetry:awaitapiAsync.TasksAdd(timeline,'task name')exceptRTMErrorase:print(e)Authorizationfromrtmilk.authorizationimportAuthorizationSessionauthenticationSession=AuthorizationSession(API_KEY,SHARED_SECRET,'delete')input(f'Go to{authenticationSession.url}and authorize. Then Press ENTER')token=authenticationSession.Done()print(f'Authorization token is{token}')
Package: rtmixer
WarningThis is work in progress!Goal: Reliable low-latency audio playback and recording with Python, usingPortAudiovia thesounddevicemodule.The audio callback is implemented in C (and compiled with the help ofCFFI)
and doesn’t invoke the Python interpreter, therefore avoiding waiting for things
like garbage collection and the GIL.All PortAudio platforms and host APIs are supported.
Runs on any Python version where CFFI is available.Online documentationhttps://python-rtmixer.readthedocs.io/Source code repositoryhttps://github.com/spatialaudio/python-rtmixerSomewhat similar projectshttps://github.com/nwhitehead/swmixerhttps://github.com/nvahalik/PyAudioMixerhttp://www.pygame.org/docs/ref/mixer.html
Package: rtmp2img
Simple way to save screenshots from rtmp live videos.UsageBasic:$ rtmp2img –output /tmp/out.jpg –url rtmp://cp76072.live.edgefcs.net/live/MED-HQ-Flash@42814With optional params:$ rtmp2img –ffmpeg /usr/local/bin/ffmpeg –rtmpdump /usr/local/bin/rtmpdump –output /tmp/out.jpg –url rtmp://cp76072.live.edgefcs.net/live/MED-HQ-Flash@42814 –log /tmp/test.logRequirementsOS requirements:
* ffmpeg
* rtmpdumpPython requirements:
Everything listed in requirements.txt
Package: rtnf
RTNF (Royal Thai Navy String Format)RTNF is a Python package that provides functions to convert datetime objects to the datetime and time formats used by the Royal Thai Navy.InstallationYou can install RTNF using pip:pipinstallrtnfUsagefromdatetimeimportdatetimefromrtnfimportto_rnt_date,to_rnt_time# Convert datetime to Royal Thai Navy date formatcurrent_datetime=datetime.now()rnt_date=to_rnt_date(current_datetime)print(rnt_date)# Output: DDMMYYYY# Convert datetime to Royal Thai Navy time formatcurrent_datetime=datetime.now()rnt_time=to_rnt_time(current_datetime)print(rnt_time)# Output: HHMMContributingContributions to RTNF are welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request on the GitHub repository.LicenseRTNF is licensed under the MIT License.
Package: r-todolist
todolisttyperで遊ぶ目的で作ったcliのtodolistです。必要最小限のものしか実装していません。installpip install r-todolisthttps://pypi.org/project/r-todolist/仕様4つのサブコマンドがあり、以下のことができます。add: タスクの追加ls: タスクの一覧参照done: 完了したタスクを完了済みにするrm: タスクの削除add: タスクの追加$ todo add
Task: buy a shampoo # prompt
added.add: タスクの一覧$ todo ls
- [] 2. "buy a shampoo"

$ todo ls --done
- [x] 1. "go to the bank"done: 完了したタスクを完了済みにする$ todo done 2
2. "buy a shampoo" is done🎉rm: タスクの削除$ todo rm 1 2
removed: 1,2.
Package: rtoindia
Installation :python -m pip install rtoindia && rtoindiaFeatures :rtoindia, ** Get Vehical Information  **How to install :$ pkg install python -y
$ python -m pip install rtoindia
$ rtoindiaRun :$ rtoindiaSpecial Features ;)[✓] You can get Address of Owner [ Impossible Feature]
[✓] Easy InstallationDisclaimer :We are not responsible for your loss by this tool.
this tool is made for Education/Learning Purpose.
Dont harm anyone using this tool.Video Tutorial :About Us :Created by Parixit Sutariya
Github : github.com/Bhai4You
Blogspot : https://bhai4you.blogspot.com
Package: rtoml
rtomlA better TOML library for python implemented in rust.Why Use rtomlCorrectness: rtoml is based on the widely used and very stabletoml-rslibrary, it passes all thestandard TOML testsas well as having 100%
coverage on python code. Other TOML libraries for python I tried all failed to parse some valid TOML.Performance: seegithub.com/pwwang/toml-bench-
rtoml is much faster than pure Python TOML libraries.InstallRequirespython>=3.7, binaries are available from pypi for Linux, macOS and Windows,
seehere.pipinstallrtomlIf no binary is available on pypi for you system configuration; you'll need rust stable
installed before you can install rtoml.Usageloaddefload(toml:Union[str,Path,TextIO])->Dict[str,Any]:...Parse TOML via a string or file and return a python dictionary. Thetomlargument may be astr,Pathor file object fromopen().loadsdefloads(toml:str)->Dict[str,Any]:...Parse a TOML string and return a python dictionary. (provided to match the interface ofjsonand similar libraries)dumpsdefdumps(obj:Any,*,pretty:bool=False)->str:...Serialize a python object to TOML.Ifprettyis true, output has a more "pretty" format.dumpdefdump(obj:Any,file:Union[Path,TextIO],*,pretty:bool=False)->int:...Serialize a python object to TOML and write it to a file.filemay be aPathor file object fromopen().Ifprettyis true, output has a more "pretty" format.Examplefromdatetimeimportdatetime,timezone,timedeltaimportrtomlobj={'title':'TOML Example','owner':{'dob':datetime(1979,5,27,7,32,tzinfo=timezone(timedelta(hours=-8))),'name':'Tom Preston-Werner',},'database':{'connection_max':5000,'enabled':True,'ports':[8001,8001,8002],'server':'192.168.1.1',},}loaded_obj=rtoml.load("""\# This is a TOML document.title = "TOML Example"[owner]name = "Tom Preston-Werner"dob = 1979-05-27T07:32:00-08:00 # First class dates[database]server = "192.168.1.1"ports = [8001, 8001, 8002]connection_max = 5000enabled = true""")assertloaded_obj==objassertrtoml.dumps(obj)=="""\title = "TOML Example"[owner]dob = 1979-05-27T07:32:00-08:00name = "Tom Preston-Werner"[database]connection_max = 5000enabled = trueserver = "192.168.1.1"ports = [8001, 8001, 8002]"""
Package: rtools
The packagertoolsprovides utilities that are of general usage
for developing software that use the RPy2 package. This is not a replacement of
RPy2 but rather an addon to simplify the life of developers
who are using R packages from Python.# check version of the R package 'base'
import rtools
rbase = rtools.RPackage('base')
rbase.versionSeehttp://packages.python.org/rtools/for more examples.
Package: rtop
RTopA TUI monitor that integrates withRocketLaunch.liveto bring a list of upcoming launches.(Support Rocket Launch Livehere)Quick StartInstall$pip install rtopStart the monitor$rtopDevelopment and ContributionDocumentation$make -C docs clean htmlInstall Locally$pip install -e .[dev](Note: the-eflag creates a symbolic-link to your local development version. Set it once, and forget it)Run Unit Tests$python3 -m unittest tests/spec_*.py
Package: rtorrent-automover
Moves complete torrents automagically for rtorrent. Can also cleanup
when something is both moved and seeded enough.InstructionsHow to get this ship sailing. First, rtorrent needs to download stuff to
specific folders, as that’s how we figure out where to move from.Second, XMLRPC needs to be configured, see the ruTorrent project for
instructions:http://code.google.com/p/rutorrent/wiki/InstallationIf all you need is remove torrents after a given timeperiod or ratio
limit, do not add anysection_sections to the conf file.Installationvirtualenv automover
cd automover
bin/pip install rtorrent-automoverConfigurationThere is an example config file, modify it for your needs
(https://github.com/JohnDoee/rtorrent-automover/blob/master/automover.conf.example).automove_syntaxis an optional option that can help sort e.g. tv
show. The example used,%(show)s/Season.%(season)0.2i/will try to
sort tv shows by show name and season.Executebin/automover automover.confand it will try to move stuff.
Package: rtorrent-migrate
rtorrent-migratertorrent-migrate is a command-line utility used to bulk-convert your data and/or session directory of torrents in rTorrentIt also includes a class that can be used in Python scriptsUsage documentation and examples are availablehereRequirementsPython 3.6+benparseInstallationInstall from PyPI:pip3installrtorrent-migrateInstall from source:gitclonehttps://gitlab.com/adralioh/rtorrent-migrate.git
pip3install./rtorrent-migrateIf you don't want to install, you can also run the module directly:# Run from within the git repopython3-mrtorrent_migrate--helpTestsTests are run using the built-inunittestmodule, andCoverage.pyis used to measure code coverageRun tests without measuring coverage:python3-munittestdiscover-stests-t.Run tests and measure coverage:coveragerun-munittestdiscover-stests-t.View the results:coveragereportGenerate a detailed report, outputted to./htmlcov:coveragehtmlBuilding documentationSphinx is used to build documentationBuild requirements:Sphinxsphinx-argparseHow to build:cddocs
makehtml
Package: rtorrent-notify
Descriptionrtorrent-notify aims to be a very simple tool to notify users of rtorrent-related events.
It can actually be used for other kind of events, being mostly generic.RunningIf installed, you can runrtorrent-notify.
Otherwise, you can start it withpython-mrtorrentnotify.UpgradingIf you upgrade from rtorrent2rss, the event database will get erased because of format incompatibilities.RequirementsPyRSS2Genargparse (or Python 2.7)Anirkerdserver running on localhost (optional, only if you want IRC notifications)ConfigurationAdd this to your .rtorrent.rc:system.method.set_key = event.download.finished,rtnfy_finished,"execute=rtorrent-notify,FINISH,$d.get_base_path="
system.method.set_key = event.download.inserted_new,rtnfy_inserted,"execute=~/rtorrent-notify/rtorrent-notify,INSERT,$d.get_name="For older versions of rtorrent (pre 0.8.4):on_finished = rtnfy_finished,"execute=rtorrent-notify,FINISH,$d.get_base_path="
on_start = rtnfy_started,"execute=rtorrent-notify,START,$d.get_name="Unless you specify their location, the files (rtorrent-notify.dbandrtorrent-notify.xml) will be written in the home directory. Startrtorrent-notify-hfor more details.FINISHandSTARTare just strings, you can change them.Some tips:There are other events you might be interested in. As there is no documentation, you can try to grep forevent.in rtorrent’s source code.get_base_pathdoesn’t work with the “inserted” event, you can useget_nameinstead.You will find a list of properties to use inui/download.ccComplete help for the rtorrent-notify command is available by runningrtorrent-notify-h.ExamplesAdvanced usage with some options would be:"execute=rtorrent-notify,-r,~/public_html/feed.xml,-n,irc://chat.freenode.net/mynick,FINISH,$d.get_base_path="The target RSS feed is changed from the default.This also sends a notification to the freenode nickmynick.-nis used instead of -iirc://chat.freenode.net/mynick,isnickas the,character is already used by rtorrent’s config.Notifications to channels could be sent by-iirc://chat.freenode.net/mychannel.
Package: rtorrent-python
ABOUT THIS PROJECTThe xmlrpc interface to rTorrent is extremely unintuitive and has very little documentation, this project aims to make interfacing with rTorrent much easier.NOTE: This project is considered beta, so expect the API to change. All API changes will be noted in the CHANGELOG.REQUIREMENTS[Python](http://www.python.org/) 2.6 or higher, 3.0 or higher (might work on older versions, but these are the only ones I’m supporting).[rTorrent](http://libtorrent.rakshasa.no/) 0.8.1 or later, with xmlrpc-c support (see [this guide](http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide)).[xmlrpc-c](http://xmlrpc-c.sourceforge.net/) 1.00 or later. 1.07 or later for 64bit integer support (highly recommended, download either the stable or advanced branches).[Apache](http://www.apache.org/) or [lighttpd](http://www.lighttpd.net/)INSTALLATIONIf you’re downloading the source:`$ python setup.py install`Or you can install directly from PyPI:`$ pip installrtorrent-python`TODOAdd support for viewsLogging supportDocumentation and examples
Package: rtorrent-python-dl
ABOUT THIS PROJECTThe xmlrpc interface to rTorrent is extremely unintuitive and has very little documentation, this project aims to make interfacing with rTorrent much easier.NOTE: This project is considered beta, so expect the API to change. API changes will be noted in the changelog.REQUIREMENTS[Python](http://www.python.org/) 2.6 or higher, 3.0 or higher (might work on older versions, but these are the only ones I’m supporting).[rTorrent](http://libtorrent.rakshasa.no/) 0.8.1 or later, with xmlrpc-c support (see [this guide](http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide)).[xmlrpc-c](http://xmlrpc-c.sourceforge.net/) 1.00 or later. 1.07 or later for 64bit integer support (highly recommended, download either the stable or advanced branches).[Apache](http://www.apache.org/) or [lighttpd](http://www.lighttpd.net/)INSTALLATIONIf you’re downloading the source:`$ python setup.py install`Or you can install directly from PyPI:`$ pip installrtorrent-python`ROADMAPv0.3.0
- Add option for fast RTorrent init (skip paranoid check)unknown
- Logging support
- Documentation and examples
- Add support for viewsCREDITS[fuzeman](https://github.com/fuzeman)
Package: rtorrent-rpc
Typed rtorrent rpc clientrtorrent-rpcis a python wrapper on top of rtorrent XML RPC protocol,
hosted on GitHub atgithub.com/trim21/rtorrent-rpcDocument is hosted athttps://rtorrent-rpc.readthedocs.io/by readthedocs.Introductionpip install rtorrent-rpc -UContributingAll kinds of PRs (docs, feature, bug fixes and eta...) are most welcome.Quick Startfromrtorrent_rpcimportRTorrentclient=RTorrent(address='scgi://127.0.0.1:5000')unix_client=RTorrent(address='scgi:///home/ubuntu/.local/share/rtorrent.sock')Known problem:rTorrent's xmlrpc doesn't support emoji. If torrent name of file name contains any emoji,
you can't retrieve correct torrent name of file name through xmlrpc.Licensertorrent-rpcis licensed under the MIT license.
Package: rtox
rtoxThis project represents an experimental development workflow with the following
considerations in mind:toxis an excellent tool for
managing test activities in avirtualenv.Servers in the cloud are faster and far more powerful than my local
development environment (usually a laptop).Latency introduced to the command line by a remote connection, especially on
bad WiFi, is painful.Running huge test suites on a cloud server doesn’t drain my laptop’s battery
(or spin up my desktop’s fans) like running them locally would.Your local development platform might not actually have the binary
dependencies available that your project requires from your target platform
(developing a Linux application on OS X, for example).Running tests with tox is easy. Running tests withrtoxon a remote
host against the local codebase should be just as easy.This project currently makes a few assumptions that you’d have to meet for it
to be useful to you:You’re a Python developer (that’s why you’re interested in tox, right?).You’re usinggit.You’re working on a publicly available repository (I’d like to break this
assumption).UsageConfigurertoxwith an.rtox.cfgfile like the following:[ssh]
user = root
hostname = localhost
port = 22rtox will look for config file in current folder or its parents and use~/.rtox.cfgas fallback. This allows user to have different configs
for different projects or groups of projects.rtoxsimply needs to be pointed at an SSH host withgit,toxandvirtualenvinstalled.Once it’s configured, just usertoxin place oftox. For example:$ rtox -e py27 -e pep8The state of your local codebase will be mirrored to the remote host, and tox
will be executed there.untoxUntox is a small script that obliterates any tox.ini commands that are
installing python packages inside the virtualenv, removing sepctions
likedeps,pip install ..., truncatingrequirements.txtfiles
and enablingsitepackages = Trueon all tox environments.Its purpose is to enable testing of python code with only system packages,
something that may be desired by those that are planning to ship these
modules as RPMs, DEBs.untoxscript is installed as a command alongsidertoxand once
called it expectes to find a tox.ini in current folder. Be warned that changes
are made in-place without any backup.You also have the option to callrtox--untox...which will run untox
on the remote system after doing the rsync and before running tox. This
option is handy as it keeps the local repository untoched.
Package: rtp
rtpThis python library provides a means to decode, encode, and interact with RTP packets. It is intended to be used together with other libraries that decode, encode, and interact with the payload bitstreams. This library does not provide any network functionality.InstallationpipinstallrtpExample usagefromrtpimportRTP,Extension,PayloadTypefromcopyimportdeepcopybaseRTP=RTP(marker=True,payloadType=PayloadType.L16_2chan,extension=Extension(startBits=getExtStartBits(),headerExtension=getExtBody()),csrcList=getCSRCList())thisRTPBitstream=thisRTP.toBytearray()whileruning:nextRTP=deepcopy(baseRTP)nextRTP.sequenceNumber+=1nextRTP.timestamp=getNextTimestamp()nextRTP.payload=getNextPayload()transmit(nextRTP)fromrtpimportRTPdecodedPayload=MyPayloadDecoder(RTP().fromBytearray(getNextPacket()).payload)render(decodedPayload)ContributingWe desire that contributors of pull requests have signed, and submitted via email, aContributor Licence Agreement (CLA), which is based on the Apache CLA.The purpose of this agreement is to clearly define the terms under which intellectual property has been contributed to the BBC and thereby allow us to defend the project should there be a legal dispute regarding the software at some future time.If you haven't signed and emailed the agreement yet then the project owners will contact you using the contact info with the pull request.LicenseSeeLICENSE.AuthorsJames SandfordFor further information, contactcloudfit-opensource@rd.bbc.co.uk
Package: rtp-feedback-tool
RTP FEEDBACK TOOL(机器人任务下发与状态同步平台)的数据反馈工具功能：处在KubeEdge边缘（Edge）端的机器人给云端（Cloud）反馈数据。只能在robot-tasking-platform的operator下发的任务容器中使用才有效。text_feedback和image_feedback负责将数据发送到边缘端本地的mqtt broker，之后由KubeEdge转发到远端的数据收集器。机器人任务的编写者不需要知道数据收集器具体的url，只需要调用text_feedback和image_feedback即可。数据转发的路径（route）和规则（rule）是operator在下发任务时就配置好的。deftext_feedback(content:str)->None:"""机器人给云端反馈文本数据主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)Raises a FeedbackError if the feedback fails.Args:content (str): _description_ 要反馈的文本数据内容"""defimage_feedback(img_rgb8:np.ndarray)->None:"""机器人给云端反馈图片数据主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)Raises a FeedbackError if the feedback fails.Args:img_rgb8: 图像,必须是numpy数组,且数据类型为uint8,且shape为(height, width, 3)"""注意：当给云端反馈数据失败时，text_feedback和image_feedback会抛出FeedbackError，需要应用开发者自行处理异常。
Package: rt-pie
RT PIEReal Time PItch Estimatorpypi linkTo demonstrate the predictions of the various models used throughout the thesis, a simple demonstration application was developed.
The demonstrator app is a python command line application. It comes pre-packaged with various deep learning models used in this thesis. The CREPE models as well as the DEEPF0_256 models are not available through this package, due to the 100MB package limitation on pypi.The demonstrator app takes a WAVE audio file as input and saves a spectrogram including the pitch predictions to disk under the namespectrogram.png.Installationpip install rt_pieUsagert_pie --helpAuthorsKaspar WolfisbergLuca Di Lanzo