Saravanan666/pypi-org huggingface dataset:
Package: rtt-data-gen
JSON-configurable data generator can execute external binaries to
generate data (e.g., Sage scripts) in conjunction with CryptoStreams
binary (e.g., to generate inputs / plaintexts for external binaries).Template substitution{{CRYPTOSTREAMS_BIN}}cryptostreamsgenerator binary path{{PYTHON_BIN}}Python3 binary path running RTT worker{{SAGE_BIN}}SageMath binary path (if installed, otherwise
defaults tosage){{RTT_EXEC}}/rtt_backend/rtt_execution directory{{OFILE}}corresponds to argument--data-pathof rtt-data-gen{{FILE_X}}input file defined in the configuration file,Xis
sanitized upper-cased name. Usage: cryptostreams config used inexecas plaintext feeder.{{CSFILE_X}}input file generated by cryptostreams generator
according to the config defined incstream_files. Usage:
pre-generate encryption keysInput filesJSON entryinput_filesin the json config root enables to specify a
temporary files that can be used in exec template string.Example:{"input_files":{"CONFIG1.JSON":{"data":{"json_example_cfg":{"tmp":1}}},"CONFIG2.BIN":{"data":"0102030405","dtype":"hex"}}}Then{{FILE_CONFIG1.JSON}}is substituted for a path to a temporary
file defined in the keyCONFIG1.JSON. Data is serialized json.Similarly,{{FILE_CONFIG2.BIN}}is substituted for a path to a temp
file, which contains 0102030405 binary string.Cryptostreams filesUsage: pre-generate temporary files with cryptostreams, e.g., encryption
keys. For plaintext generators better use pipe in the exec template so
no large temp file is created.Example:{"cstream_files":{"CSFILE1":{"data":{"seed":"4464a22651888b31","stdout":true}}}}ExamplesGenerate simple plaintext template in counter mode, width 32 B per
plaintext blockPlaintext:01 | ... | 00 00 01Pipe plaintext to a python script processing it, outputs on stdout.{"stream":{"type":"shell","direct_file":false,"exec":"{{CRYPTOSTREAMS_BIN}} -c={{FILE_CONFIG1.JSON}} | {{PYTHON_BIN}} {{RTT_EXEC}}/scripts/flipper.py -k=00"},"input_files":{"CONFIG1.JSON":{"note":"plaintext-ctr","data":{"notes":"","seed":"4464a22651888b31","tv-size":null,"tv-count":null,"tv_size":32,"tv_count":6250000,"stdout":true,"file_name":"plain_ctr.bin","stream":{"type":"xor_stream","source":{"type":"tuple_stream","sources":[{"type":"counter","output_size":32},{"type":"single_value_stream","output_size":32,"source":{"type":"tuple_stream","sources":[{"type":"false_stream","output_size":31},{"type":"const_stream","output_size":1,"value":"01"}]}}]}}}}}}
Package: rt.topicembed
rt.topicembed introduction==========================This product add's new tab to the topic content type called `embed`, andpublish topic's items similar to **twitter** widget.Embed-----This is practically a simple form that allows user to configure a web widget.The code can be found in the `textarea` in the same view. An example codelooks like that:```html<script>(function() {var s = document.createElement('script');s.src = 'http://nohost/plone/events/embed.js';s.async = true;window.topic_options = (window.topic_options || []).concat([ {element_id: 'embeded_id',elements_length: 5, //how many elements to showembed_css: true, //embed rt.topicembed css stylesnew_window: true //open links in new window}]);document.body.appendChild(s);}());</script>```This code can be later embeded on the external site, the same as **twitter** widget.Output------The template for rendering the output is registered by this ZCML slug:```xml<browser:pagename="json"for="Products.ATContentTypes.interfaces.topic.IATTopic"layer="..interfaces.IBrowserLayer"class=".embed.EmbedJSON"permission="zope2.View"/>```and it's called `items_macro.pt`. It generates an HTML output similar to:```html<div><p><a href="http://nohost/plone/events/event1">Event 1 title</a></p><div>Short event description</div><img src="http://nohost/plone/events/event1/image_mini" title="Event 1 image"></div><div><p><a href="http://nohost/plone/events/event2">Event 2 title</a></p><div>Other event description</div><img src="http://nohost/plone/events/event2/image_mini" title="Event 2 image"></div>```Changelog=========1.3 (2013-12-20)----------------- Add it translations [lucabel].1.2 (2013-03-18)----------------- add image size selection [amleczko]- add example CSS [massimo]- add translations [amleczko]1.1.1 (2013-03-05)------------------- Fix JSON [amleczko]1.0 (2013-03-05)----------------- Initial release
Package: rtt-sdk
RTT Platform Python SDKThis is the formally maintained Python SDK for interacting with a Red Team Toolkit (RTT) Platform C2 server.This project is currently in BETA status and subject to significant change until finalizedThis SDK is based on models generated from the OpenAPI specification for the latest platform server. It will
continue to be updated and expanded as more features are finalized in the platform server.Additional information can be foundhereInstallation> pip install rtt-sdkExamplesCollecting current session informationimportasyncioimportrtt_sdkasyncdefmain():client=rtt_sdk.SlingshotClient()user=awaitclient.context_user(True)process=awaitclient.context_process()print(f"Running as{user.username}in{process.process_id}")asyncio.run(main())Asyncronous CodeThis SDK makes use ofasynciofor executing tasks and returning results. Almost every function exposed
on API clients is an asyncronous co-routine and requires an event loop for execution. The easiest way
to accomplish this is to define a wrapperasync main()function and use the newasyncio.run()function
to establish an event loop, and execute your code within (as seen in the examples section)Some useful primitives that can be used as part ofasync:results=awaitfoo()awaitasyncio.waitfor(foo(),timeout=10)awaitasyncio.gather([foo(),bar()])More information can be foundhereRequirementsActive RTT license and deployed RTT platform serverPython 3.7+
Package: rtui
RTUI - Robot Terminal User InterfaceA TUI forAstoria-driven robots.UsageThertuicommand can be used standalone by runningrtui.It can also be used as an SSH forced command by adding the following to theauthorized_keysfile:command="/usr/bin/rtui" ssh-ed25519 AAAA....Available Commandsarena: Get or set the current arenaexit: Leave the terminal session.help: Show available commandskill: Kill running codemetadata: Show all robot metadatamode: Get or set the current robot mode (COMP or DEV)quit: Leave the terminal session.restart: Restart running codestart: Trigger the virtual start buttontrigger: Trigger the virtual start buttonzone: Get or set the current zoneDevelopmentThis application is written in Python 3.8+ and is managed using poetry.poetryinstall
poetryrunrtuiYou will need to have an instance of Astoria running for some functionality, the docker setup is recommended for this.
Package: rtui-app
rtuirtui is ROS Terminal User InterfaceSupportPython3.8+ROS1noeticROS2humbleironicInstallNotePackage name is changed because rtui is already used by other package.If you have already installed rtui, please uninstall it and install rtui-app.Viapipx(Recommended)$ pipx install rtui-appPip$ pip3 install --user rtui-appDemodemoUsageUsage: rtui [OPTIONS] COMMAND [ARGS]...

  Terminal User Interface for ROS User

