Saravanan666/pypi-org huggingface dataset:
Package: rb-tocase
RB toCasemade by:RickBarretoWhat is it?RB toCaseis a Case converter made in python, for peoples who wants simplify this feature. It can convert to and from Camel, Pascal, Snake, Kebab and Strings Sentences.And, You don't need say what is the input type, the code parse it. Just say whats is the output type.Older name was toCase, but when I was publishing on Pipy tocase package already exists. So I changed the name!Installpip install git+https://github.com/RickBarretto/toCase.gitWhy I must to use it?toCase was made to make easy your life with case convertingI was made in python, so, if you want, you can copy thetoCase.pyand use in your project.It's free to use, look theMIT LICENSE.Glossary:What is it?InstallWhy I must to use it?Glossary:InstallingExamples:Importing:Convert to Camel Case:Convert to Snake Case:Convert to Kebab Case:Convert to Pascal Case:Convert to Sentence:Read The Docs!Installing$poetryaddrb_tocase

or

$pipinstallrb_tocaseExamples:Importing:>>>fromrb_tocaseimportCase>>># or>>>fromrb_tocaseimport*>>># see the examples belowConvert to Camel Case:>>>Case.to_camel("Changing to CaMel CASE")# From String Sentence'changingToCamelCase'>>>Case.to_camel("Changing-to-camel-case")# From Kebab Case'changingToCamelCase'>>>Case.to_camel("Changing_to_CAMEL_CASE")# From Snake Case'changingToCamelCase'>>>Case.to_camel(" ChangingToCamelCase  ")# From Pascal Case'changingToCamelCase'See moreConvert to Snake Case:>>>Case.to_snake(" ChanginToSnakeCase ")# From Pascal Case'changin_to_snake_case'>>>Case.to_snake(" Changin To Snake Case ")# From String'changin_to_snake_case'>>>Case.to_snake(" Changin-To-Snake-Case ")# From Kebab'changin_to_snake_case'>>>Case.to_snake(" changinToSnakeCase ")# From Camel'changin_to_snake_case'See moreConvert to Kebab Case:>>>Case.to_kebab("Changing to Kebab")# From String'changing-to-kebab'>>>Case.to_kebab("ChangingToKebab")# From Pascal Case'changing-to-kebab'>>>Case.to_kebab("changingToKebab")# From Camel Case'changing-to-kebab'>>>Case.to_kebab("changing_to_kebab")# From Snake Case'changing-to-kebab'See moreConvert to Pascal Case:>>>Case.to_pascal("Changing to Pascal")# From String'ChangingToPascal'>>>Case.to_pascal("Changing-to-Pascal")# From Kebab'ChangingToPascal'>>>Case.to_pascal("Changing_to_Pascal")# From Snake'ChangingToPascal'>>>Case.to_pascal("ChangingtoPascal")# From Pascal'ChangingtoPascal'>>>Case.to_pascal("changingToPascal")# From Camel'ChangingToPascal'See moreConvert to Sentence:>>>Case.to_sentence("ItsAPascalCase")'its a pascal case'>>>Case.to_sentence("itsACamelCase")'its a camel case'>>>Case.to_sentence("Its-A-Kebab-Case")'its a snake case'>>>Case.to_sentence("Its_a_snake_case")'its a snake case'See moreRead The Docs!Documentation
Package: rbtranslations
Overviewrbtranslations is an alternative approach to managing localized
messages in a Python application. Read thePackage Documentationfor details.The source is maintained atgithub. Please use theissue trackerthere to report any issues.Requirementsrbtranslations has no dependencies beyond thePython Standard Library.InstallationThe simplest and recommended way to install rbtranslations is with
easy_install:> easy_install rbtranslationsAlternatively, you may download the source package from therbtranslations Page on PyPIor fromgithub, extract it
and install using:> python setup.py installLicenserbtranslations is licensed under theMIT License.
Package: rbxmonitormac
rbxmonitormacA simple object oriented script that monitors roblox asynchronously without modifying and reading the game's client. This only works in MacOSInstallationpython3-mpipinstallrbxmonitormacGetting StartedHere are some examples on what can you do with this module.Get the Info:# Get the Place ID, Job ID and the type of the serverimportrbxmonitormonitor=rbxmonitor.MonitorSession()@monitor.joinedGame()asyncdefjoined(info:rbxmonitor.Game):print(f"Player joined. Place ID:{info.placeid}Job ID:{info.jobid}Server Type:{info.servertype}")"do actions"@monitor.disconnected()asyncdefdisconnect():print("Player left the game")"do actions"monitor.run()Monitor the player if it joins a game or disconnect.# A simple script that monitors the player once he joins and disconnectsimportrbxmonitormonitor=rbxmonitor.MonitorSession()@monitor.joinedGame()defjoinedgame(info:rbxmonitor.Game):print("Player joined a game.")print("Place ID:",info.placeid)print("Job ID:",info.jobid)print("Server",info.servertype)@monitor.joinedGame(142823291)# This will execute if the player (you) joined the place id you provideddefjoinedmm2(info:rbxmonitor.Game):print("Player joined MM2")print("Job ID:",info.jobid)print("Server:",info.servertype)@monitor.disconnected()defdisconnected():print("Player disconencted")monitor.run()Run on a different thread to not block anything else from executing.# A simple script that monitors Roblox on a different thread to disable blocking.importrbxmonitormonitor=rbxmonitor.MonitorSession()@monitor.joinedPrivateServer(142823291)defjoinedprivatemm2(info:rbxmonitor.Game):print("Player joined a private server")monitor.runOnDiffThread()print("look!")Do a http request to get the name of the place id you joined# A script that gets the name of the place id you joined. This uses asyncio and requests# This will get the name of the game.importaiohttpimportrbxmonitorimportjsonmonitor=rbxmonitor.MonitorSession()asyncdefgetReq(session:aiohttp.ClientSession,url:str):asyncwithsession.get(url=url)asresponse:returnawaitresponse.text()asyncdefgetNameOfPlaceId(placeid:int):asyncwithaiohttp.ClientSession()assession:universeid=json.loads(awaitgetReq(session,f"https://apis.roblox.com/universes/v1/places/{placeid}/universe"))name=json.loads(awaitgetReq(session,f"https://games.roblox.com/v1/games?universeIds={universeid['universeId']}"))["data"][0]["name"]returnname@monitor.joinedGame()asyncdefjoined(info:rbxmonitor.Game):name=awaitgetNameOfPlaceId(info.placeid)print(name)monitor.run()
Package: rc
rc - the redis cache.easy to usecan build cache clusterbatch-fetch multiple cache results (do it in parallel for cluster)For full documentation seerc.readthedocs.org.Installation$pipinstallrcQuickstartA minimal cache example looks like this:fromrcimportCachecache=Cache()assertcache.set('key','value')assertcache.get('key')=='value'assertcache.get('foo')isNoneassertcache.set('list',[1])assertcache.get('list')==[1]A cache cluster use a redis cluster as backend:fromrcimportCacheClustercache=CacheCluster({'cache01':{'host':'redis-host01'},'cache02':{'host':'redis-host02'},'cache03':{'host':'redis-host03'},'cache04':{'host':'redis-host04','db':1},})Cache decorator:@cache.cache()defload(name,offset):returnload_from_database(name,offset)rv=load('name',offset=10)Batch fetch multiple cache results:assertcache.get_many('key','foo')==['value',None]# for cache decorated function@cache.cache()defcached_func(param):returnparamresults=[]# with the context manager, the function# is executed and return a promisewithcache.batch_mode():foriinrange(10):results.append(cached_func(i))fori,rvinenumerate(results):assertrv.value==iCache invalidation:cache.delete('key')# for decorated functioncache.invalidate(load,'name',offset=10)BetterIf you feel anything wrong, feedbacks or pull requests are welcome.
Package: rc4me
rc4meRun Commands 4 Me: Quickly and easily set up your run commands filesProject descriptionrc4meaims to simplify and expedite setting up your run command files (.bashrc,.bashprofile,.vimrc...) on your computer. Work environment here is defined as the set
of run command files that define your shell configuration. If find yourself working on
different dev boxes, you may be interested in this package.  With a single command, you
are all set!Example:
"M, check out this new vim plugin I've been using"-J
...M runs anrc4me applycommand...
"Cool dude, but not for me"-M
...M reverts to his work environment usingrc4me revert...SetupThere are two pieces of the set-up:installing the packagesetting up a git repo with your run commands.1. Installpiprc4meis available onpip. You'll needpip.pip install rc4meFrom sourceTo install from source, you'll need to run a git clone then a localpipinstall (done
as amakecommand):git clone wiggums-analytics/rc4me
make install2. Setting up your run commands repoYou'll need to put your run commands on github forrc4meto find them. Run command
files are typically hidden---i.e., has a dot in front~/.bashrc.rc4meexpects your
rc files in your repo to not hidden (no dot). For example# My repo
bashrc
bash_profile
vimrcAn example repo can be foundhere.Basic usageGrab and setup rc files frommstefferson/rc-demorc4me apply mstefferson/rc-demoIf you want to reset everything:rc4me resetNote,resetwill reset the configuration thatrc4mesaw when running it's first
command.Note, after running commands, the changes will be applied in a new shell--i.e., we don't
source bash files.Getting helpList CLI commands:rc4me --helpFor help on a specific command (e.g.,apply):rc4me apply --helpWhat is rcm4e doing?rc4medownloads files for github and soft-links them on you computer. All the filesrc4meinteracts with are saved in~/.rc4me/.rc4mesoftlinks files to the user
provided destination.Danger zonerc4mecan undo everything it doesunlessyou nuke~/.rc4me.  It is highlyrecommended  to not delete~/.rc4mewithout runningrc4me resetfirst.
Package: rc522
ContextThis tool is showcased in the projectIotaWorkshopSummaryThis is a basic RFID libarary for the rc522. This simply lets you pull a single tag data and later lets you confirm it using the functiondetectKey(uid,block)InstallationThis package requiresRPi.GPIO, which I installed on arch arm usingyay -S python-raspberry-gpioBut ubuntu or rasbian can use,pip install RPi.GPIOTo install pibeep simply install the pip package.pip install rc522ExampleSimple example of usagefrom rc522 import detect,detectKey
uid,block detect(rst=31,irq=29)
#Later you can check that the same raid tag is still there using
if detectKey(uid,block,rst=31,irq=29):
	print("RFID tag is still there")
