Saravanan666/pypi-org huggingface dataset:
Package: r12
# R12
A Python package providing a low-level interface for the ST Robotics R12
robotic arm.## Install
Install using pip:` pip install r12 `## Shell
Ther12-shellexecutable is automatically installed with the package. It
provides a shell interface to the robot arm for testing.## Manuals
See the ST Robotics manuals on the R12 arm and ROBOFORTH for more information.
* [Arm Manual](http://www.strobotics.com/manuals/R12%20manual.pdf)
* [ROBOFORTH Manual](http://www.strobotics.com/manuals/manual16.htm)
Package: r128gain
r128gainFast audio loudness scanner & taggerr128gain is a multi platform command line tool to scan your audio files and tag them with loudness metadata (ReplayGain v2 or Opus R128 gain format), to allow playback of several tracks or albums at a similar loudness level.
r128gain can also be used as a Python module from other Python projects to scan and/or tag audio files.This is beta software, please test and report bugs.FeaturesSupports all common audio file formats (MP3, AAC, Vorbis, Opus, FLAC, WavPack...) and tag formats (ID3, Vorbis comments, MP4, APEv2...)Writes tags compatible with music players reading track/album gain metadataSupports new R128_XXX_GAIN tag format for Opus files (very few scanners write this tag, although it is defined in theOpus standard)Supports writing gain to theOpusoutput gainheader(experimental)Uses threading to optimally use processor cores resulting in very fast processingInstallationr128gain requiresPython>= 3.6 andFFmpeg>= 2.8.Standalone Windows executableWindows users can download astandalone binarywhich does not require Python, and bundles FFmpeg.Arch LinuxArch Linux users can install ther128gainAUR package.From PyPI (with PIP)Install r128gain usingpip:pip3 install r128gainFrom sourceIf you don't already have it,install setuptoolsfor Python 3Clone this repository:git clone https://github.com/desbma/r128gainInstall r128gain:python3 setup.py installCommand line usageRunr128gain -hto get full command line reference.ExamplesScan a single file and display its loudness information:r128gain -d an_audio_file.mp3Scan & tag a single file:r128gain an_audio_file.mp3Scan & tag all audio files inmusic_directoryand all its subdirectories:r128gain -r music_directoryScan & tag all audio files inmusic_directoryand all its subdirectories, and add album gain tags (files contained in each directory are considered as part of the same album):r128gain -r -a music_directoryLicenseLGPLv2
Package: r2
r2 (Record2Replay)Record2Replay is simple tool to record your requests on specific target and later replay it to automate your daily tasksNote:This version is still Work In Progress. Record/Replay function should work with no problems, but it is lack of features.TLDR;# install
pip install r2

# record responses from another service
r2 record http://api.plos.org

# or record on the custom name 'api_plos'
r2 record http://api.plos.org --package api_plosGo to your browser and type:localhost:5000/search?q=title:DNAin your home directory, all response will be saved at~/.r2/packages/default/*# to replay packages 
r2 replay

# or to replay a custom package 'api_plos'
r2 replay --package api_plosTODONote:This is partly implemented with 0.2 version.Implement an option to parse arguments exhttp://127.0.0.1:5000/search?q=title:DNA. Actual version will pass
everything on the right side of the?and save a file undersearch.Add a support for more than one packageInstallationYou can install ar2software using a python package manager or build it from source code:from pipr2is available thrupip, to install typepip install r2from sourceGo intosrcdirectory of source, and typepython setup.py sdist bdist_wheel && cd dist && pip install r2*.whlReplay filesReplay files store base information about the response, from the service.Actual support:json responseFuture upgrade:raw responseadditional status codesadditional information from headersLogs filesAll logs are stored at~/.r2/logsdirectory with filenamesr2_record_2020_08_04T18_06_02_050068where (r2_[action_type]_[isoformat_time]).Format change v0.1 to v0.2Since version v0.2,r2presents a new format to store response information from the services.
Before v0.2 all response was stored as a raw text in the file. Now, the Response is packed:Example:Before:{"test": "test_body"}Now:{
"data_id": "test\endpoint", 
"actions": [
    {"arguments": {}, 
     "response": {
         "test": "test_body"}
     }]
}This approach allow us to store different information for whole range of arguments deliver thru the URL.
Package: r245
R2-45R2-45 monitors overall volatile memory usage and when memory usage goes
to or beyond what it considers too far (meaning that the poor system
switches to super-slow swap memory) it kills progressively a list of
programs it has in its internal blocklist. As it does this it notifies
you of its actions and, when it has done all it can based on its
blocklist, it sends a final message of warning. It is not perfect, but
it is trying. And really, the pursuit of a positive contribution to
reality is really all for which anyone or script can hope.setuppipinstallr245usageJust run it.r245You can ask it for help if you want to learn how to specify via command
line options and arguments the critical RAM usage limit or a custom
blocklist.r245--helpexample program to demonstrate large memory usagex=bytearray(512000000)background readinghttps://wikileaks.org/wiki/Scientology_cult_recording:_R2-45_is_the_act_of_shooting_a_person_with_a_firearm,_20_Nov_1959
Package: r2analyze
r2analyze - Radare2 integration with Intezer AnalyzeExecute the plugin via#!pipeand save yourself time while reversing. The plugin helps you focus on the malicious and unique functions.How to useRunpip install r2analyzeto download and install.Add your API key as a shell environment variableINTEZER_API_KEY.Upload the sample toAnalyze.Open the file with radare2 and analyze the file with for exampleaaa.Run#!pipe r2analyze.Flag starting withgene_has been added to all functions with code-reuse.ExampleAfter we have submitted the file to Intezer Analyze, we open the file
with radare2:$r27c82689142a415b0a34553478e445988980f48705735939d6d33c17e4e8dac94--*(ut64*)bufferoughttobeillegal[0x004028e3]>aaa[x]Analyzeallflagsstartingwithsym.andentry0(aa)[x]Analyzefunctioncalls(aac)[x]Analyzelenbytesofinstructionsforreferences(aar)[x]FindingandparsingC++vtables(avrr)[x]Typematchinganalysisforallfunctions(aaft)[x]Propagatenoreturninformation(aanr)[x]Use-AAoraaaatoperformadditionalexperimentalanalysis.When we runr2analyze, it will query Analyze for code reuse. Functions
that share code already malware will be marked with a geneflag. All
the flags are added to a new flag space called "gene" for easier
filtering.[0x004028e3]>#!pipe r2analyzeAnalyzing7c82689142a415b0a34553478e445988980f48705735939d6d33c17e4e8dac94
Functionsfound194.[0x004028e3]>fsgene[0x004028e3]>f
0x004010001gene_malware_ScarCruft_4198400
0x004013e01gene_malware_ScarCruft_4199392
0x00401f201gene_malware_ScarCruft_4202272
0x004020901gene_malware_ScarCruft_4202640Function identified as sharing code with ScarCruft:[0x004028e3]>pdfs@4202272;--gene_malware_ScarCruft_4202272:
0x00401f4acalldword[sym.imp.KERNEL32.dll_CreateFileA]0x00401f5fcalldword[sym.imp.KERNEL32.dll_GetFileSizeEx]0x00401f7acalldword[sym.imp.KERNEL32.dll_CloseHandle]0x00401f98:
0x00401fb0:
0x00401fc7fcn.00401f20+0xb0fcn.00401f20+0xb0
0x00401fd0:
0x00401fd3:
0x00401ff0:
0x00401ff5:
0x00402003:
0x0040200cint32_targ_1ch
0x0040200dint32_targ_18h
0x0040200euint32_targ_14h
0x0040200fint32_targ_10h
0x00402010int32_targ_ch
0x00402014int32_targ_8h
0x00402018callfcn.00402090fcn.00402090
Package: r2c-cli
r2c-cliThis is the CLI for interacting with the R2C platform.InstallationPrerequisitesInstall Dockerfor your platformPython 3.7 and upfor your platformSetupInstall r2c-cli, either viapipor viapipxto provide better package isolation.pip3 install r2c-cliRunr2cto check that the CLI was installed properly. If installed properly, you should see our help text.DocumentationSeedocs.r2c.devfor details on how write analyzer usingr2c-cli.Usager2c<command>[options]You can also runr2c --helpor justr2cto see usage information.For help with a command in particular, you can runr2c <command> --helpand see help specifically for that command.For the commandsruntestpushandunittestthey will require that you run them in an analyzer directory (i.e. a directory containing ananalyzer.jsonand associated files).Unit TestingInstructions to run unittests are definedsrc/unittest.sh. Make sure to addmocha testornpm testto enable
unittesting for your analyzer.Integration TestingIntegration tests should be defined in thesrc/examplesdirectory.
Integration test on a github REPO@COMMIT could be defined as{"target":"{REPO}","target_hash":"{COMMIT}","expected":[]}Uploading new analyzerOnce you are done developing and testing your analyzer locally, you must updateversionin youranalyzer.jsonand runr2cpushto upload your analyzer to your repository.TroubleshootingIf you run into issues runningr2ccommands, you can run with--verboseflag and reach out tosupport@ret2.cowith the error log.
Package: r2c-jinjalint
jinjalintA prototype linter which checks the indentation and the correctness ofJinja-like/HTML templates. Canfix issues.It works withDjango’s templatestoo, it should
work withTwigand similar template languages.
It should work fine with any kind of HTML 4 and 5, however XHTML is not
supported.This linter parses both HTML and Jinja tags and will report mismatched
tags and indentation errors:<div>{%ifsomething%}</div>{%endif%}<div><span></div></span>{%ifsomething%}<div>not indented properly</div>{%endif%}{%ifsomething%}<ahref="somewhere">{%endif%}<p>something</p>{%ifnotsomething%}</a>{%endif%}UsageYou need Python 3. Jinjalint doesn’t work with Python 2. Install it withpip install jinjalint(orpip3 install jinjalintdepending on howpipis
called on your system), then run it with:$jinjalinttemplate-directory/…or:$jinjalintsome-file.htmlsome-other-file.htmlThis is a work in progress. Feel free to contribute :upside_down_face:Usage withpre-commitgit hooks frameworkAdd to your.pre-commit-config.yaml:-repo:https://github.com/motet-a/jinjalintrev:''# select a tag / sha to point athooks:-id:jinjalintMake sure to fill in therevwith a valid revision.Note: by default this configuration will only match.jinjaand.jinja2files.  To match by regex pattern instead, overridetypesandfilesas
follows:-id:jinjalinttypes:[file]# restore the default `types` matchingfiles:\.(html|sls)$HackingJinjalint is powered byParsy. Parsy is an extremely powerful
library and Jinjalint’s parser relies heavily on it. You have to read
Parsy’s documentation in order to understand what’s going on inparse.py.
Package: r2cloud
Aboutr2cloud python sdk makes it easier for you to work with your r2cloud server using the python programming language. The SDK uses an object-oriented design and tries to look like r2cloud API.Installationwith pip3pipinstallr2cloudfrom repomakeinstall
makedoc# for generate documentationQuick startimportr2cloud.apiimportr2cloud.tools.common# init apistation=r2cloud.api('https://192.168.0.10')# login to r2cloudstation.login("myemail@example.org","my_password")# get all observationsobs=station.observationList()# filter observation of "NOAA 19", "NOAA 18" and "NOAA 15"obs=r2cloud.tools.common.filterSat(obs,["NOAA 19","NOAA 18","NOAA 15"])# filter observation with data onlyobs=r2cloud.tools.common.filterHasData(obs)# print all filtred observations idsforobinobs:print("Observation "+str(ob.id)+" by "+ob.name)more examples you can find in/examplesdir on githubExamples Screenshots
Package: r2d2
# r2d2some handy functions## APIS:### `goto(directroy: str)`进入目标目录 `directroy` -> 操作 -> 返回之前目录。用于临时进入目标目录进行操作，如果目标目录不存在，则会被创建。```pyos.getcwd()# /current/directorywith goto('/my/directory'):os.getcwd()# /my/directoryprocess()os.getcwd()# /current/directory```
Package: r2d7py
R2D7 Shade Controller PackagePackage to control R2D7 shades through an Ethernet adaptor
using Python.Example:from time import sleep
from r2d7py import *

hub = R2D7Hub( 'host.test.com', 4008 )

# Address=1, Unit=2, shade traversal time=14.2
shade = hub.shade( 1, 2, 14.2 )

# Open the shade
shade.open()
sleep(15.)

# Position the shade half way
shade.position = 50.
sleep(15.)

# Close the interface
hub.close()
Package: r2ds-api
r2ds-apiR2DS Python APIQuickStartDocumentation:https://r2ds-api.readthedocs.io.pip install r2ds_apiExampleimport r2ds_api

response = r2ds.get("EXAMPLE AUTH KEY", {
    "score__gt": 100
})
print(response.json())FeaturesR2DS Search and filteringTopic NotificationsStreamingMore Informationhttps://r2ds.tonkworks.com/https://r2ds.tonkworks.com/api/History0.1.0 (2018-04-08)First release on PyPI.
Package: r2dt-client
R2DT API Client[][status][][license][][pre-commit]
[][black]FeaturesAccess to the [R2DT] API via PythonDisplay R2DT widget in Jupyter NotebookRequirementsPython 3.9+[pdm] 2.0.0+InstallationYou can installR2DT API Clientvia [pip] from [PyPI]:$pipinstallr2dt-clientUsageExample usage in the code:fromtimeimportsleepfromr2dt_clientimportsetup,submit,update_status_for,fetch_results_forsetup(email="YOUR_EMAIL")job=submit(">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")whilenotjob.done:update_status_for(job)sleep(5)fetch_results_for(job)print(job.results['fasta'])Using the widget via Jupyter Notebook:!pip install r2dt_client

from r2dt_client import setup, draw

setup(email="YOUR_EMAIL")
draw(
    ">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")LicenseDistributed under the terms of the [MIT license][license],R2DT API Clientis free and open source software.IssuesIf you encounter any problems,
please [file an issue] along with a detailed description.
Package: r2g-gui
Reads to Genes (r2g) GUIIntroductionThis is the GUI wrapper forReads to Genes, orr2g, which is a homology-based, computationally lightweight pipeline for discovering genes in the absence of an assembly. The r2g core is hosted onhttps://github.com/yangwu91/r2g.Ther2g GUIis still under developing, please feel free to file an issue oremail me.ImplementationInstall DockerPlease follow the instructionhereto download and install Docker based on your operating system before running ther2g GUI. The Docker software is compatible with most common operating systems including Linux, macOS and Windows.Installr2g GUIYou can choose one of the following methods to install ther2g GUI:Download zipped pre-built binary files (Python 3 environment is NOT required)Operating SystemSize (MB)MD5Download linkWindows38.178f3428a1f3305015f17255ef9536b46r2g_gui-0.1.1-Windows.zipmacOS (Intel Chip)30.01eb540131143e5720713229408a33094r2g_gui-0.1.1-macOS.zip⚠️ Please note that Windows Defender will report it asTrojan:Win32/Wacatac.B!ml, which isfalse positive. Add ther2g.exeto the excluding list of Windows Defender for further use. Please check out the scanning resuls onhttps://virustotal.com.  Or maybe you can try the other method if the Python 3 environment has been installed on your computer.⚠️ Please note that the executable binary hasnotbeen tested on the Apple M1 Chip.Install by PyPI (Python 3 environment is required)If Python 3 and thepiputility has been installed on your computer, ther2g GUIcan be installed by the command as follows:pip install r2g_guiUsagePlease run the Docker (i.e. Docker Desktop on Windows/macOS or Docker Deamon on Linux) before start the r2g job.Start ther2g GUI. At the first time, the r2g GUI will pull the latest image of the r2g Docker, which should take a while depending on your network quality.WindowsUnzip ther2g_gui-*.*.*-Windows.zip, and then double clickr2g.exe.macOSUnzip ther2g_gui-*.*.*-macOS.zip. HoldControland clickr2g.app, or right clickr2g.app, then clickopen.Other systems with Python 3 environment (installed by PyPI)Simply typingr2g.gui.pyin the terminal should call ther2g GUI.Fill in the parameters and hit theStart!button to submit the job. In addition, here is an example configuration. To use it, please clickFile->Import parameters...and then select it, the GUI wrapper will load pre-configured parameters automatically. Hit theStart!button and enjoy!Tweak parametersTher2g GUIis the GUI wrapper for ther2g, please check outthe detailed usageofr2gto tweak parameters.
Package: r2-LatestEarthquake
Latest Earthquake in IndonesiaLatest Earthquake Indonesia from Indonesian Agency for Meteorology, Climatology, and Geophysics (BMKG)ABOUTThis Package will scrape fromBMKGto get latest earthquake in Indonesia.Using Library BeautifulSoup4 and Request, to produce output in the form of JSON that is ready to be used in web or mobile apps.
Package: r2libr
r2librYet another radare2 python bindings.Compared toradare2-bindingsandradare2-r2pipe, this binding:Doesn't need any extra installation of radare2. Justpip installand you are ready to go.Gives you the full control of the core radare2 libr API and helps build your own tools.Installpip3install--upgrader2librNo need to install radare2since all dynamic libraries are bundled with the Python wheels.ExampleImplement a basic command line r2 by r2libr.importlibrimportctypesimportargparseclassR2:def__init__(self,binary):binary=binary.encode("utf-8")self._r2c=libr.r_core.r_core_new()fh=libr.r_core.r_core_file_open(self._r2c,ctypes.create_string_buffer(binary),0b101,0)libr.r_core.r_core_bin_load(self._r2c,ctypes.create_string_buffer(binary),(1<<64)-1)defcmd(self,cmd):r=libr.r_core.r_core_cmd_str(self._r2c,ctypes.create_string_buffer(cmd.encode("utf-8")))returnctypes.string_at(r).decode('utf-8')def__del__(self):libr.r_core.r_core_free(self._r2c)if__name__=="__main__":ap=argparse.ArgumentParser("Implement a basic command line r2 by r2libr")ap.add_argument("binary",help="The binary to analyse.")args=ap.parse_args()r2pipe=R2(args.binary)whileTrue:print("> ",end="")cmd=input()ifcmd.strip()=="q":breakprint(r2pipe.cmd(cmd))Note that all radare2 APIs are exported as bare ctypes function prototype. Be catious with c-style strings.Build InstructionsClone the repository.gitclonehttps://github.com/radareorg/radare2-bindingscdradare2-bindings/r2librSince radare2 choosesmesonas their alternative building system and it's cross-platform, the first step is installmeson.pip3installmesonBuild the package. Note that on Windows,x64 Native Tools Command Promptis required to build.python3setup.pybuildInstall and use.# Or pip3 install -e .pip3install.Creditsradare2: Awesome project.ctypeslib: Bindings generation.
Package: r2ntab
Developed by M.J. van der Zwart as MSc thesis project (c) 2023Installationpip install r2ntabPreparing data using sample datasetimporttorchfromr2ntabimporttransform_dataset,kfold_datasetname='adult.data'X,Y,X_headers,Y_headers=transform_dataset(name,method='onehot-compare',negations=False,labels='binary')datasets=kfold_dataset(X,Y,shuffle=1)X_train,X_test,Y_train,Y_test=datasets[0]train_set=torch.utils.data.TensorDataset(torch.Tensor(X_train.to_numpy()),torch.Tensor(Y_train))Creating and training the modelfromr2ntabimportR2NTabmodel=R2NTab(len(X_headers),10,1)model.fit(train_set,epochs=1000)Y_pred=model.predict(X_test)Extracting the resultsrules=model.extract_rules(X_headers,print_rules=True)print(f'AUC:{model.score(Y_pred,Y_test,metric="auc")}')print(f'# Rules:{len(rules)}')print(f'# Conditions:{sum(map(len,rules))}')ContactFor any questions or problems, please open an issuehereon GitHub.
Package: r2papi
R2Papi for PythonThis is PoC of the future autogenerated API bindings for r2pipe.Usage exampleWe need to have a common API definition for all languages across r2pipe.importr2pipefromr2papiimportR2Apir=R2Api(r2pipe.open("/bin/ls"))ifr.info().stripped:print"This binary is stripped"r.searchIn('io.sections.exec')r.analyzeCalls()printr.at('entry0').hexdump(16)printr.at('sym.imp.setenv').hexdump(16)printr.at('entry0').disasm(10)r.seek('entry0');r.analyzeFunction()printr.disasmFunction()forfcninr.functions():printfcn.namer[0:10]# '\x7fELF\x02\x01\x01\x00\x00\x00'r[1]# 'E'r.quit()
Package: r2pipe
r2pipe for PythonInteract with radare2 using the #!pipe command or in standalone scripts
that communicate with local or remote r2 via pipe, tcp or http.Installation$ pip install r2pipeor$ pip3 install r2pipeUsage example:importr2piper2=r2pipe.open("/bin/ls")r2.cmd('aa')print(r2.cmd("afl"))print(r2.cmdj("aflj"))# evaluates JSONs and returns an objectprint(r2.cmdj("ij").core.format)# shows file formatr2.quit()
Package: r2pyapi
r2pyapiHigh level radare2 python APIInstallation$ pip install r2pyapiYou also need to installradare2.
radare2 can be easily installed by the instruction describedhere.Usageimportr2pipefromr2pyapiimportR2Surface,R2Seeker,R2Readerr2=r2pipe.open("test.exe")# instruction searchwithR2Seeker(r2)asseeker:results=seeker.seek_instructions("push ebp")print(next(result))# R2Instruction(offset=4288663, len=2, code='push ebp')# read byte sequenceswithR2Reader(r2)asreader:bytes_read=reader.read_bytes_at(0x0401000,4)# [85, 139, 236, 131]# get sectionsr2_surf=R2Surface(r2)print(r2_surf.sections)# [R2Section(vaddr=4198400, paddr=1024, size=51200, vsize=53248, name='.text', perm='-r-x'), ... ]# get importprint(r2_surf.find_import("MessageBoxA"))# R2Import(ordinal=1, bind='NONE', type='FUNC', name='MessageBoxA', libname='USER32.dll', plt=4251916)
Package: r2server
Aboutr2server python sdk makes it easier for you to work with your r2server server using the python programming language. The SDK uses an object-oriented design and tries to look like r2server API.Installationwith pip3pipinstallr2serverfrom repomakeinstall
makedoc# for generate documentationQuick startimportr2server.api# init apinetwork=r2server.api()# get all observations of METEOR-M2obs=network.observation(33591)# print all filtred observations idsforobinobs:print("Observation "+str(ob.id)+" by "+ob.name)
Package: r34
r34Library for retrieving posts and tags from rule34.usAuthors@ArticOffInstallationInstall info with pip# Linux/macOSpython3-mpipinstall-Ur34# Windowspy-3-mpipinstall-Ur34Usage/ExamplesThese codes are pretty slow because it takes on the HTMLsearch by tagsimportr34posts=r34.search("1girls")forpostinposts:print(post.url)returnget posts by their idimportr34posts=[1,2,3,4,5]new_posts=r34.fetchPosts(posts)forpostinnew_posts:print(post.media)returnFeedbackIf you have any feedback, please reach out to us onour discordLinksOfficial discord serverSource