Options:
  --help  Show this message and exit.

Commands:
  action   Inspect ROS actions
  node     Inspect ROS nodes (default)
  service  Inspect ROS services
  topic    Inspect ROS topics
  type     Inspect ROS typesnode/topic/service/action/typeget a list of nodes, topics, or etc.get an information about specific node, topic, or etc.mouse operationclick link of a node, a topic, or etc.keyboard operationb/f: Trace history backward and forwardr: Once more get list of nodes, topics or etc.q: Terminate app
Package: rtvamp
rtvampPython bindings of Vamp plugin host for real-time audio feature analysis.API documentation PythonAPI documentation C++ExamplesInstallationInstall the latest version from PyPI:$pipinstallrtvampSimple exampleUsinglibrosato read an audio file and thespectral roll-off pluginfor analysis:>>>importrtvamp>>>importlibrosa>>>rtvamp.list_plugins()['example-plugin:rms','example-plugin:spectralrolloff']>>>rtvamp.get_plugin_metadata("example-plugin:spectralrolloff")PluginMetadata(identifier='spectralrolloff',name='Spectral roll-off',description='',maker='LB',copyright='MIT',plugin_version=1,input_domain='frequency',parameter_descriptors=[{'identifier':'rolloff','name':'Roll-off factor','description':'Some random parameter','unit':'','default_value':0.8999999761581421,'min_value':0.0,'max_value':1.0,'quantize_step':None,'value_names':[]}],output_descriptors=[{'identifier':'frequency','name':'Roll-off frequency','description':'Frequency below which n% of the total energy is concentrated','unit':'Hz','bin_count':1,'bin_names':[],'has_known_extents':False,'min_value':0.0,'max_value':0.0,'quantize_step':None}])>>>y,sr=librosa.load(librosa.ex("trumpet"))>>>t_rolloff,rolloff=rtvamp.compute_features(...y,sr,...plugin="example-plugin:spectralrolloff",...blocksize=256,...parameter={"rolloff":0.5},...)>>>rolloffarray([[1291.992188,1291.992188,1722.656250,...,5684.765625,5598.632812,6459.960938]],dtype=float32)
Package: rt.vuvuzela
MotivationThe Italian participation at the 2010 South African world cup whose a complete
disaster and watching our beloved team was a nightmare.While watching our last at the office, in order to survive to this shame,
I started aBDDpackage that would inject avuvuzelaon a Plone site.In order to share my pain I then decided to publish this package.InstallationAdd to your buildout the following code:[instance]
...
eggs =
  ...
  rt.vuvuzela
  ...

