Saravanan666/pypi-org huggingface dataset:
Package: ruthie
Ruthie![Ruthie Logo](.static/logo.png)Ruthie is the Unittests runner, and it's an acronym from "Run Unit Tests Harmoniously Incredibly Easy".Installationpipinstall-UruthieCheck if it works:ruthie--version
>0.1.2UsageTyperuthie --helpto display available commands and optionsExamplesList all test classes in directory "unittests"ruthiediscoverclassesunittestsOutput:unittests.admin_panel.users.Add
unittests.admin_panel.users.Edit
unittests.admin_panel.users.Delete
unittests.admin_panel.devices.Add
unittests.admin_panel.devices.Edit
unittests.admin_panel.devices.Delete
unittests.end_user.projects.Add
unittests.end_user.projects.Edit
unittests.end_user.projects.DeleteList all test classes in directory "unittests" and group themruthiediscoverclassesunittests--groupOutput:unittests.admin_panel.usersAddEditDeleteunittests.admin_panel.devicesAddEditDeleteunittests.end_user.projectsAddEditDeleteDiscover all classes in directory "unittests" and run them in parallel using 10 threadsruthieparallel--threads=10unittestsLicenseThis project is licensed under the ISC License - see theLICENSEfile for details.
Package: rutifu
RUTIFU - Random Utilities That I Find UsefulThis is a set of Python routines that perform various functions that I find useful for multiple projects.Logging and debuggingLog a message to syslog or stdoutlog(*args)Log the traceback for an exceptionlogException(name, ex)Log a debug message conditioned on a specified global variabledebug(*args)Threads and processesThread object that logs a stack trace if there is an uncaught exceptionclass LogThread(threading.Thread)Convenience function to create and start a threadstartThread(name, target, **kwargs)Block a thread indefinitelyblock()Wait until the network is availablewaitForDns(host)Manipulation of strings and listsTransform a string of words into a camel case namecamelize(words)Create a string of words from a camel case namelabelize(name)Get the value of a json item from a filegetValue(fileName, item)Turn an item into a list if it is not alreadylistize(x)Truncate or pad a list into a fixed number of itemsfixedList(items, nItems, pad=None)Format an E.164 phone number for displaydisplayNumber(number)Format a phone number as E.164e164number(number, defaultAreaCode="", defaultCountryCode="1")
Package: rutils
rutilsUtils for computer visionInstallpip install rutilsModulesCommonstr2pathfromargparseimportArgumentParser
fromrutils.commonimportstr2pathopt_parser=ArgumentParser()opt_parser.add_argument('--txt_path',type=str2path)opt=opt_parser.parse_args()print(type(opt.txt_path))Run commandfromrutils.commonimportrun_commandcommand='echo "Run command example"'run_command(command)VideoRead videovideo_path=Path('./test.mp4')video_reader=rutils.video.VideoReader(in_video_path=video_path)print(video_reader.num_frames)for_inrange(num_frames):frame=video_reader.get_next_frame()Write videoSupport two method:Use OpenCVvideo_writer=rutils.video.VideoWriter(out_path,video_w,video_h,fps=25,encoding='H264',video_bitrate='11M',mode='opencv')video_writer.write_frame(frame)video_writer.release()Use FFMpegvideo_writer=rutils.video.VideoWriter(out_path,video_w,video_h,fps=25,encoding='H264',video_bitrate='11M',mode='ffmpeg')video_writer.write_frame(frame)video_writer.release()
Package: rutimeparser
Данный модуль содержит базовый класс и упрощающие работу с ним функции для извлечения даты и времени из текста на русском языке.Установкаsudo pip3 install rutimeparserИспользованиеПримеры ниже приведены для 2 апреля 2017 года.Извлечение даты и времени:>>>fromrutimeparserimportparse>>>parse('завтра')datetime.date(2017,4,3)>>>parse('завтра утром')datetime.datetime(2017,4,3,9,0)>>>parse('Напомни мне завтра утром составить список дел.')datetime.datetime(2017,4,3,9,0)Извлечение текста, не относящегося к дате и времени:>>>fromrutimeparserimportget_clear_text,get_last_clear_text>>>get_clear_text('Напомни мне завтра утром составить список дел.')'напомни мне составить список дел'>>>get_last_clear_text('Напомни мне завтра утром составить список дел.')'составить список дел'Неявные ситуацииутром- в 09:00днём- в 15:00вечером- в 21:00ночью- в 03:00на следующей неделе- на следующей неделе в понедельник.через неделю- ровно через 7 суток.через неделю утром- через 7 дней утром.в следующем месяце- 1 число следующего месяца.Больше примеров вtests.pyAPI referenceПараметрыrutimeparser.parse:words(str, list, tuple) – Строка с текстом или список слов. Параметр является необязательным, т.к. может быть передан непосредственно в методparse.tz(str) – Название часового пояса. Если не указано, возвращается наивное время.now(datetime.datetime) – От какого момента считать текущее времяallowed_results(list, tuple) – Список объектов, которые могут быть возвращены методомparse. Возможные значения – datetime.datetime, datetime.date, datetime.time, None.default_time(datetime.time) – Время по умолчанию. Используется только в том случае, если из текста удалось получить только date, но необходимо вернуть datetime. По умолчанию 09:00.default_datetime(datetime.datetime) – Дата и время по умолчанию. Возвращается методомparse, если в тексте не удалось найти значение, подходящее подallowed_results. По умолчанию равен значению параметраnow.TODOПерейти наpymorphyДобавить поддержку AM/PM (например, “в два часа дня”)
Package: rutracker-api
rutracker-apiFork ofhttps://github.com/raitonoberu/rutracker-apiRequirements- python3-lxml
- beautifulsoup4
- requestsUsage>>>fromrutracker_apiimportRutrackerApi>>>api=RutrackerApi()>>>api.login("username","password")>>>search=api.search("ubuntu mate")>>>search{'count':16,'page':1,'total_pages':1,'result':[<Torrent5956108>,<Torrent5942849>,<Torrent5710800>,<Torrent5560789>,<Torrent5533679>,<Torrent5345515>,<Torrent5336791>,<Torrent5257800>,<Torrent5099277>,<Torrent4358219>,<Torrent4857137>,<Torrent4791999>,<Torrent4692014>,<Torrent4565546>,<Torrent4348745>,<Torrent4144976>]}>>>result=search['result'][0]>>>result.title'[amd64] Ubuntu*Pack 20.04 MATE (сентябрь 2020)'>>>result.get_magnet()'magnet:?xt=urn%3Abtih%3AB2EDD8F9A0BEB1368A5EDEBBAB4907B53A69DCCA&tr=http%3A%2F%2Fbt2.t-ru.org%2Fann%3Fmagnet&dn=%5Bamd64%5D+Ubuntu%2APack+20.04+MATE+%28%D1%81%D0%B5%D0%BD%D1%82%D1%8F%D0%B1%D1%80%D1%8C+2020%29&as=http%3A%2F%2Frutracker.org%2Fforum%2Fviewtopic.php%3Ft%3D5956108'DocumentationComing soon!
Package: rutter
rutter:  URL map for Py3kThis project provides a version of theURLMapclass frompaste.urlmap,
ported to support Python3.  It also features 100% unit test coverage.Please seehttps://rutter.rtfd.io/for complete documentationrutterChangelog1.0 (2023-01-23)No changes from 1.0b1.1.0b1 (2023-01-18)Add support for Python 3.11.Drop support for Python 2.7, 3.5, and 3.6.0.4 (2022-03-12)Add support for Python 3.9, and 3.10.Remove DeprecationWarning from usingcollections.abc.Move tests to GitHub actions.Move test suite to py.test.0.3 (2020-08-10)Add support for Python 3.5, 3.6, 3.7, and 3.8.Drop support for Python 2.6, 3.2, 3,3, and 3.4.Add support for PyPy3.0.2 (2013-10-21)Fix generation oflong-descriptionPyPI metadata.Add Sphinx documentation.0.1 (2013-10-16)Initial version.
Package: rutube-downloader
Rutube DownloaderGet itpipinstallrutube-downloaderTry itfromrutubeimportRutubert=Rutube('https://rutube.ru/video/5c5f0ae2d9744d11a05b76bd327cbb51/')print(rt.playlist)# [Nature 4k (272x480), Nature 4k (408x720), Nature 4k (608x1080)]rt.playlist[-1].download()
Package: rutyva
Rutyva - Runtime Type Validation for PythonRutyva is a python library that enforces static typing at runtime using the type annotations of dataclasses.It also allows dict parsing into classes, even with nested class objects (compositions).InstallationPython version 3.9 or higher is required.$pipinstallrutyvaHow toAt the moment, the classes need to be inherited from the BaseModel class, and need to be dataclasses, to have its type annotations enforced.
Package: ruuid
ruuidA fast UUID generator for Python built using Rust. Its a simple wrapper on top
of Rust'sUUIDcrate.How to use?Installation:pip3installruuid==0.3.0--force--no-cacheUsage:importruuid

