Saravanan666/pypi-org huggingface dataset:
Package: roma-console
ConsoleThis package provides necessary tools for printing text (with fancy styles
if specified) in terminal.
To use, import an instance ofConsoleclass byfromconsoleimportconsoleText With Fancy StylesFancy texts are produced based ontermcolorpackage.
The usage of this package is similar totermcolor:console.write_line('Hello World!',color='yellow')However,consoleprovides another way to print text base on a simplesyntax,
which is more flexible and powerful:console.write_line('#{Hello}{red}#{World}{blue}{bold}!')Here, the syntax is#{<text>}[{<text_color>}][<text_highlight>}][{<attributes_1>}]...[{<attributes_N>}].Example of other fancy usages:console.split('#{-}{red}#{-}{yellow}#{-}{blue}')
Package: romaji
romajiromajiis a converter library to romanize Japanese hiragana/katakana string by standard and IME typing style.
Even thoughpykakasialready has provided the same functions, and returns only one romanized string.
However, there exists several different romanization systems, so one hiragana/katakana string has so many romanize string.
For example,“ちゃ”can be romanized as“cha”,“tya”,“chixya”,“tixya”,“chilya”, or“tilya”.romajiprovides romanized strings as many as possible.If an input string contained non hiragana/katakana characters (includes kanji),romajireturn the characters as same as the input.
For example,romajiconverts the input“お茶の水”to“o茶no水”.
If there is a need to romanize the whole string which includes kanji,romajican romaize the readings in the tokens whichJanometokenizer provides.romajistrongly recommends to use withJanome.The mapping from hiragana/katakana to romaji is based on common IME’s system to input Japanese.
Therefor,romajidoes not directly implement the standard system like Hepburn, Nihon-shiki or Kunrei-shiki, but includes them.Installation$pipinstallromajiUsage>>>importromaji>>>romaji.transliterate('僕ドラえもん')['僕doraemon','僕doraemon\'','僕doraemonn']>>>romaji.transliterate('諸行無常')[]
Package: romajitable
RomajiTableRomajiTable - This is a util to convert english or maybe translited word to kata (Hiragana, Katakana)
Lib for Python 3+InstallingpipinstallromajitableUpdatepipinstall--upgraderomajitableExampleimportromajitableword="My name is Mikhail"result=romajitable.to_kana(word)hiraganed=result.hiragana# г‚Ђг‚†гѓ»гЃЄг‚Ѓгѓ»гЃ„гЃ™гѓ»гЃїгЃЏгЃЇгЃ„г‚‹katakaned=result.katakana# гѓ гѓ¦гѓ»гѓЉгѓЎгѓ»г‚¤г‚№гѓ»гѓџг‚ЇгѓЏг‚¤гѓ«
Package: roman
romanSmall helper library to convert arabic to roman numerals.There are two ways to use this library.Importing it into your applicationimportroman# to romannumber=int(input('> '))# 10print(roman.toRoman(number))# from romannumber=input('> ')# Xprint(roman.fromRoman(number))romanCLI command~$roman972CMLXXII# use the -r/--reverse to convert Roman numerals~$roman-rCMLXXII972# case insensitive~$roman-rcMlxxii972Change log4.1 (2023-05-26)Change license to the Zope Public License (ZPL) version 2.1
(#15)4.0 (2023-02-28)Add support for Python 3.10, 3.11.Drop support for Python 2.7, 3.5, 3.6.3.3 (2020-07-12)added support for Python 3.9added CLI commandromanwith-r/--reverseto convert back from Romanadded simple usage instructions3.2 (2019-04-14)expanded test coverageAdded support for 0 -> N
(seehttps://en.wikipedia.org/wiki/Roman_numerals#Zero)Added support for Python 3.83.1 (2018-10-24)Added support for Python 3.7.3.0 (2018-05-28)Added support for Python 3.5, 3.6 and PyPy3.Dropped support for Python 2.6 and 3.3.2.0.0 (2013-02-25)Added Python 3.3 and PyPy support.Added tests.1.4.0 (2009-07-23)Initial PyPI release.
Package: romanclass
A "Roman" object is stored in the computer as a binary integer,but it is displayed in Roman numerals.(In technical terms, it is a subset of the built-in class int,with a _str_() method which returns a Roman numeral string.)[see PEP 313 for the inspiration]This module has .toRoman() and .fromRoman() methods compatible with Mark Pilgrim's roman.py module, but has a larger range, a more forgiving parser, and allows construction of first class Roman objects.Roman objects act very much like the built-in Decimal objects in Python,they can be added, subtracted, multiplied, or divided and the result will beanother object of the same class.So a programmer can say:>>>import romanclass as roman>>>two = roman.Roman(2)>>>five = roman.Roman('V')>>>print (two+five)and the computer will print:VIIThis module uses unicode characters to support numbers in the range 0<=n<600000,and has an optional .toUnicodeRoman() method which will output true unicodecharacter points for I V X L C D M (rather than their look-alike ASCII values)and will output the points for I thru XII as single unicode code points.The .toRoman() method [and the str() function] will output ASCII compatiblestrings for values <= 3999.The string "Nulla" [Latin for "nothing"] will be output for a zero value.Out of range values will raise romanclass.OutOfRangeErrorBadly formatted Roman numeral input strings will raise romanclass.InvalidRomanNumeralError in .fromRoman() or when initializing a Roman object.CaesarCalc.py, A simple four-function Roman calculator is included as a test/demo.
Package: romanicize
This is a utility module for converting from and to Roman numerals. It supports
numbers upto 3,999,999, using thevinculumto denote multiplication by1000. (i.e.:Xis10whileX̅is10000.) The only letter
that this does not apply to isI, asMalready existed for1000.Special credit goes to Paul M. Winkler, for the original basis for a large
chunk of the core converter functions as written in thePython Cookbook.Quick StartInstall the package:pip3 install romanicizeOnce installed, a command line utility is available to your shell:$ romanicize 2021
MMXXI
$ romanicize MMXIX
2019With a Python script, convert from an integer to a Roman numeral:from romanicize import to_numeral

print(to_numeral(2021))  # Outputs: MMXXIWithin a Python script, convert from a Roman numeral to an integer:from romanicize import to_int

print(to_int('MV̅DLXXVIII'))  # Outputs: 4578
Package: romanify
romanifyRoman numbers converting library.Library uses following mapping:ArabicRomanM1000CM900D500CD400C100XC90L50XL40X10IX9V5IV4I1InstallationpipinstallromanifyCommand-line usageromanify101>CILibrary usagefromromanifyimportromanifyprint(romanify(101))VersioningThis software followsSemantic Versioning
Package: romanisim
romanisim: an image simulator for Romanromanisim is a Galsim-based simulator of imaging data from the Wide
Field Instrument (WFI) on the Nancy Grace Roman Space Telescope
(pronounced roman-eye-sim, stylized Roman I-Sim).  It usesGalsimto render astronomical scenes,WebbPSFto model the point spread function, andCRDSto access the
calibration information needed to produce realistic WFI images.The simulator starts by producing an idealized scene with Galsim and a
PSF, and then proceeds to simulate the various noise sources and
instrumental systematics imprinted by the system.  One major feature
is a fairly faithful implementation of up-the-ramp sampling and
ramp-fitting, so that romanisim can produce realistic L1 images ("raw" sets
of up the ramp samples like those that will be delivered from the telescope) and
L2 images (calibrated images of astronomical flux per pixel).Warningromanisim is under active developement.  Its output has not been formally validated; only limited testing has been performed.  For this reason, use of romanisim for preparation of ROSES proposals is not advised.  Other packages like galsim's roman package or STIPS may better serve such purposes.DocumentationSee the full romanisimdocumentationat readthedocs.Installationpip install romanisimshould do most of what you want.  Thenromanisim-make-image out.asdfwill render a test image.  See thedocumentationfor more
information about simulating scenes you're actually interested in!Contributingromanisim is intended to support the community in understanding and
analyzing imaging from Roman.  If there are features you want to use or
see, file anissue, or better
yet, make a pull request!
Package: romanize3
# Romanize 3Python 3 transliteration module to romanize several different ancient scripts to roman letter equivalents and back.Supported scripts are:- greek (grc)- aramaic (arm)- syriaic (syc)- arabic (ara)- phoenician (phn)- brahmi (brh)- coptic (cop)- hebrew (heb)## install`pip install romanize3`## UsageTransliterate syriaic script back and forth:```pythonimport romanize3r = romanize3.__dict__['syc']print(r.convert("ܠܕܝܠܗ ܐܬܐ ܘܕܝܠܗ ܠܐ ܩܒܠܘܗܝ")) # output: LDILE ATA WDILE LA QBLWEIprint(r.convert("LDILE ATA WDILE LA QBLWEI")) # output: ܠܕܝܠܗ ܐܬܐ ܘܕܝܠܗ ܠܐ ܩܒܠܘܗܝ```Filter phoenician alphabet from the given text:```pythonr = romanize3.__dict__['phn']s = """𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍I, Tabnit, priest of Astarte, king of Sidon, the son𐤀𐤔𐤌𐤍𐤏𐤆𐤓 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤔𐤊𐤁 𐤁𐤀𐤓𐤍 𐤆of Eshmunazar, priest of Astarte, king of Sidon, am lying in this sarcophagus."""print(r.filter(s))```Output:```text𐤀𐤍𐤊 𐤕𐤁𐤍𐤕 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤁𐤍𐤀𐤔𐤌𐤍𐤏𐤆𐤓 𐤊𐤄𐤍 𐤏𐤔𐤕𐤓𐤕 𐤌𐤋𐤊 𐤑𐤃𐤍𐤌 𐤔𐤊𐤁 𐤁𐤀𐤓𐤍 𐤆```
Package: romanlibrary
This my first major project in Python that I am publishing to GitHub.
The main idea is that it will take any integer and draw it in roman numerals.
It can also convert roman numerals into integers, although the integers will be printed.
One other user side function allows the user to specify what numerals, what order and which size.
The URL for the GitHub ishttps://github.com/nicestuff77/roman-numeral
Package: roman-nepali-translator
Nepali Translator PackageThe Nepali Translator Package is a Python library that provides functionality to translate Romanized English text to Unicode Nepali. It allows users to easily convert Romanized English words and sentences commonly used in Nepali transliteration to their corresponding Unicode Nepali characters.FeaturesTransliterate Romanized English text to Unicode Nepali characters.Simple and easy-to-use interface.No external dependencies required.InstallationYou can install the Nepali Translator Package usingpip:pip install nepali-translator-packageUsageTo use the Nepali Translator Package, follow these simple steps:Import theConverterfunction from the package.fromnepali_translatorimportConverterCall theConverterfunction with the Romanized English text you want to translate.roman_text="mero nam John ho"nepali_text=Converter(roman_text)print(nepali_text)# Output: "मेरो नाम जोन हो"ExamplesHere are a few more examples to illustrate how the package works:fromnepali_translatorimportConverterroman_text_1="tapai lai kasto cha"nepali_text_1=Converter(roman_text_1)print(nepali_text_1)# Output: "तपाईं लाई कस्तो छ"roman_text_2="khana khannu bhayo"nepali_text_2=Converter(roman_text_2)print(nepali_text_2)# Output: "खाना खान्नु भयो"roman_text_3="hami sathi hau"nepali_text_3=Converter(roman_text_3)print(nepali_text_3)# Output: "हामी साथी हौ"ContributingIf you would like to contribute to the Nepali Translator Package, you are welcome to submit issues, feature requests, or pull requests on the GitHub repository: [https://github.com/MILANydv/nepali_translator_package.git]SupportLicenseThis project is licensed under the MIT License.AcknowledgmentsThe Nepali Translator Package was inspired by the need for a simple and lightweight library to convert Romanized English text to Unicode Nepali characters. Special thanks to the contributors and users who helped improve the package.We hope you find the Nepali Translator Package useful for your Nepali language projects! If you have any questions or feedback, feel free to reach out to us.Thank you for using the Nepali Translator Package!
Package: roman-numbers
Roman numeralsManage roman numerals using roman number object.Convert roman numeral to integersromanfunctionreturn roman numeral stringimportroman_numbersasrx=10print(r.roman(x))Output:>>Xroman(number:int, extend=1)extended functionreturn roman numeral stringimportroman_numbersasrx=7580print(r.roman(x,extend=1))Output:>>V̅MMDLXXXnumberfunctionreturn integers from roman numeralimportroman_numbersasrx='X'print(r.number(x))Output:>>10romobjectsupport Basic and Compare opeartion for roman numeralfromroman_numbersimportrom>>rom(10)+rom(10)# add>>XX>>rom(5)-rom(1)# sub>>IV>>rom(5)*3# mul>>XV>>rom('V')>rom('XI')# compare>>False>>rom('V')==5# compare>>True>>int(rom('XI'))>>11Version1.0.1 - Release
1.0.2 - Add description and minor fix
Package: romannumeral
===============================romannumeral===============================.. image:: https://badge.fury.io/py/romannumeral.png:target: http://badge.fury.io/py/romannumeral.. image:: https://travis-ci.org/jay3686/romannumeral.png?branch=master:target: https://travis-ci.org/jay3686/romannumeral.. image:: https://pypip.in/d/romannumeral/badge.png:target: https://pypi.python.org/pypi/romannumeralThis package is a class for working with Roman Numerals.* Free software: BSD license* Documentation: https://romannumeral.readthedocs.org.Features--------* Supports basic mathematic operations* Can cast to string or int* Can parse from string or intHistory-------'0.1.0' ('2014-09-23')---------------------* First release on PyPI.'0.2.1' ('2014-09-28')---------------------* Added unit tests and exceptions
Package: roman-numerals
This library will convert integers to unicode Roman numerals, or vice
versa. The library supportsApostrophusandVinculumnotation on
top of standard Roman numerals.This library also supports the use ofunicode fallback characters.
For example, when using fallback characters, instead of outputting code
point U+216F (Ⅿ) the library will output the latin M character, which
looks identical to the Roman numeral glyph.Please keep in mind that fallback characters should only be used if
escape sequences are unavailable.Road Map0.1 Convert between numerals and integers0.2 Integrate services like PyUp and TravisCI0.3 Add support for fallback characters0.4 Write documenation0.5 Add support for Apostrophus0.6 Add support for Vinculum1.0 Full feature releaseTestingThe structure of the project forces tests to run on an installed version
of the code.You can run the tests directly withpython setup.py test.
Alternatively, you could install the package withpip install -e .orpython setup.py developand then run tests withpy.test.To run linters, checkers, and tests on multiple Python versions, simply
invoketox.
Package: roman-numerals-converter
Roman Numeral ConverterI developed this python cli for my course "Moderne Softwareentwicklung", provides an easy-to-use interface for converting integers to Roman numerals and vice versa. It uses the Click library to create a user-friendly command-line tool.FeaturesConvert Integers to Roman Numerals: Convert any integer between 1 and 3999 into its corresponding Roman numeral.Convert Roman Numerals to Integers: Translate valid Roman numerals back into integers.InstallationThis project uses Poetry for dependency management. To set up the project, follow these steps:Clone the Repositorygitclonehttps://github.com/your-repository/roman-numeral-converter.gitcdroman-numeral-converterInstall DependenciesMake sure you have Poetry installed. Then run:poetryinstallUsageAfter installation, you can use the CLI as follows:Converting an Integer to a Roman Numeralpoetryrunpython-mroman.your_module_nameto-roman[number]Replace [number] with the integer you want to convert.Converting a Roman Numeral to an Integerpoetryrunpython-mroman.your_module_namefrom-roman[roman_numeral]Replace [roman_numeral] with the Roman numeral you want to translate.
Package: roman-nums
roman-numsPython library to work with roman numbers.InstallationUse the package managerpipto install roman-nums.pipinstallroman-numsBase usage>>>fromroman_numsimportto_roman,from_roman...>>>to_roman(154)CLIV>>>from_roman('MCCCXLVI')1346Work with validation>>>fromroman_nums.utilsimportrn_validator...>>>rn_validator('XLIV')True>>>rn_validator('XLIVV')FalseWork with textsFind roman and arabic numbers in text. Convert them.>>>fromroman_nums.utilsimportRText...text="""In 1066, Norman troops <...>.In the XII century, England conquered Wales, and at the beginning of the XVIII century <...>.""">>>worker=RText(text)>>>worker.from_roman()In1066,Normantroops<...>.Inthe12century,EnglandconqueredWales,andatthebeginningofthe18century<...>.>>>worker.to_roman()InMLXVI,Normantroops<...>.IntheXIIcentury,EnglandconqueredWales,andatthebeginningoftheXVIIIcentury<...>.>>>worker.rnb()# Will find all roman numbers['XII','XVIII']>>>worker.nb()# Will find all arabic numbers[1066]
Package: romanum
Roman numeral conversion toolsThe scripts (and functions) r2n and n2r will convert roman numerals to integers and natural numbers to roman numerals, respectively. Error handling is nonexistent.Works:Conversion to/from integers in standard form with absolute value of 1-4999 or 0, when represented with 'nulla'Conversion to/from integers, when the overline in vinculus forms is replaced with parentheses groups.Doesn't work:Input validation:Use -fand input clean inputs or face errors.Decoding some rarer "nonstandard" forms.TODO:Decoding vinculus forms to/from LaTeX etc..Nice errors handling / warnings.Proper packaging: verify that pip works & register to PyPi
Package: rombus
Rombus: Helps you qucikly and easily compute slow and complex modelsRombus is a tool for building reduced order models (ROMs): matrix representations of arbitrary
models which can be rapidly and easily computed for arbitrary parameter sets.Building a ROM with Rombus is easy.  All you need to do is install it like so:$pipinstallrombusdefine your model like this (in this trivial case, a file namedmy_model.pyspecifying a simple second-order polynomial):fromnumpyimportndarray,polyval,linspacefromrombus.modelimportRombusModelfromtypingimportNamedTupleclassModel(RombusModel):"""Class for creating a ROM for the function y(x)=a2*x^2+a1*x+a0"""coordinate.set("x",0.0,10.0,11,label="$x$")ordinate.set("y",label="$y(x)$")params.add("a0",-10,10)params.add("a1",-10,10)params.add("a2",-10,10)defcompute(self,p:NamedTuple,x:ndarray)->ndarray:"""Compute the model for a given parameter set."""returnpolyval([p.a2,p.a1,p.a0],x)and specify a set of points (in this case, the filemy_model_samples.py) to build your ROM from:-10, -10,-10
-10,  10,-10
-10, -10, 10
-10,  10, 10
 10, -10,-10
 10,  10,-10
 10, -10, 10
 10,  10, 10You build your ROM like this:$ rombus build my_model:Model my_model_samples.csvThis produces anHDF5file namedmy_model.hdf5.  You can then use your new ROM in your Python projects like this:from rombus.rom import ReducedOrderModel

ROM = ReducedOrderModel.from_file('my_model.hdf5')
sample = ROM.model.sample({"a0":0,"a1":0,"a2":1})
model_ROM = ROM.evaluate(sample)
for x, y in zip(ROM.model.domain,model_ROM):
    print(f"{x:5.2f} {y:6.2f}")which generates the output:0.00   0.00
 1.00   1.00
 2.00   4.00
 3.00   9.00
 4.00  16.00
 5.00  25.00
 6.00  36.00
 7.00  49.00
 8.00  64.00
 9.00  81.00
10.00 100.00
Package: romeo
RomeoRomeo is a CLI for managing data science projects.DocumentationWork in ProgressRead the docs inhttps://romeo-cli.readthedocs.io.InstallationWork in Progresspip install romeoFeaturesWork in Progressinit          -> creates a new datascience project based on template folderclean         -> clean temporary files from project foldertrain         -> train a model based on romeo.jsonscore         -> scores a model based on romeo.jsonmodelslist      -> list models registredsadd       -> register a new modelrm        -> remove a modellogs          -> show log information about training and scoring.ContributionsFeel free to contribute.Don't know how to contribute? Read theCONTRIBUTING.mdLicenseFree software: GNU General Public License v3Changelog0.1.0 (2020-05-13)First release on PyPI.
Package: rome-ways
Romewaysby: CenturyBoysThis project has as goal help developers to not reimplemented default queue consumer behaviour.BasicsRomeways works with two basic concepts queue handler and queue connector. The queue connector is a queue consumer and can be spawned in a separate process or in async worker. The queue handler is the callback function that will be called for each retrieved message.Here you can see all implemented consumer:Queue TypeInstall using extradescriptionmultiprocessing.QueuememoryhereApache KafkakafkahereHow to install extra packages?poetryaddromeways-Ememory
OR
pipinstall'romeways[memory]'ConfigurationQueue connector configThe queue connector config is all configurations that you need to be able to retrieve messages from the queue.Bellow are theromeways.GenericConnectorConfigimplementation. This class can be inheritance to allow extra configurations.Params:connector_name: strFor what connector this queue must be deliveredfromdataclassesimportdataclass@dataclass(slots=True,frozen=True)classGenericConnectorConfig:"""connector_name: str Connector name"""connector_name:strQueue handler configWhen you register a queue consumer you are setting configs and a callback handler for each message that this queue receives.Bellow are theromeways.GenericQueueConfigimplementation. This class can be inheritance to allow extra configurations.Params:connector_name: strFor what connector this queue must be deliveredfrequency: floatTime in seconds for retrieve messages from queuemax_chunk_size: intMax quantity for messages that one retrieve will getsequential: boolIf the handler call must be sequential or in asyncio.gatherfromdataclassesimportdataclass@dataclass(slots=True,frozen=True)classGenericQueueConfig:"""connector_name: str For what connector this queue must be deliveredfrequency: float Time in seconds for retrieve messages from queuemax_chunk_size: int Max quantity for messages that one retrieve will getsequential: bool If the handler call must be sequential or in asyncio.gather"""connector_name:strfrequency:floatmax_chunk_size:intsequential:boolResend on errorRomeways allow you to resend the message to the queue if something in your handler do not perform correctly. For that your code need tho raise theromeways.ResendExceptionexception, the message will be resent to the same queue and theromeways.Message.rw_resend_timesparameter will be raizedSpawn a processRomeways can run each connector in a separate process or in async workers for that use the parameterspawn_processto configure that.ExampleFor this example we are using the extra packagememoryfrommultiprocessingimportQueueimportromeways# Config the connectorqueue=Queue()# Create a queue configconfig_q=romeways.MemoryQueueConfig(connector_name="memory-dev1",queue=queue)# Register a controller/consumer for the queue name@romeways.queue_consumer(queue_name="queue.payment.done",config=config_q)asyncdefcontroller(message:romeways.Message):print(message)config_p=romeways.MemoryConnectorConfig(connector_name="memory-dev1")# Register a connectorromeways.connector_register(connector=romeways.MemoryQueueConnector,config=config_p,spawn_process=True)