# Not required for Plone >= 3.3
zcml =
  ...
  rt.vuvuzela
  ...TodoAdd:a portleta viewletHow to use itCome on man! Are you sure?Ok, if you are brave enough just add@@vuvuzelato the url of your Plone site, pointing to a url like thishttp://localhost:8080/Plone/@@vuvuzelaForgive me, please :)BDD: Beer Driven Development
Package: rtwo
rtwo 0.5.25
A unified interface into multiple cloud providers.To install use pip install git+git://git@github.com:iPlantCollaborativeOpenSource/rtwo.gitrtwoA unified interface into multiple cloud providers.Built on top of Apache libcloud with support for modern OpenStack. Also supports legacy Eucalyptus 2.x and AWS.InstallpipinstallrtwoOr from sourcepipinstall-egit://github.com/cyverse/rtwo#egg=rtwoUseIn[1]:importrtwoIn[2]:fromrtwo.providerimportOSProviderIn[3]:fromrtwo.identityimportOSIdentityIn[4]:fromrtwo.driverimportOSDriverIn[5]:fromrtwo.accounts.openstackimportAccountDriverIn[6]:osp=OSProvider()In[7]:ad=AccountDriver()In[8]:ad.create_account("awesomeo")Out[8]:(<User{u'email':u'awesomeo@iplantcollaborative.org',u'tenantId':u'97dfaaebb0d943baa0cfa7cbd3bf24d5',u'enabled':True,u'name':u'awesomeo',u'id':u'3d3ca254e7054fdcaa54f473e4d5b59f'}>,'yourpassword',<Tenant{u'enabled':True,u'description':None,u'name':u'awesomeo',u'id':u'97dfaaebb0d943baa0cfa7cbd3bf24d5'}>)In[9]:osi=OSIdentity(osp,key=OPENSTACK_ADMIN_KEY,secret=OPENSTACK_ADMIN_SECRET,user="awesomeo",auth_url="http://openstack-server.org:port/v2.0",password=ad.hashpass("awesomeo"),region_name="ValhallaRegion",ex_tenant_name="awesomeo",username="awesomeo")In[19]:osdriver=OSDriver(osp,osi)In[11]:sizes=osdriver.list_sizes()In[12]:machines=osdriver.list_machines()In[13]:osdriver.create_instance(name="Lame.",image=machines[-1],size=sizes[1])Out[13]:<class'rtwo.instance.OSInstance'> {'name': 'Lame.', 'ip': None, 'machine': {'alias': '7819f88b-b335-449d-b17f-ed3af350c918', 'provider': 'OpenStack', 'id': '7819f88b-b335-449d-b17f-ed3af350c918', 'name': 'Ubuntu12.04NoGui4GB64-bitbare'}, 'alias': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'provider': 'OpenStack', 'id': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'size': {'alias': '2', 'bandwidth': None, 'disk': 10, 'name': 'm1.small', 'price': 0.0, 'ram': 2048, 'id': 'm1.small', 'cpu': 1}}In[14]:osdriver.list_instances()Out[14]:[<class'rtwo.instance.OSInstance'> {'name': 'Lame.', 'ip': None, 'machine': {'alias': '7819f88b-b335-449d-b17f-ed3af350c918', 'provider': 'OpenStack', 'id': '7819f88b-b335-449d-b17f-ed3af350c918', 'name': 'Ubuntu12.04NoGui4GB64-bitbare'}, 'alias': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'provider': 'OpenStack', 'id': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'size': {'alias': '2', 'bandwidth': None, 'disk': 10, 'name': 'm1.small', 'price': 0.0, 'ram': 2048, 'id': 'm1.small', 'cpu': 1}}]LicenseSee LICENSE file.For more information, please see:https://github.com/iPlantCollaborativeOpenSource/rtwo
Package: rtxpy
RTXpyRay tracing using CUDA, accessible from Python.Hardware requirementsNvidia Maxwell GPU or newerNvidia driver version:456.71 or newer for Windows455.28 or newer for LinuxInstallationpip install rtxpyInstallation from sourceRequires CMake 3.10 or higher to build.To install RTXpy from source usepip install -ve .cupyis an optional runtime dependency. If you know the version of the CUDA
toolkit you have installed, which can be obtained by runningnvcc --version,
you can install the appropriatecupywheel. For example, for CUDA toolkit
11.2 usepip install cupy-cuda112To run testspip install -ve .[tests]
pytest -v rtxpy/tests
Package: rt.zestreleaser.pyflakes
This is a plugin forzest.releaserfor checking your code againstpyflakesbefore
making a new release of your code.It will help you keeping your code clean, but it willnot forceyou (as a commit hook will be).AuthorsThis product was developed by RedTurtle Technology team.Changelog0.1.1 (2014-04-15)Nothing changed yet.0.1.0 (2014-04-15)Initial release
Package: rt.zestreleaser.pypilocal
IntroductionThis is a plugin forzest.releaserfor being able to automatically copy releases of your products
to a local directory.This can be useful in some special customer environments, for example behind strong firewall and network
policies, where reaching an external pypi repository is not simple.How to useYou must configure your~/.pypircfile, adding to it a configuration like the one that follow:[rt.zestreleaser.pypilocal]
pypi-local = ../../pypi-localIn this example next time you will run thefullreleaseutility, a folder namedpypi-localwill be
searched two level above the current working directory.In a commonbuildoutenvironment this is a normal situation:buildout-directory
         |
        ...
         |_ pypi-local
        ...
          \_ src
              |
             ...
               \_ your.packageIt this way thepypi-localfolder will be looked in the buildout directory root.You can also provide multiple path, or system absolute paths:[rt.zestreleaser.pypilocal]