ruuid.uuid4()'7a1ef475-904c-4d53-8985-528d09d57414'PerformanceTests ran on an M1 macbook air with 8 GB of RAM and Python 3.9fromruuidimportuuid4,simple

%timeitsimple()327ns±0.442nsperloop(mean±std.dev.of7runs,1000000loopseach)%timeituuid4()348ns±0.707nsperloop(mean±std.dev.of7runs,1000000loopseach)fromuuidimportuuid4

%timeituuid4()1.1µs±2.91nsperloop(mean±std.dev.of7runs,1000000loopseach)Available functionsuuid4()- random UUID4 stringsimple()-  formatted simple string of UUID4hyphenated()- hyphenated UUID4 stringnil()- a uuid with all zerosurn()- uuid4 as a URN string
Package: ruuvi-decoders
Ruuvi DecodersDecoders for raw ruuvi tag data payloadsFree software: MIT licenseDocumentation:https://ruuvi-decoders.readthedocs.io.FeaturesDecode raw data from RuuviTag Bluetooh advertisements, or from Ruuvi gateway requestsSupport for Ruuvitag Data Format 2, 3 and 5Support for ULRDecoder (Eddystone)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.0 (2021-07-29)Internal refactoring0.1.0 (2021-04-25)First release on PyPI.
Package: ruuvi-gateway-client
Ruuvi Gateway ClientClient for communicating with Ruuvi Gateway.InstallInstall latest released version$python-mpipinstallruuvi-gateway-clientInstall letest development version from local sourcespython-mvenv.venvsource.venv/bin/activate
python-mpipinstall-e.Exampleimportasynciofromruuvi_gateway_clientimportgatewayfromruuvi_gateway_client.typesimportParsedDatasSTATION_IP="10.0.0.21"USERNAME="username"PASSWORD="password"defprint_data(data:ParsedDatas):formac,sensor_dataindata.items():print(f'{mac}:{sensor_data}')asyncdefmain():fetch_result=awaitgateway.fetch_data(STATION_IP,USERNAME,PASSWORD)iffetch_result.is_ok():print_data(fetch_result.value)else:print(f'Fetch failed:{fetch_result.value}')loop=asyncio.get_event_loop()loop.run_until_complete(main())ChangelogChangelogContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseLicensed under theMITLicense.
Package: ruv-dl
Sync available ruv programs to your computerBuild:Installationpip install ruv-dlUsageSeeruv-dl --helpDevelopmentClone this repoCreate and activate a virtual environment (install tox or rely on system
wide installation)cd $PATH_TO_RUV_DLpip install -e ./Run the tests:toxCrontabRuv-dl works best when it's being run periodically in cron. Start by running
it manually and start downloading some programs, e.g.ruv-dl download Hvolpasveitin. Now that program is considered to be synced.
After that you can runruv-dl download -uand it will attempt to download
new episodes in previously synced programs.ConfigurationAll configuration is done via command-line arguments. The one you're most
likely to want to change is the--destinationflag.ruv-dl --destination /media/TV download -uMigrationsNo data migrations will be run unless you explicitly call them, and the program
might exit abruptly if it senses a missing migration. Make sure to call themigratecommand with the same parameters as you would call thedownloadcommand.ruv-dl --destination /media/TV migrate 1Note that some migrations expect you to have already attempted a download,
so do not run migrations unless the program tells you to.Uploading a new versionSet a new version in setup.pyRun. ./prepare_upload.sh(this is assuming you have lastpass.
Optional if you want to type your pypi credentials manually).Runmake pypi
Package: ru-word2number
Copyright (c) 2016 Akshay Nagpal (https://github.com/akshaynagpal)Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Download-URL:https://github.com/Oknolaz/Russian_w2n/tarball/1.1Description: Convert russian number words to numbers.
Keywords: numbers,convert,words
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Package: ruword-frequency
DescriptionPython libraryruword_frequencyreturns frequency (ipm - items per million) of russian words, case insensitive.
It based on huge collection of russian documents and prepared word frequency sources. Full list:Wikipedia dump, russian segmentFlibusta dump, more then 200 Gb of textsPyhlyi's libraryНовый частотный словарь русской лексикиСловарь русской литературыfromhttp://speakrus.ru/dict/index.htmЧастотный словарь Марка фон ХагенаseedescriptionWord's ipm from all enumerated sources was extracted and mean values used.
Full index contains more them 7 billions word forms including mistakes from raw data sources (unfortunately).Requirements:Python 3Word index occupies near 50 Mb on hard disk and will be downloaded first time you invokefrequency.load()methodInstallation# TODOUsagefrom ruword_frequency import Frequency
freq = Frequency()
freq.load()

freq.ipm('привет')
>>> 53.51823806762695

freq.ipm('неттакогослова')
>>> 0.0

# get max ipm value. For weights normalization, for example
freq.max_ipm()
>>> 42329.2890625

# get list of most used words  with ipm more then 10000
for w in freq.iterate_words(10000):
    print(w)For other useful methods seemarisa-triedocumentations.
Tree index available asfreq.treeRebuild tree by yourselffrom ruword_frequency.source_reader import SourceReader
reader = SourceReader()

# increase socket timeout, sometimes helpful for huge file downloading:
import socket
socket.setdefaulttimeout(60)

reader.download_all_sources()
tree = reader.build_tree_from_dictionaries()
reader.save_tree(tree)

# use it 
freq = Frequency()
freq.ipm('привет')
Package: rux
Micro & Fast static blog generator (markdown => html). 4 - BetaFeaturesStatic: Markdown => HTMLNot tags, No categories, No feed generation, No …Minimal & Simple configurationAbility to run in the background as a daemonAbility to save posts in PDF for offline readingAbility to build automatically once source updatedInstallation$mkdirMyBlog$cdMyBlog$virtualenvvenvNewpythonexecutableinvenv/bin/pythonInstallingsetuptools............done.Installingpip...............done.$.venv/bin/activate$pipinstallruxLinksGitHub <https://github.com/hit9/rux>
Package: rv
rvUtils to work with randomnessTo install:pip install rvExamplesrandom_wordMake a random word by concatenating randomly drawn elements from alphabet together>>> t = random_word(4, 'abcde');  # e.g. 'acae'
>>> t = random_word(5, ['a', 'b', 'c']);  # e.g. 'cabba'
>>> t = random_word(4, [[1, 2, 3], [40, 50], [600], [7000]]);  # e.g. [40, 50, 7000, 7000, 1, 2, 3]
>>> t = random_word(4, [1, 2, 3, 4]);  # e.g. 13 (because adding numbers...)
>>> # ... sometimes it's what you want:
>>> t = random_word(4, [2 ** x for x in range(8)]);  # e.g. 105 (binary combination)
>>> t = random_word(4, [1, 2, 3, 4], concat_func=lambda x, y: str(x) + str(y));  # e.g. '4213'
>>> t = random_word(4, [1, 2, 3, 4], concat_func=lambda x, y: int(str(x) + str(y)));  # e.g. 3432random_romatted_str_genRandom formatted string generatorThe following will be made not random (by restricting the constraints to "no choice". This is so that we get consistent outputs to assert for the doc test.>>> list(random_formatted_str_gen('root/{}/{}_{}.test', (2, 5), 'abc', n=5))
[('root/acba/bb_abc.test',),
    ('root/abcb/cbbc_ca.test',),
    ('root/ac/ac_cc.test',),
    ('root/aacc/ccbb_ab.test',),
    ('root/aab/abb_cbab.test',)]Example with automatic specification:>>> list(random_formatted_str_gen('root/{}/{}_{}.test', (3, 4), 'a', n=2))
[('root/aaa/aaa_aaa.test',), ('root/aaa/aaa_aaa.test',)]Example with manual specification>>> list(random_formatted_str_gen('indexed field: {0}: named field: {name}', (2, 3), 'z', n=1))
[('indexed field: zz: named field: zz',)]UtilsGet the "parameter" indices/names of the format_string>>> from rv import format_params_in_str_format
>>> format_string = '{0} (no 1) {2}, and {0} is a duplicate, {} is unnamed and {name} is string-named'
>>> format_params_in_str_format(format_string)
[0, 2, 0, None, 'name']
Package: rv3028
RV3028 Real Time Clock BreakoutInstallingStable library from PyPi:Just runsudo pip install rv3028Latest/development library from GitHub:git clonehttps://github.com/pimoroni/rv3028-pythoncdrv3028-pythonsudo ./install.sh0.0.5Bugfix: corrected BCD month to include Oct, Nov, Dec0.0.4Port to i2cdevice>=0.0.6 set/get APICleaned up i2cdevice bindingsCorrected 12-hour and am/pm bits in bindings0.0.3Bugfix to support days of month in the 20s0.0.2Major bugfix to support hours past 8PMOther minor fixes and improvements0.0.1Initial Release
Package: rVADfast
rVADfastThe Python library for an unsupervised, fast method for robust voice activity detection (rVAD), as presented inrVAD: An Unsupervised Segment-Based Robust Voice Activity Detection Method, Computer Speech & Language, 2020or itsarXiv version.
More info onthe rVAD GitHub page.The rVAD paper published in Computer Speech & Language won International Speech Communication Association (ISCA) 2022 Best Research Paper Award.The rVAD method consists of two passes of denoising followed by a VAD stage. It has been applied as a preprocessor for
a wide range of applications, such as speech recognition, speaker identification, language identification, age and
gender identification, self-supervised learning, human-robot interaction, audio archive segmentation,
and so on as inGoogle Scholar.The method is unsupervised to make it applicable to a broad range of acoustic environments,
and it is optimized considering both noisy and clean conditions.The rVAD (out of the box) ranks the 4th place (out of 27 supervised/unsupervised systems)
in a Fearless Steps Speech Activity Detection Challenge.The rVAD paper is amongthe most cited articles from Computer Speech and Language published since 2018(the 6th place), in 2023.UsageTherVADfastlibrary is available as a python package installable via:pipinstallrVADfastAfter installation, you can import the rVADfast class
from which you can instantiate a VAD instance which you can use to generate vad labels:importaudiofilefromrVADfastimportrVADfastvad=rVADfast()path_to_audiofile="some_audio_file.wav"waveform,sampling_rate=audiofile.read(path_to_audiofile)vad_labels,vad_timestamps=vad(waveform,sampling_rate)The package also contains functionality to process folders of audio files, to generate VAD labels
or to trim non-speeh segments from audio files.
This is done by importing therVADfast.processmodule which has two methods for processing audio files,
namelyprocess.rVADfast_single_processandprocess.rVADfast_multi_process,
with the latter utilizing multiple CPUs for processing.
Additionally, a processing script can be called from commandline-tools by executing:rVADfast_process--root<audio_file_root>--save_folder<path_to_save_files>--ext<audio_file_extension>--n_workers<number_of_multiprocessing_workers>For an explanation of the additional available arguments for the commandline tool you can use:rVADfast_process--helpIn/notebooksa concrete example on how to use the rVADfast package is found.Note that the package is still in development.
Therefore, we welcome any feedback or suggestions for changes and/or additional features.ReferencesZ.-H. Tan, A.k. Sarkara and N. Dehak, "rVAD: an unsupervised segment-based robust voice activity detection method," Computer Speech and Language, vol. 59, pp. 1-21, 2020.Z.-H. Tan and B. Lindberg, "Low-complexity variable frame rate analysis for speech recognition and voice activity detection,” IEEE Journal of Selected Topics in Signal Processing, vol. 4, no. 5, pp. 798-807, 2010.
Package: rvc
Retrieval-based-Voice-ConversionAn easy-to-use Voice Conversion framework based on VITS.[!NOTE]
Currently under development... Provided as a library and API in rvcInstallation and usageStandard SetupFirst, create a directory in your project. Theassetsfolder will contain the models needed for inference and training, and theresultfolder will contain the results of the training.rvcinitThis will create anassetsfolder and.envin your working directory.[!WARNING]
The directory should be empty or without an assets folder.Custom SetupIf you have already downloaded models or want to change these configurations, edit the.envfile.
If you do not already have a.envfile,rvcenvcreatecan create one.Also, when downloading a model, you can use thervcdlmodelorrvc dlmodel {download_dir}Finally, specify the location of the model in the env file, and you are done!Library UsageInference AudiofrompathlibimportPathfromdotenvimportload_dotenvfromscipy.ioimportwavfilefromrvc.modules.vc.modulesimportVCdefmain():vc=VC()vc.get_vc("{model.pth}")tgt_sr,audio_opt,times,_=vc.vc_single(1,Path("{InputAudio}"))wavfile.write("{OutputAudio}",tgt_sr,audio_opt)if__name__=="__main__":load_dotenv("{envPath}")main()CLI UsageInference Audiorvcinfer-m{model.pth}-i{input.wav}-o{output.wav}optionflagtypedefault valuedescriptionmodelPath-mPath*requiredModel path or filename (reads in the directory set in env)inputPath-iPath*requiredInput audio path or folderoutputPath-oPath*requiredOutput audio path or foldersid-sint0Speaker/Singer IDf0_up_key-fuint0Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)f0_method-fmstrrmvpepitch extraction algorithm (pm, harvest, crepe, rmvpef0_file-ffPath | NoneNoneF0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulationindex_file-ifPath | NoneNonePath to the feature index fileindex_rate-iffloat0.75Search feature ratio (controls accent strength, too high has artifacting)filter_radius-frint3If >=3: apply median filtering to the harvested pitch results. The value represents the filter radius and can reduce breathinessresample_sr-rsrint0Resample the output audio in post-processing to the final sample rate. Set to 0 for no resamplingrms_mix_rate-rmrfloat0.25Adjust the volume envelope scaling. Closer to 0, the more it mimicks the volume of the original vocals. Can help mask noise and make volume sound more natural when set relatively low. Closer to 1 will be more of a consistently loud volumeprotect-pfloat0.33Protect voiceless consonants and breath sounds to prevent artifacts such as tearing in electronic music. Set to 0.5 to disable. Decrease the value to increase protection, but it may reduce indexing accuracyAPI UsageFirst, start up the server.rvc-apiorpoetryrunpoervc-apiInference Audiocurl-X'POST'\'http://127.0.0.1:8000/inference'\-H'accept: application/json'\-H'Content-Type: multipart/form-data'\-F'modelpath={model.pth}'\-F'input={input audio path}'\-o{outputaudiopath}