Saravanan666/pypi-org huggingface dataset:
Package: rubpy
Rubika API Framework for PythonHomepage•Documentation•Releases•NewsRubpyElegant, modern and asynchronous Rubika API framework in Python for users and botsAsync AccountsfromrubpyimportClient,filters,utilsfromrubpy.typesimportUpdatesbot=Client(name='rubpy')@bot.on_message_updates(filters.text)asyncdefupdates(update:Updates):print(update)awaitupdate.reply(utils.Code('hello')+utils.Underline('from')+utils.Bold('rubpy'))bot.run()Async Another Example:fromrubpyimportClientimportasyncioasyncdefmain():asyncwithClient(name='rubpy')asbot:result=awaitbot.send_message('me','`hello` __from__ **rubpy**')print(result)asyncio.run(main())Sync AccountsfromrubpyimportClientbot=Client('rubpy')@bot.on_message_updates()defupdates(message):message.reply('`hello` __from__ **rubpy**')bot.run()Sync Another Example:fromrubpyimportClientwithClient(name='rubpy')asclient:result=client.send_message('me','`hello` __from__ **rubpy**')print(result)Rubpyis a modern, elegant and asynchronous framework. It enables you to easily interact with the main Rubika API through a user account (custom client) or a bot
identity (bot API alternative) using Python.Key FeaturesReady: Install Rubpy with pip and start building your applications right away.Easy: Makes the Rubika API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up by pycryptodome, a high-performance cryptography library written in C.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Rubika's API to execute any official client action and more.Installingpip3install-Urubpy
Package: rubrical
rubricalA CLI to encourage (😅) people to update their dependencies!raison d'etreScenario:A team publishes an update to a new library that needs to be adopted.(New feature, breaking changes, security fixes, etc)Givenyour company has a microservice architecture(or >3repositories to update across >2teams )Thenyou go to each team and beg/bargin/plead for them to update their packagesYou can (should!) use tools likerenovateto automate dependency updates.  But it's easy to lose track of updates especially with particularly technologies (hi JS/TS!) or busy teams.rubricalbreaks the cycle by putting a check inside your CI/CD pipelines. (Golden pipelines or shared workflows are highly recommended!)  Now teams have a tool to automatically (automagically!) communicated when a dependency needs to be upgraded!For more information, checkout thedocumentation!FeaturesSet warning (notify users their dependency will be out of date soon) and block (exit with error code) levels.Supports different languages (Python, Go, Node.js, and Jsonnet) and package manager formats (e.g. pip, poetry).Post results to Github/GHE PRs.
Package: rubrik-cdm
Rubrik SDK for PythonThis project provides a Python package that makes it easy to interact with the Rubrik CDM API.The SDK has been tested against Python 2.7.6 and Python 3.6.4.InstallationInstall from pip:pip install rubrik_cdmInstall from source:$ git clone https://github.com/rubrik-devops/rubrik-sdk-for-python
$ cd rubrik-sdk-for-python
$ python setup.py installQuick StartQuick Start GuideDocumentationSDK DocumentationRubrik API DocumentationExampleBy default, the Rubrik SDK will attempt to read the the Rubrik Cluster credentials from the following environment variables:rubrik_cdm_node_iprubrik_cdm_usernamerubrik_cdm_passwordrubrik_cdm_tokenNote: Therubrik_cdm_usernameandrubrik_cdm_passwordmust be supplied together and may not be provided if therubrik_cdm_tokenvariable is presentimportrubrik_cdmrubrik=rubrik_cdm.Connect()cluster_version=rubrik.cluster_version()print(cluster_version)Additional LinksVIDEO: Getting Start with the Rubrik SDK for Python
Package: rubti-beancount-import
Beancount ImporterThis repository containsbeancountimporters to automatically import banking data from the following sources:Sparkasse GermanyChecking accountsMasterCardBBVAchecking accounts in Excel .xlsx formatEdenred Spainbonus cardsThe majority of the importers have regression tests in place which are built with thebeancount regression test plugin.Importing transactionsIn order to import transactions from german Sparkasse, you need to download your transactions in CSV format.Log in to your online banking account and select the bank account that you want to import data fromSelect the time span of interest to filter transactionsIn case of credit card transactions there is only the optionCSV-Export. Select this option and download the fileOn checking accounts you may choose the format. The importer expects theCSV-CAMT V2format. Download your transactions in this format
Package: rubus-cli
Rubus ClientThis project contains a command-line interface program to interact
with a deployed instance ofrubus-api.Commands overviewAll the commands are grouped by functionalities. Here is a quick overview of
how they are structured:rubusadmin: these commands require administrative rightsauthentication: Log in and manage your userdevice: manage devices (turn on/off, deployment, ...)Configuring the serverBy default, Rubus will try to reach a running instance of Rubus API on
localhost. You can configure another address with theRUBUS_API_URLenvironment variable.Authentication systemExcepted for the login, all the other commands require to be authenticated.
Rubus API works with JWT and will return you one on a successful login. Since
Rubus CLI is quite minimalist, there is no persistence, and you will have to
take advantage of your shell capabilities.In other words, Rubus CLI will display the JWT, and prompt you to save it as an
environment variable (i.e.RUBUS_SESSION). The token is valid as long as your
user has not reach his expiration time (if any).You can either set it once and for good, for example in your.bashrc, or just
set it in your current shell. Closing the shell will operate as a log out.
However, keep in mind that it may be accessible through thebash_history, in
case you are on a public computer.
Package: ruby
RUBY: Universal Rule-Based Machine Translation toolkitA tool for translating text from source grammar to target grammar (context-free) with corresponding dictionary.Why not translate it yourself when Google Translate cannot satisfy you❓⚙️ Installationpipinstallruby✨ What is good about RUBY?Rule-based, deterministic translation; unlike Google Translate - giving only 1 non-deterministic resultUsing NLTK parsing interface and is built on top of already-efficient NLTK backendCan be used for data augmentation📖 UsagefromrubyimportTranslator# Source sentence to be translatedsrc_sentences=["I love good dogs","I hate bad dogs"]# Source grammar in nltk parsing stylesrc_grammar="""S -> NP VPNP -> PRPVP -> VB NPNP -> JJ NNPRP -> 'I'VB -> 'love' | 'hate'JJ -> 'good' | 'bad'NN -> 'dogs'"""# Some edit within source grammar to target grammarsrc_to_target_grammar={"NP -> JJ NN":"NP -> NN JJ"# in Vietnamese NN goes before JJ}# Word-by-word dictionary from source language to target languageen_to_vi_dict={"I":"tôi","love":"yêu","hate":"ghét","dogs":"những chú_chó","good":"ngoan","bad":"hư"}translator=Translator(src_grammar=src_grammar,src_to_tgt_grammar=src_to_target_grammar,src_to_tgt_dictionary=en_to_vi_dict)trans_sentences=translator.translate(src_sentences)# This should returns ['tôi yêu những chú_chó ngoan', 'tôi ghét những chú_chó hư']⚖️ LicenseThis repository is using the Apache 2.0 license that is listed in the repo. Please take a look atLICENSEas you wish.✍️ BibTeXIf you wish to cite the framework feel free to use this (but only if you loved it 😊):@misc{phat2020ruby,author={Truong-Phat Nguyen},title={RUBY: Universal Rule-Based Machine Translation NLP toolkit},year={2020},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/nlp-ruby/ruby}},}Contributors:Patrick Phat Nguyen
Package: ruby1.9.1-dev
Real Python Feed ReaderThe Real Python Feed Reader is a basicweb feedreader that can download the latest Real Python tutorials from theReal Python feed.For more information see the tutorialHow to Publish an Open-Source Python Package to PyPIon Real Python.InstallationYou can install the Real Python Feed Reader fromPyPI:pip install realpython-readerThe reader is supported on Python 2.7, as well as Python 3.4 and above.How to useThe Real Python Feed Reader is a command line application, namedrealpython. To see a list of thelatest Real Python tutorialssimply call the program:$ realpython
The latest tutorials from Real Python (https://realpython.com/)
 0 How to Publish an Open-Source Python Package to PyPI
 1 Python "while" Loops (Indefinite Iteration)
 2 Writing Comments in Python (Guide)
 3 Setting Up Python for Machine Learning on Windows
 4 Python Community Interview With Michael Kennedy
 5 Practical Text Classification With Python and Keras
 6 Getting Started With Testing in Python
 7 Python, Boto3, and AWS S3: Demystified
 8 Python's range() Function (Guide)
 9 Python Community Interview With Mike Grouchy
10 How to Round Numbers in Python
11 Building and Documenting Python REST APIs With Flask and Connexion – Part 2
12 Splitting, Concatenating, and Joining Strings in Python
13 Image Segmentation Using Color Spaces in OpenCV + Python
14 Python Community Interview With Mahdi Yusuf
15 Absolute vs Relative Imports in Python
16 Top 10 Must-Watch PyCon Talks
17 Logging in Python
18 The Best Python Books
19 Conditional Statements in PythonTo read one particular tutorial, call the program with the numerical ID of the tutorial as a parameter:$ realpython 0
# How to Publish an Open-Source Python Package to PyPI

Python is famous for coming with batteries included. Sophisticated
capabilities are available in the standard library. You can find modules for
working with sockets, parsing CSV, JSON, and XML files, and working with
files and file paths.

However great the packages included with Python are, there are many
fantastic projects available outside the standard library. These are most
often hosted at the Python Packaging Index (PyPI), historically known as the
Cheese Shop. At PyPI, you can find everything from Hello World to advanced
deep learning libraries.

[... The full text of the article ...]You can also call the Real Python Feed Reader in your own Python code, by importing from thereaderpackage:>>> from reader import feed
>>> feed.get_titles()
['How to Publish an Open-Source Python Package to PyPI', ...]
Package: rubyenv
#rubyenvThis tool is inspired by [nodeenv](https://github.com/ekalinin/nodeenv) and allows you to install ruby into your virtualenvs.Unlike nodeenv, rubyenvonlyworks inside virtualenvs.## Install` $ virtualenv myenv $ source myenv/bin/activate $ pip install rubyenv $ rubyenv install 2.2.2 `## Example` $ mkdir frontend $ echo 'use_env frontend' >frontenv/.env$ cd frontend $ pip install nodeenv rubyenv $ nodeenv-p--prebuilt$ npm upgrade-gnpm $ node--version&& npm--version$ npm install-gyo bowergrunt-cligenerator-angular$ rubyenv install 2.2.2 $ ruby--version&& gem--version$ gem install compass $ yo angular $ grunt serve `
Package: rubymarshal
RubyMarshalRead and write Ruby-marshalled data.
Only basics Ruby data types can be directly read and written, but you can use any custom Python and Ruby types:float,bool,int,str(mapped torubymarshal.classes.RubyStringif dumped with instance variables),nil(mapped toNonein Python),array(mapped tolist),hash(mapped todict),symbols and other classes are mapped to specific Python classes.InstallationpipinstallrubymarshalUsagefromrubymarshal.readerimportloads,loadfromrubymarshal.writerimportwrites,writewithopen('my_file','rb')asfd:content=load(fd)withopen('my_file','wb')asfd:write(fd,my_object)loads(b"\x04\bi\xfe\x00\xff")writes(-256)You can map custom Ruby types to Python ones:fromrubymarshal.readerimportloadsfromrubymarshal.classesimportRubyObject,registryclassDomainError(RubyObject):ruby_class_name="Math::DomainError"registry.register(DomainError)loads(b'\x04\x08c\x16Math::DomainError')You can use custom registries instead of the global one:fromrubymarshal.readerimportloadsfromrubymarshal.classesimportRubyObject,ClassRegistryclassDomainError(RubyObject):ruby_class_name="Math::DomainError"registry=ClassRegistry()registry.register(DomainError)loads(b'\x04\x08c\x16Math::DomainError',registry=registry)You can use Ruby's symbols:fromrubymarshal.readerimportloadsfromrubymarshal.writerimportwritesfromrubymarshal.classesimportSymbolx=Symbol("test")dump=writes(Symbol("test"))y=loads(dump)assertyisxThe default Writer class is customizable to write custom Python classes:fromrubymarshal.writerimportwrites,Writerfromrubymarshal.classesimportSymbolclassConstant:def__init__(self,name):self.name=nameclassConstantWriter(Writer):defwrite_python_object(self,obj):ifisinstance(obj,Constant):returnself.write(Symbol(obj.name))super().write_python_object(obj)dump=writes([Constant("test")],cls=ConstantWriter)print(dump)InfosCode is on github:https://github.com/d9pouces/RubyMarshalDocumentation is on readthedocs:http://rubymarshal.readthedocs.org/en/latest/Tests are on travis-ci:https://travis-ci.org/d9pouces/RubyMarshal
Package: rubysubs
Migaku rubysubsTool/library to add ruby text to Advanced SubStation Alpha (.ass) subtitles using the same syntax as in Anki or the Migaku Anki plugins.rubysubs is licensed under LGPLv3. See LICENSE for further detail.InstallationRun the following to install:pip install rubysubsFor binary releases refer to thereleases page.Usage as toolrubysubs <source subtitle> <output subtitle> [<tag parser> [arg0] [arg1] ...]Source subtilte: Path to source subtitle fileOutput subtilte: Path to output subtitle fileTag parser (optional):ruby (default): Ruby square bracket tags, no argumentsja: Migaku Japanese tag parserarg0: mode (furigana/kanji/kana, default: furigana)arg1: pitch highlighting (yes/no, default: yes)arg2: pitch shapes (yes/no, default: no)arg3: unknown word underlining (yes/no, default: yes)arg4: 1T word highlighting (yes/no, default: yes)Examples:rubysubs source.ass out.ass
rubysubs source_ja.ass out_ja_furigana_no_markings.ass ja furigana no no no no
rubysubs source_ja.ass out_ja_kana_all_markings.ass ja kana yes yes yes yesNotes:Style info is pulled from the style calledDefaultScaleXandScaleYare reset to 100SpacingandAngleare reset to 0Italic,UnderlineandStrikeoutare reset.Boldis supportedAlignmentis currently fixed to bottom-center withMarginVbeing consideredPlayResXandPlayResYscript info tags should be set to allow screen postion calculations. Defaults to 1920x1080No ASS tags are supportedUsage as libraryimportsysimportrubysubsfromPyQt5.QtGuiimportQGuiApplication# Required for QFontMetricsqapp=QGuiApplication(sys.argv)rubysubs.convert_sub_file('source.ass','out.ass',rubysubs.tag_parse_ruby.parse)rubysubs.convert_sub_file('source_jp.ass','out_ja.ass',rubysubs.tag_parse_migaku_ja.parse)Used librariescChardetfor subtitle file encoding detectionpysubs2for subtitle file reading/writingPyQt5for text measurements
Package: ruccent
Simple word accent setter.Pure Python, no dependencies. Based on ngram model.Trained for the Russian language, on a corpus of ~1000000 word forms, taking into account their frequency in real
texts.  Accuracy ~97-98%. Speed ~10000 words per second.fromruccentimportAccentaccenter=Accent()accenter.predict('пробойник')# -> 4You can train the model yourself for your language or corpus.fromruccentimportAccent,AccentTrain# iterable of tuple (accent position, weight/frequency, word)dataset=[(3,10,'begin'),(1,1,'happy')]train=AccentTrain()train.fit(dataset,ngram=(3,7))train.save('path/yourself.model')accenter=Accent('path/yourself.model')accenter.predict('begin')
Package: ru-center-backup
Скрипт для бэкапа всех файлов зон из DNS-Master Ру-Центра в локальную директориюУстановкаpipinstallru-center-backupИспользованиеУстановить переменные окруженияexportRUC_API=$(echo-n"<api_username>:<api_password>"|base64)exportRUC_USER="123456/NIC-D"exportRUC_PASS="qwerty"Запустить скриптru-center-backup<output_dir>Если <output_dir> не существует - программа завершится с ошибкой.
Если параметр <output_dir> опущен - файлы зон будут выведены на консоль (разделяется ;========= )
Package: rucio-jupyterlab
Rucio JupyterLab ExtensionThis is a JupyterLab extension that integrates withRucio - Scientific Data Managementto allow users to access some of Rucio's capabilities directly from the JupyterLab interface.This extension is composed of a Python package namedrucio_jupyterlabfor the server extension and a NPM package namedrucio-jupyterlabfor the frontend extension.RequirementsJupyterLab >= 3.0Rucio Server >= 1.28InstallNote: You will need NodeJS to install the extension.pipinstallrucio-jupyterlabIf you are going to run the extension in Download mode, you will also need to install libraries required by the RSE downloaders. For instance,gfal2, which is available in EPEL or conda-forge.Additionally, you need to havegrid-proxy-initorvoms-proxy-initexecutable. You can do so by installingvoms-clients-java.$aptinstallvoms-clients-java
$condainstall-cconda-forgepython-gfal2# OR$yuminstallepel-release
$yuminstallgfal2-allgfal2-pythonvoms-clients-javaRestart your JupyterLab instance afterwards to load the server extension.ConfigurationSeeCONFIGURATION.mdContributingIf you want to contribute or build the extension from source, seeCONTRIBUTING.mdQuick Setup using DockerThis repository comes with a Docker image ofjupyter/scipy-notebookinstalled with the extension.To run the image, use the following command.Replica Mode$dockerrun-d-p8888:8888\-eRUCIO_MODE=replica\-eRUCIO_WILDCARD_ENABLED=<true=1,false=0>\-eRUCIO_BASE_URL=<RuciobaseURL>\-eRUCIO_AUTH_URL=<RucioauthURL(ifany)>\-eRUCIO_DESTINATION_RSE=<destinationRSE>\-eRUCIO_DISPLAY_NAME=<instancedisplayname>\-eRUCIO_NAME=<instancename>\-eRUCIO_SITE_NAME=ROAMING\-eRUCIO_VO=def\-eRUCIO_PATH_BEGINS_AT=<pathbeginsat>\-eRUCIO_RSE_MOUNT_PATH=<mountpath>\-v<hostfolder>:<containerfolder>\rucio/jupyterlab:latest<host folder>is a folder in the host that is mounted to a Rucio Storage Element via FUSE.<container folder>is a folder accessible from the notebook that is mounted to the host folder.Download Mode$dockerrun-d-p8888:8888\-eRUCIO_MODE=download\-eRUCIO_WILDCARD_ENABLED=<true=1,false=0>\-eRUCIO_BASE_URL=<RuciobaseURL>\-eRUCIO_AUTH_URL=<RucioauthURL(ifany)>\-eRUCIO_DISPLAY_NAME=<instancedisplayname>\-eRUCIO_NAME=<instancename>\-eRUCIO_SITE_NAME=ROAMING\-eRUCIO_VO=def\-eRUCIO_VOMS_ENABLED=<true=1,false=0>\-eRUCIO_VOMS_VOMSES_PATH=<pathtovomsesfile(optional)>\-eRUCIO_VOMS_CERTDIR_PATH=<pathtocertdir(optional)>\-eRUCIO_VOMS_VOMSDIR_PATH=<pathtovomsdir(optional)>\-eRUCIO_CA_CERT=/certs/rucio_ca.pem\-v<pathtoRucioCAPEMfile>:/certs/rucio_ca.pem\rucio/jupyterlab:latestFollow theconfiguration guidefor details of the parameters.TroubleshootIf you are seeing the frontend extension but it is not working, check
that the server extension is enabled:jupyterserverextensionlistIf the server extension is installed and enabled but you are not seeing
the frontend, check the frontend is installed:jupyterlabextensionlistIf it is installed, try:jupyterlabclean
jupyterlabbuild
Package: ruconceptnet
RussianConceptNetConceptNet 5.7 (Russian part) extraction scripts + fast access to relations. Note: a simple modification of the
preprocessing script allows to build a queryable graph ofany other subset of ConceptNet.PreparationsPlease see theprepare_data.shscript. We get the Russian-Russian pairs of nodes with simplegrepand build
a 3-dimensional array (source, target, relation) stored as a single sparse SciPy matrix.Usage>>> from conceptnet import ConceptNet
>>> cn = ConceptNet()
>>> cn.get_targets("алкоголь")
[('этиловый_спирт', {'Synonym'}), ('спиртной_напиток', {'Synonym'}), ('алкогольный', {'RelatedTo'}), ('алкоголик', {'RelatedTo'}), ('спирт', {'Synonym'}), ('алкоголизация', {
'RelatedTo'})]

>>> cn.get_sources("йога")
[('йоги', {'FormOf'}), ('йогу', {'FormOf'}), ('йогический', {'RelatedTo'}), ('йогою', {'FormOf'}), ('йогой', {'FormOf'}), ('йог', {'RelatedTo'}), ('йоге', {'FormOf'})]

>>> cn.check_pair("человек", "зверь")
(['DistinctFrom'], [])

>>> cn.check_pair("зверь", "человек")
([], ['DistinctFrom'])CitingPlease do not forget to cite the ConceptNet5 paper:Robyn Speer, Joshua Chin, and Catherine Havasi. 2017. "ConceptNet 5.5: An Open Multilingual Graph of General Knowledge." In proceedings of AAAI 31.Citing the repository is greatly appreciated as well, if you use this work.LicenseThe code is released under the MIT license (please see theLICENSEfile).This work includes a subset data from ConceptNet 5, which was compiled by the
Commonsense Computing Initiative. ConceptNet 5 is freely available under
the Creative Commons Attribution-ShareAlike license (CC BY SA 3.0) fromhttp://conceptnet.io.The included data was created by contributors to Commonsense Computing
projects, contributors to Wikimedia projects, DBPedia, OpenCyc, Games
with a Purpose, Princeton University's WordNet, Francis Bond's Open
Multilingual WordNet, and Jim Breen's JMDict.The complete data in ConceptNet is available under the Creative Commons Attribution-ShareAlike 4.0 license.For more details, please see"Copying and sharing ConceptNet".
Package: rudalle
ruDALL-EGenerate images from textspip install rudalle==1.1.3🤗 HF Models:ruDALL-E Malevich (XL)ruDALL-E Emojich (XL)(readmehere)ruDALL-E Surrealist (XL)ruDALL-E Kandinsky (XXL) (soon)Minimal Example:Example usage ruDALL-E Malevich (XL) with 3.5GB vRAM!Finetuning examplegeneration by ruDALLE:importruclipfromrudalle.pipelinesimportgenerate_images,show,super_resolution,cherry_pick_by_ruclipfromrudalleimportget_rudalle_model,get_tokenizer,get_vae,get_realesrganfromrudalle.utilsimportseed_everything# prepare models:device='cuda'dalle=get_rudalle_model('Malevich',pretrained=True,fp16=True,device=device)tokenizer=get_tokenizer()vae=get_vae(dwt=True).to(device)# pipeline utils:realesrgan=get_realesrgan('x2',device=device)clip,processor=ruclip.load('ruclip-vit-base-patch32-384',device=device)clip_predictor=ruclip.Predictor(clip,processor,device,bs=8)text='радуга на фоне ночного города'seed_everything(42)pil_images=[]scores=[]fortop_k,top_p,images_numin[(2048,0.995,24),]:_pil_images,_scores=generate_images(text,tokenizer,dalle,vae,top_k=top_k,images_num=images_num,bs=8,top_p=top_p)pil_images+=_pil_imagesscores+=_scoresshow(pil_images,6)auto cherry-pick by ruCLIP:top_images,clip_scores=cherry_pick_by_ruclip(pil_images,text,clip_predictor,count=6)show(top_images,3)super resolution:sr_images=super_resolution(top_images,realesrgan)show(sr_images,3)text,seed='красивая тян из аниме',6955Image Promptseejupyters/ruDALLE-image-prompts-A100.ipynbtext,seed='Храм Василия Блаженного',42skyes=[red_sky,sunny_sky,cloudy_sky,night_sky]VideoDALL-E | ruCogVideoby@cene555Video generation exampleFinetuning exampleAspect ratio images-->NEW<--Kandinsky 12BRequest access:Hereроботы акварелью в стиле ван гогаFID = 15.4 (COCO Valid)🚀 Contributors 🚀@bessharedgreat idea and realization with IDWTfor decoding images with higher quality 512x512! 😈💪 thanks a lot for your constructive advices, appreciate it@neverixthanks a lot for contributing for speed up of inference@Igor Pavlovtrained model and prepared code withsuper-resolution@oriBetelgeusethanks a lot for easy API of generation using image prompt@Alex Wortegacreated first FREE version colab notebook with fine-tuningruDALL-E Malevich (XL)on sneakers domain 💪@Anton LozhkovIntegrated toHuggingface SpaceswithGradio, seehereSupported bySocial Media