pypi-local = ../../pypi-local
global = /opt/global-pypiFor every found match,zest.releaserwill ask to you if copy the release in the folder:....
Register and upload to pypi (y/N)?
Register and upload to plone.org (Y/n)? n
Copy egg to folder /Users/keul/buildout/test/pypi-local (Y/n)? Y
Copy egg to folder /opt/global-pypi (Y/n)?AuthorsThis product was developed by RedTurtle Technology team.Changelog0.2 (2022-12-22)Python3 support.
[cekk]0.1 (2013-01-30)Initial release
[keul]
Package: ruaccent
RUAccentRUAccent - это библиотека для автоматической расстановки ударений на русском языке.УстановкаС помощью pippip install ruaccentС помощью GITpip install git+https://github.com/Den4ikAI/ruaccent.gitПараметры работыload(omograph_model_size='big_poetry', use_dictionary=True, custom_dict={})На данный момент доступно 6 моделей.big(рекомендуется к использованию),mediumиsmall. Рекомендуются к использованию модели версииpoetry. Их названияbig_poetry,medium_poetry,small_poetry.Модельbigимеет 178 миллионов параметров,medium85 миллионов, аsmall12 миллионовПеременнаяuse_dictionaryотвечает за загрузку всего словаря (требуется больше ОЗУ), иначе все ударения расставляет нейросеть.Функцияcustom_dictотвечает за добавление своих вариантов ударений в словарь. Формат такой:{'слово': 'сл+ово с удар+ением'}Для работы требуется 5 гигабайт ОЗУПример использованияfromruaccentimportRUAccentaccentizer=RUAccent()accentizer.load(omograph_model_size='big_poetry',use_dictionary=True)text='на двери висит замок.'print(accentizer.process_all(text))text='ежик нашел в лесу ягоды.'print(accentizer.process_yo(text))ДатасетыДатасетсобранный сНКРЯДатасетиспользовавшийся для обучения моделей акцентуатора (версия только с прозой)Датасетиспользовавшийся для обучения моделей акцентуатора (версия проза + поэзия)Файлы моделей и словарей располагаются поссылке. Мы будем признательны фидбеку наtelegram аккаунт
Package: ru-accent-poet
ru_accent_poetThis is a tool for putting stress marks in russian poetic textsInstallationpip install ru-accent-poetUsage exampleTo put stress marks in text>>> from ru_accent_poet import accent_line
>>> accent_line('Это инструмент для разметки ударений')
Э'то инструме'нт для разме'тки ударе'нийTo put stress marks in files>>> ru_accent_poet.write_file(['my_file_1.txt'])This will return new file called
"my_file.accented.txt" with the same text
where stress marks are put
Package: ru-accent-poetic-text
ru_accent_poetThis is a tool for putting stress marks in russian poetic textsInstallationpip install ru_accent_poetUsage exampleTo put stress marks in text>>> from ru_accent_poet import ru_accent
>>> ru_accent.accent_line('Р­С‚Рѕ РёРЅСЃС‚СЂСѓРјРµРЅС‚ РґР»СЏ СЂР°Р·РјРµС‚РєРё СѓРґР°СЂРµРЅРёР№')
Р­'С‚Рѕ РёРЅСЃС‚СЂСѓРјРµ'РЅС‚ РґР»СЏ СЂР°Р·РјРµ'С‚РєРё СѓРґР°СЂРµ'РЅРёР№To put stress marks in files>>> ru_accent.write_file(['my_file_1.txt'])This will return new file called
"my_file.accented.txt" with the same text
where stress marks are put
Package: ruamel.browser.client
zmq based client to talk with ruamel.browser.serverExample from commandline:rbc init abc selenium
rbc br abc get http://stackoverflow.com
rbc br abc find store sbox css "#search > input"
rbc br abc elem sbox keys 'ruamel.yaml
'
sleep 1
rbc br abc find css ".js-search-results > div:first-child h3"
rbc br abc innerYes that is a newline within the quotes. Thestore sboxandelem sboxare not
really necessary here.You have to haveruamel.browser.server.seleniuminstalled, and started the server
withrbs
Package: ruamel.ewmh
﻿====
EWMH
====EWMH (Extended Window Manager Hints) can be used to retrieve and set
information about windows on Linux systems. Is does this by calling and
parsing the output from programs likewmctrl.Examplefrom subprocess import Popen
from ruamel.ewmh import ExtendedWindowManagerHints as EWMH
Popen(['xclock', '-name', 'test_xclock'])
# there can be more than one window matching the title
# therfore .by_title() returns a list
clk = EWMH().by_title('test_xclock')[0]
clk.resize_and_move(200, 200, 300, 600)Why not use thewmctrlpackage?Before writing this library I tried Antonio Cuni’swmctrlpackage. That
library looks to be abandoned (at least from April 2013 until Oct 2014).I startedewmhbecause I encountered performance problems and irregular
exceptions that I could not, initially fix. When I noticed that these problems
were a result of design decisions, were associated with features I did not
need (e.g. retrieving WM_CLASS), and because I needed something more minimal,
but working, I started from scratch.wmctrloutput information did not get cached and getting the
information was horrible slow in the first place. If your machine has M
windows open and you wanted the state for N of those windows, this caused a
total of N * (M+1) invocations of external programs throughcommands.getoutput. With 200+ open windows on my system, getting
information took several secondsfor each windowthat I was interested
in.commands.getoutput()is used, but that has beendeprecated since 2008, should have usedsubprocess.checkout_output()instead.the output ofgetoutput()was not checked for errors.os.system()was used resulting in an unnecessary shell invocation.thexpropprogram was calledfor every window open on the system,
although, often, none of that information is used.to activate windows the package callswmctrlwithwmctrl-id-a<ID>,
I was not sure what thedthere is supposed to do, without it the command
has the same effect/output.After trying to patching some of these issues, and testing, exceptions would happen which forced me to abandon it, as it was less time consuming to start from scratch. With the knowledge gained writingemwhI found that the wmctrl package currently at least doesn’t handle window classes with spaces in them, nor does a program survive calling the library when there happens to be awindow without a titlesomewhere on your desktop.Most of the original tests included with thewmctrllibrary, work with only
minor adjustments (which seem to have to do with my top-of-the-window menu)
and a wrapper class inemwh. Moving fromwmctrltoewmhshould
therefore be easy.
Package: ruamel.nss
the standard librarypwd,grpandspwdare hard wired
to use/etc/passwd,/etc/groupand/etc/shadowrespectively.That makes them useless for managing these files when they reside somewhere else,
which is e.g. the case when usinglibnss.This library reimplements the functionality by creating three classes that default
to opening the files under/etc, but which can be given explicit paths.The original module level routines are now methods on the instances that return named tuples
with the fieldnames being the same as those from the stdlib modules.This library uses the new (corrected) names for the fields. In particularsp_namepandsp_pwdpas used in Python 3 instead of the versions without trailingpfrom 2.7
Package: ruamel.pdfdouble
this package provides thepdfdblcommand:pdfdbl scan dir1 dir2This will walk down the directories provided as argument and for the PDF
files found, create a hash based on (in order):- metadata if unique
- images, if the number of images matches the number of pages
- textThis assumes thatpdfinfo,pdfimagesandpdftotext`from thepoppler-utilspackage are avaialable.A “database” is build up in~/.config/pdfdbl/pdf.lstagainst which further scans are tested.Removing markingsIn ruamel/pdfdouble/pdfdouble.py there are two methods that can be enhanced
to filter out markings in the PDF that make them less unique and make
virtually the same files to have different hashes.For text the methodPdfData.filter_for_markingshould be extended to remove
and markings from the string that is its arguments and return the result.For scanned images the methodPdfData.process_image_and_updateneeds to be
enhanced, e.g. by cutting off the images bottom and top X lines, and
by removing any gray background text by setting all black pixels to white.
This function needs to update the hash passed in using the.update()method
passing in the filtered data.RestrictionsThe current “database” cannot handle paths that contain newlinesThis utility is currently Python 2.7 only.
Package: ruamel.rmoldkernels
Thermoldkernelsutility removes old. no longer used, kernels
from on Ubuntu systems, thus freeing up space on/boot(or/).The currently active kernel is kept, as is the last one installed
(numeric wise), normally that would be the one that becomes active on
a reboot. Any ‘older’ or intermediate kernels (those that got installed after
a reboot except for the last one) will be deleted.If ran as normal user, you will be asked for asudopassword.The commandline handed toapt-getfor removal is echoed, and you
do have to confirm the removal.You can specify a number of extra kernels to keep, these are counted
from the last and do include the last one if that is not the active one.It probably works on Debian as well, but that has not been tested as
of Nov. 2013.Report bugs athttps://bitbucket.org/ruamel/rmoldkernels/issuesand checkout repositories athttps://bitbucket.org/ruamel/rmoldkernels
Package: ruamel.showoutput
show_ouput works like check_output, but showing progressThere is a plethora of ways of calling an external
program in Python. For longer running commands you want
to be able to see what is happening, sosubprocess.check_output()is not really usable. Falling back toos.system()with
the need to' '.join()the command is not that useful
as you don’t have an exit statusshow_output()works likecheck_output()(including theinput=keyword parameter), but will display the progress tostdout.  The total output is returned to the caller, or passed
back in the Exceptionsoutputattribute, raised if the return code
from the calling process is non-zero.If verbose argument is < 0 then no output is shown, but the result
still returned