else:
	print("RFID tag is vacant!")WiringTo connect the RC522 module to SPI use the following schematic.Use this pinout diagramfor reference.Board pin nameBoard pinPhysical RPi pinRPi pin nameSDA124GPIO8, CE0SCK223GPIO11, SCKLMOSI319GPIO10, MOSIMISO421GPIO9, MISOIRQ29GPIO5GND66, 9, 20, 25GroundRST31GPIO63.3V81,173V3
Package: rca
# Recompress Audio (RCA)**The Problem**: If you recompress lossless audio for use onspace-sensitive devices such as a cell phone or Raspberry Pi, then RCAcan help you re-compress those lossless tracks whenever improvedversions of your codec are released or when you change your desiredencoding settings.It does this by keeping track of the encoder's version and flags used ina simple text file that resides along-side the audio.You can also characterize your tracks as speech or music, stereo ormono, simple or complex (amung others), which RCA uses to tailor theencoding flags and bitrates.RCA is simple to use, command-line driven, and doesn't require anychanges to your directory layout or audio filenames.## How it WorksYou characterize a given directory audio tracks by populating a new`properties.yml` file with something like the following:```yamltracks:type: musiccomplexity: moderatechannels: stereo ```The above tells RCA that all tracks are stereo music of moderatecomplexity.Here's a more complex example of a CDs having music, commentary, soundeffects, and two trailing filler track of dead-air:```yamltracks:type: musiccomplexity: simplechannels: stereotrack03:type: effectscomplexity: moderatespeech:range: [4, -, 9, 12]complexity: complexchannels: monofiller:range: [13, 14]```The above tells RCA that:- tracks 1, 2, 10, and 11 are *stereo music* of *simple* complexity- track 3 is *stereo* sound *effects* of *moderate* complexity- tracks 4, 5, 6, 7, 8, 9, and 12 are *mono speech* of *complex* complexity- tracks 13 and 14 are fillerYou then run RCA while specifying your desired output codec, such as`rca opus`, which encodes the tracks according to the Ogg Opus profiles,which can be customized.## Getting Started1. Install Python 3.5 or preferably the latest, which is currently 3.7.x- Windows users: enable the *Add Python to your PATH* option during install2. Install RCA: open an command prompt as the Administrator (Windows) orroot on Linux/OSX) and run `pip3 install rca`
Package: rcache
rcache.pyWhat is itrcache.py is a cache and works on redis so it is suitable for multi threaded and multi process applications.
It has been inspired and based oncache.pylibraryhttps://github.com/bwasti/cache.pyUsageTo use the file,import rcacheand annotate functions with@rcache.rcache().importrcache@rcache.rcache()defexpensive_func(arg,kwarg=None):# Expensive stuff herereturnargThe@rcache.rcache()function can take multiple arguments.@rcache.rcache(timeout=20)- Only caches the function for 20 seconds.@rcache.rcache(url="http://other_redis:6379")- Saves cache to specified Redis url (defaults tohttp://localhost:6379)@rcache.rcache(key=rcache.ARGS[KWARGS,NONE])- Check against args, kwargs or neither of them when doing a cache lookup.How it worksrcache.pyqueriesredisand checks against the name, arguments and hash of a function's source
to decide if the function has been run before.  If it has it returns the cached result immediately.
Package: rcache2
fromrcache2importRcachefromrcache2importCacheascached...redis_pool=redis.ConnectionPool(host='localhost',port=6379,db=0,decode_responses=True)redis_conn=redis.Redis(connection_pool=redis_pool)Rcache.init(redis_conn)fake_db={'1':{'title':'Google','body':'...'},'2':{'title':'GitHub','body':'...'}}@cacheddefget_item(item_id):time.sleep(4)returnfake_db.get(item_id)@app.get('/item/{item_id}')defitem(item_id):returnget_item(item_id)@app.put('/item/{item_id}')defitem_change(item_id,data:ItemIn):fake_db[item_id]=data.dict()get_item.cache_update(item_id).value(data.dict())returndata@app.delete('/item/{item_id}')defitem_create(item_id):delfake_db[item_id]get_item.cache_delete(item_id)
Package: rcaudio
rcaudio : A Realtime Audio Recording & Analyzing LibraryIntroductionrcaudiois a real-time audio analysis library that allows you to simply record audio through a microphone and analyze.It supports real-time analysis of :The raw audio dataVolumeBeat InformationDIY method extraction functionFor chinese documentation :中文文档InstallationpipinstallrcaudioUsageCoreRecorderCoreRecorderis used to fetch raw data. When started, the audio data will be stored in theCoreRecorder.buffer.fromrcaudioimportCoreRecorderCR=CoreRecorder(time=10,#How much time to recordsr=1000#sample rate)CR.start()whileTrue:ifnotCR.buffer.empty():x=CR.buffer.get()print('*'*int(abs(x)))SimpleRecorderIn most cases, we useSimpleRecorder.  For efficiency consideration, theSimpleRecordershould only be instantiated once.This class can register severalAnalyzer.When the functionstart()called, It will begin to record through microphone, and refresh the status of all theAnalyzerAnalyzersAll class extended fromBaseAnalyzercan be registered intoSimpleRecorder. For exampleVolumeAnalyzercan get the current volume of the microphone.importtimefromrcaudioimportSimpleRecorder,VolumeAnalyzerSR=SimpleRecorder()VA=VolumeAnalyzer(rec_time=1)SR.register(VA)SR.start()whileTrue:print("VOLUME : ",VA.get_volume())time.sleep(1)And beat analyzer can predict the beats from the music. (However, there will be some delay.)SR=SimpleRecorder(sr=20000)BA=BeatAnalyzer(rec_time=15,initial_bpm=120,smooth_ratio=.8)SR.register(BA)SR.start()whileTrue:print(BA.block_until_next_beat())A FeatureAnalyzer can use to generate all user defined acoustic features. Just override thedata_processfunction. (Current function are the calculation of theZero Crossing Rate.SR=SimpleRecorder(sr=1000)FA=FeatureAnalyzer(refresh_time=1)SR.register(FA)SR.start()cpos=0whileTrue:iflen(FA.result)>cpos:print(FA.result[cpos])cpos+=1time.sleep(.01)Some notesMost function has the time delay about 1-2 seconds. I did lot effort to let the BeatAnalyzer looked as it is real-time. However, for theFeatureAnalyzer, if the feature extraction function are too slow compare to the microphone recording, the dalay may become huge. Decrease the sample rates would be a solution, but better solution would be DIY a analyzer yourself.
Package: rcc-api
RustCheatCheck APIУдобная обертка для взаимодействия с апиRCC.Как начать?Установкаpip install rcc-apiВзаимодействиеimportasyncioimportRCCasyncdefmain():api=RCC.API("TOKEN/KEY")# Здесь показаны не все методы, более подробнее информация# Находится здесь https://rustcheatcheck.ru/panel/getapi# Некоторые поля/методы названы более правильно(по моему мнению)# Ваш редактор в любом случае вам подскажет# Получение информация об аккаутнеplayer=awaitapi.get_info(76561198021247080)print(player.steamid)# 76561198021247080print(player.rcc_checks)# 7checks=player.checksprint(checks[1].time)# 2019-01-08 16:53:13+00:00print(checks[1].server_name)# MagicRustbans=player.bansprint(bans[0].reason)# мамкин_крашерprint(bans[0].active)# Falseprint(bans[0].ban_date)# 2019-06-11 12:01:07+00:00ет# Выдача доступа к чекеруresponse=awaitapi.start_check(76561198021247080,moder_steamid=76561198021247080)print(response.status)# successprint(response.error)# None# Выдача банаresponse=awaitapi.ban_player(76561198021247080,"macros")print(response.status)# successprint(response.error)# None# Снятие банаresponse=awaitapi.unban_player(76561198021247080)print(response.status)# successprint(response.error)# None# Работа с ошибкамиtry:player=awaitapi.get_info(62485679287628672076)exceptRCC.exceptions.RCCErrorsase:print(e)asyncio.run(main())
Package: rccnlp
rccnlpRCC 自然言語処理班で使うツールキットです。実行環境Python 3インストール$pipinstallrccnlp使い方センチメント分析fromrccnlp.sentimentimportAnalyzeranalyzer=Analyzer()analyzer.analyze('天国で待ってる。')# => [1.0]analyzer.analyze('遅刻したけど楽しかったし嬉しかった。すごく充実した！')# => [0.3333333333333333, 1.0]analyzer.count_polarity('遅刻したけど楽しかったし嬉しかった。すごく充実した！')# => [{'positive': 2, 'negative': 1}, {'positive': 1, 'negative': 0}])analyzer.count_polarity('そこにはいつもと変わらない日常があった。')# => [{'positive': 0, 'negative': 0}]analyzer.analyze_detail('お金も希望もない！')# => [{'positive': [], 'negative': ['お金-NEGATION', '希望-NEGATION'], 'score': -1.0}])analyzer.analyze_detail('お金がないわけではない')# => [{'positive': ['お金'], 'negative': [], 'score': 1.0}]
Package: rc-cts
Resilient Lightweight Custom Threat ServiceThis package implements the Custom Threat Service API, providing a
simple framework to develop threat source lookups in Python using the
Resilient Circuits integration framework.It's suitable for simple "lightweight" threat source lookups.All lookups are asynchronous.There is currently no support for file-attachment handling.Queries are not stored persistently, so if you need to track external resources
(for example, if your threat service starts a long-running task such as
sandbox processing) those will not be tracked across restarts.For more robust and advanced features, you should consider deploying
a standalone threat service, for example based on the Django example
(https://github.com/ibmresilient/resilient-python-examples/tree/master/django-custom-threat-service).What's newv42 supports resutil threatserviceedit -user and -password authenticationEnvironmentThis package requires that it is installed on a RHEL platform and that the resilient-circuits application is running.
Install this package with 'pip', orpython setup.py install.
To set the config values in the app.config file runresilient-circuits config -u.Config values example:[custom_threat_service]

# Base URL for threat services API
urlbase=/cts

# Whether we support file upload (for "file"-type artifacts)
# upload_file=False

# Retry time indicators
#first_retry_secs=5
#later_retry_secs=60
#max_retries=60

# Cache management
#cache_size=10000
#cache_ttl=600000

# use auth_user and auth_password when specifying the -user and -password parameters on
#  resutil threatserviceedit to ensure basic authentication
#auth_user=
#auth_password=Run with:resilient-circuits run.Custom Threat Service ExampleThis package includes anexamplethreat service that responds to 'URL' artifacts with
static data.  To register the example onto your Resilient server (assuming that theresilient-circuitsapplication is running on the same server):sudo resutil threatserviceedit -name example -resturl http://127.0.0.1:9000/cts/example
sudo resutil threatservicetest -name exampleTo delete,sudo resutil threatservicedel -name example
Package: rc.customcontent
This product embed the PDF in file viewContributorsRogério da Costa Dantas Luiz,rogeriocdluiz@gmail.comChangelog1.0a2 (unreleased)Removed ‘plone.api>=1.8.4’ requirement
[rogeriocdluiz]1.0a1 (unreleased)Initial release.
[rogeriocdluiz]
Package: rcdb
RCDBRun Configuration/Conditions Database (RCDB) stores run related information and conditions. It uses MySQL or SQLite databases to store information about runs and provides interfaces to search runs, manage data, automatic CODA integration, etc.The interfaces available are:Web siteCommand line interface (CLI)Python APIC++ APIPossibly JAVA APIDocumentation:https://github.com/JeffersonLab/rcdb/wikiWeb site:One can visit HallD RCDB Web site as demo:https://halldweb.jlab.org/rcdb/SQLite db:Daily updated SQLite database is available here:https://halldweb.jlab.org/dist/rcdb.sqlite
Package: rcdb-web
RCDBRun Configuration/Conditions Database (RCDB) stores run related information and conditions. It uses MySQL or SQLite databases to store information about runs and provides interfaces to search runs, manage data, automatic CODA integration, etc.The interfaces available are:Web siteCommand line interface (CLI)Python APIC++ APIPossibly JAVA APIDocumentation:https://github.com/JeffersonLab/rcdb/wikiWeb site:One can visit HallD RCDB Web site as demo:https://halldweb.jlab.org/rcdb/SQLite db:Daily updated SQLite database is available here:https://halldweb.jlab.org/dist/rcdb.sqlite