Saravanan666/pypi-org huggingface dataset:
Package: rill
rillPython library providing simple text-stream processing functionalityTable of contentsIntroductionExamplesRequirements and InstallationIntroductionWithgrep,sed,wc,cat,sort,uniq,head,tail,tr, etc., we have a set of extremely powerful and time-proven tools for pipeline-processing text on the command line ubiquitously available.But some tasks that start out as a simple one-liner, over time, can mutate into a mess ("write-only code"), especially if the requirements grow or some edge cases need special handling, such that having things in a "normal" programming language would be more convenient.This is whererillcomes into play. It provides simple text-stream processing functionality in Python. And while it is much less powerful (featuresandthroughput, hence the name "rill") compared to the good old Unix tools, there is the advantage that one-liners written usingrillcan easily be expanded to longer Python scripts.Also, in case one is already familiar with Python, but not (yet) with the Unix tools, it can be a somewhat more convenient entry point to text-stream processing.ExamplesAssuming you have anexample_input.txtlike so:Hello, fellow dev,
this test file helps to show
the thrilling things
you can do with rill. ;)You can do stuff like the following:# Drop all lines not containing "rill", and replace "rill" with "RILL".python3-c'import rill; rill.inp().grep("rill").replace("rill", "RILL").show()'example_input.txt# Same as: grep rill example_input.txt | sed 's/rill/RILL/g'Output:the thRILLing things
you can do with RILL. ;)# Count the number of lines containing an "e".python3-c'import rill; rill.inp().grep("e").line_count().show()'example_input.txt# Same as: cat example_input.txt | grep e | wc -lOutput:3You can also use it as part of normal Unix pipelines, e.g.:catexample_input.txt|grep'rill'|python3-c'import rill; rill.inp().replace("rill", "RILL").show()'Output:the thRILLing things
you can do with RILL. ;)And extend your script infinitely, e.g.:catexample_input.txt|python3-c'import rillimport codecsdef caesar(text):return str(codecs.encode(text, "rot_13"))rill.inp().grep("rill").map_lines(caesar).show()'Output:gur guevyyvat guvatf
lbh pna qb jvgu evyy. ;)At this point, it probably makes sense to move your code into a file and use it like a normal Python script.python3my_script.pyexample_input.txtRequirements and InstallationpipinstallrillOr, if you like to use the latest version from this repository:gitclonehttps://github.com/Dobiasd/rillcdrill
pipinstall.LicenseDistributed under the MIT License.
(See accompanying fileLICENSEor athttps://opensource.org/licenses/MIT)
Package: rillian-grant-university-project-covid19-dashboard
university-project-covid19-dashboardSimple personalised covid information dashboardUser guideThis program can be run via either:The main.py file. N.B. Make sure to runpip -r requirements.txtbeforehandThe PyPI package rillian-grant-university-project-covid19-dashboard using the command covid19-dashboard.WARNING:config.jsonis read from the working directory if the config file is not found a default one is used. If you are using the PyPI version and you want to modify configuration then copy the default config.json from the git repo.Known linter errorspylint says unsubscriptable-object. Not sure why, the object is definitely subscriptableuse f string instead of string.format(). I suppressed this one as it's definitely incorrect in contextKnown IssuesHeader image in static folder has no file extension due to template. The full file name is "images"Bad formatting on update info. Due to templateNo links on news articles. Due to templateMy api key is hardcoded
Package: rillrate
rillrate-pyReal-time UI for bots.Python 3 bindings forRillRate.How to useInstall the library:pipinstallrillrateImport it in your code and install a tracer:importrillraterillrate.install("my-app")board=rillrate.Board("package-1.dashboard-1.group-1.board");board.set("Key","Value");ExpansionsYou can also monitor internal Python stats.
Package: rils
RILS -- Regression via Iterated Local SearchRILS algorithm for GECCO2023 SR competitionInstallation instructionsThe program requires Python 3 (tested on version 3.11.3), but it should work on some earlier versions as well.
We also recommend using pip package manager.Download the repository and unpack it.Install the following pip packages:pip install numpypip install sympypip install scikit-learnpip install statsmodelsExecution instructionsPosition inside the root directory of the unpacked repository. The (sub)directories at this level are: instances/, paper/, results/ and rils/.
Directory instances/ holds datasets that are previously rounded to 9 decimals and saved in the tab separated .txt files.Call run_all.cmd or run_all.sh script depending on whether you use Windows or Linux.
If using Linux, you might need to change the accesss rights for this script, i.e. add x (execution) rights.
Also, you might need to change the name of python executable to python3 on some systems.
The content of run_all.{cmd|sh} file is as follows:python run.py "instances/srbench_2023" "dataset_1.txt" 180 20python run.py "instances/srbench_2023" "dataset_2.txt" 100 10python run.py "instances/srbench_2023" "dataset_3.txt" 180 20The steps in the execution pipeline are explained in paper/rils_gecco2023.pdf.
Briefly, several output files will occurr during execution:best_sols_dataset_{1|2|3}.txtlog.txtout.txtThe model will be written inside out.txt.
Note that there is semi-automated (interactive) simplification (step 4 in the paper) for the dataset_3.
Package: rimc-engine
RIMC (Retro Image Converter) Engine for PythonFilm simulation python module.
This module allows you to convert any photo of your choice to the filtered image in a preferred vintage style!UsageInstallationPrerequisitespipinstallpillow
pipinstallnumpyInstall rimc enginepipinstallrimc-engineUpdate rimc enginepipinstall--upgraderimc-engineFor more information and examples of usage please visitgithub repo
Package: rime
RimeRime is a tool for programming contest organizers to automate usual, boring and error-prone process of problem set preparation.
It supports various programming contest styles like ACM-ICPC, TopCoder, etc. by plugins.Detailed documentations (in Japanese) are found at documentation site:https://rime.readthedocs.io/ja/latest/Cheat sheetInstall Rime$ pip install rimeUpgrade Rime$ pip install -U rimeUninstall Rime$ pip uninstall rimeInitialize a project$ rime_init --git/--mercurialAdd a problem$ rime add . problem <problem_dir_name>Add a solution$ rime add <parent_problem_dir_name> solution <solution_dir_name>Add a testset$ rime add <parent_problem_dir_name> testset <testset_dir_name>Build a target (project/problem/solution/testset)$ rime build <target_path> -j <#workers>Test a target (project/problem/solution/testset)$ rime test <target_path> -C -j <#workers>Pack a target for an online judge (project/problem/testset)$ rime pack <target_path>Upload a target to an online judge (project/problem/testset)$ rime upload <target_path>Submit a target to an online judge (project/problem/solution)$ rime submit <target_path>Edit a configuration file (project/problem/solution/testset)$ vi/emacs/nano <target_path>/<PROJECT/PROBLEM/SOLUTION/TESTSET>New features from Rime Plus-O2, -std=c++11 as a defaultFaster parallel testnative testlib.h supportsubtask / partial scoringreactive checker (partially support)gcj-styled merged testadditional commandspip supportjudge system deploymenttest result cachesome bug fixJS / CSharp / Haskell codesetc.For developersHow to run unit tests$ python setup.py test
Package: rime-sdk
OverviewThe RIME SDK provides a programmatic interface to a Robust Intelligence instance, allowing you to create projects,
start stress tests, query the backend for test run results, and more from within your Python code.To begin, import the Client object from the package like so:fromrime_sdkimportClientTheClientis the main entry point to SDK functions. To initialize the Client, provide the URL of your
Robust Intelligence instance and an API key generated from a workspace on that instance.rime_client=Client("my_vpc.rime.com","api-key")Once initialized, you can use this Client to interact with your Robust Intelligence instance.Please refer to the fullSDK documentationfor further instructions.Example notebooks of using the SDK to run tests using Robust Intelligence are availablehere.
Package: rimo-storage
莉沫酱存储！做实验的时候经常要存一些数据，用手写with open很麻烦，就想着，啊那不如直接搞一个存硬盘的dict吧！样例fromrimo_storageimport超dictd=超dict('./savedata')d['x']=114514d['y']='好！'然后下次运行程序的时候就还可以读d里面的内容了。嗯，就是这么简单！接口rimo_storage.超dict(path, compress=None, serialize='json')基本上就相当于普通的Dict[str, Any]。其中compress和serialize的类型是Union[str, Tuple[Callable, Callable], None]，它的行为是这样——compress可以选择zlib或者lzma，serialize可以选择json和pickle。如果传Tuple[Callable, Callable]，则第一个函数会在写入的时候用，第二个函数会在读取的时候用。如果是None，则什么都不做。究竟能存什么东西依赖serialize，如果是json就只能存可json化的东西，如果是pickle就只能存可以pickle的东西(我又在讲废话了)。rimo_storage.cache.disk_cache(*, path=None, compress=None, serialize='json')一个装饰器，差不多就是标准库的functools.cache的存硬盘版本，参数的意思和上面一样。安装只要使用pip安装就行啦！pipinstallrimo-storage结束就这样，大家88，我继续回去做实验啦！
Package: rimp
rimpA hacky project that lets you import repls fromhttps://repl.itinto your projectHow to installpip install rimpWow, that was easy wasn't it?How to useThere's only 1 command you'll need to know how to use,load_repl.load_repl(name:str, project:str, force_reinstall:bool=False, verbose:bool=True):name: The name of the repl.it user you're installing from (eg.https://repl.it/@21natzil/Permissions)project: The name of the repl you're installing (eg.https://repl.it/@21natzil/Permissions)force_reinstall: If True, rimp will install the repl again, even if it's already downloadedverbose: If False, it willnotprint anything to stdout with installation informationIt's advised you checkout thetest.pyfile for examples of this being used.PLEASE NOTE, you can only import
repls with a propersetup.pyfile. If you want an example on the most minimalsetup.pyfile you can make:Seethis linkif you only wish to makefilesimportableSeethis linkif you wish to make a whole directory importableFrom here, it's just a matter of figuring out what you must import, which depends on the repl you're installing and should look at those docs.Things to noteThenameoption in thesetup.pyis required but can be anythingDownloading huge repls is slow, but only needs to be done once, so only set force_reinstall to True when necessary.I have not tested on Mac, however it should work on Windows + LinuxThis project installs repls to a .rimp file in the current working directory.Change Log0.0.0- Project Creation
Package: rimseval
IntroductionThe goal of this project is to provide a python
interface to process resonance ionization mass spectrometry (RIMS) data.A detailed user guide documenting the package can be foundhere.Package installationpip install rimsevalIf pre-releases are available and you would like to install one,
add the--preflag to above command.
More information in thedocumentation.NoteIt is highly recommended that you use a virtual environment,
sincenumpyis pinned to a specific version
in order to appropriately work withnumba.RIMSEvalGUIA GUI that wraps around therimsevalpackage
is available onGitHub.
The above mentioned documentation also serves
as the documentation for this GUI.ContributingContributions are very welcome!
Especially the documentation could need some more examples
and polishing.
Please feel free to contact me if you’d like to contribute.Thedocumentationalso contains a developers guide,
if you are interested in contributing to the code base itself.
Package: rimsschemedrawer
RIMSSchemeDrawerA drawing program to create publishable RIMS schemes.Help with the installation / compilation can be foundhere.How to useGenerally, the GUI should be fairly self-explanatory.
Tool tips are furthermore implemented to help you navigate what you need to do.Below is a screenshot of the main window in the software
that is configured to mostly reproduce
the Titanium resonance ionization scheme published byTrappitsch et al. (2018).State / transition informationInformation on the transitions are entered on the left hand side of the software.
You can select if you would like to enter the information in nm (wavelength)
or in cm-1(wavenumbers).
The term symbols can also be given, but are optional.
Furthermore, if you have low-lying states,
check the according box,
and you can now add the associated information.
If a transition is forbidden,
check the box and it will either be crossed out,
or not shown (depending on the configuration selected).PlottingOn the right hand side of the program are the settings.
Many parameters of the plot can be configured here.
It is worth playing with various parameters.
ThePlotbutton will quickly allow you to see the figure in a new window.
It will also allow you to save the figure (see toolbar).
Available formats can be foundhere.In the background, RIMSSchemeDrawer uses matplotlib to draw the figures
and to display them nicely.
Feel free to tinker with the code and explore additional styles.Loading and saving configurationsIf you want to load / save the configurations
you can use the accordingLoad ConfigandSave Configbuttons.
The data is saved as ajsonfile.
You can open a saved file with any text editor and have a look,
but please note that bad things can happen
if you change the file right there,
unless of course you know what you're doing.
The file should be fairly self-explanatory.If you are interested:
The file with the configurations shown in the image above can be foundhere.Issues/enhancementsIf you find bugs in the software or would like to have an additional feature,
please raise an Issuehere.
Please also browse the issues to first see if the bug/feature request
you want to report is already listed.If you furthermore have ideas on how to implement/fix the bug already,
please feel free to discuss it through in the Issues tab
and create a pull request.
Contributions are always welcome!
Please followbest practicesin your commit messages.LicenseRIMSSchemeDrawer is Copyright (C) 2020-2024 Reto TrappitschIt is licensed under the MIT license.
Package: rimu
A port of theRimu Markup languagewritten
in the Python language.FeaturesFunctionally identical to theTypeScript
implementationversion 11.4.0.UsageInstall fromPyPIusing the Pythonpipcommand:pip install rimuExample usage:importrimuprint(rimu.render('*Hello World*!'))See also RimuAPI documentation.CLI commandTheRimu CLI
commandinstalled
by Pip is namedrimupy. CLI command example:echo'Hello *Rimu*!'|rimupyThis will output:<p>Hello<em>Rimu</em>!</p>BuildingDevelopment is carried out in a Conda virtual environment so you need to have either Anaconda or Miniconda installed.Build instructions:Install the source repo from Github:git clone https://github.com/srackham/rimu-py.gitCreate therimu-pyConda environment (this includes Python and all the necessary Python packages):cd rimu-py/
 conda env create --file environment.yamlRun tests and build rimu-py:conda activate rimu-py
 make buildLearn moreRead thedocumentationand experiment
with Rimu in theRimu
Playground.ImplementationThe largely one-to-one correspondence between the canonicalTypeScript codeand the Python code
eased porting and debugging.  This will also make it easier to
cross-port new features and bug-fixes.All Rimu implementations share the same JSON driven test suites
comprising over 300 compatibility checks.
Package: rimuru
Rimuru📖用单元测试自动生成接口文档已适配的客户端requestsdjango.test.clientflask.testing.FlaskClient使用方法用requests模块进行测试importunittestimportrequestsasrequests_modulefromrimuru.coreimportdoc_client,APIDocumentclassAPITestCase(unittest.TestCase):defsetUp(self):self.api_document=APIDocument()self.client=doc_client(self.api_document,requests_module)deftest_api(self):url='http://127.0.0.1:5000/api/books'method='GET'name='书列表接口'self.api_document.set_api_name(method=method,url=url,name=name)response=self.client.get(url)"""你的测试逻辑self.assertEqual(response.status_code, 200)..."""self.client.get(url,params={'name':'A'},headers={'TEST_HEADER':'test'},requires={'name':False},add_response=False)url='http://127.0.0.1:5000/api/books/<int:id>'method='GET'name='书详情接口'self.api_document.set_api_name(method=method,url=url,name=name)self.client.get('http://127.0.0.1:5000/api/books/2')response=self.client.get('http://127.0.0.1:5000/api/books/4')self.assertEqual(response.status_code,404)self.api_document.save(file_path='tests/')用django.test.client模块进行测试importdjango.testimportTestCaseclassAPITestCase(unittest.TestCase):defsetUp(self):self.api_document=APIDocument()self.client=doc_client(self.api_document,self.client)deftest_api(self):url='http://127.0.0.1:5000/api/books'method='GET'name='书列表接口'self.api_document.set_api_name(method=method,url=url,name=name)response=self.client.get(url)"""你的测试逻辑self.assertEqual(response.status_code, 200)..."""self.client.get(url,data={'name':'A'},requires={'name':False},add_response=False,**{'HTTP_TEST_HEADER':'test'})url='http://127.0.0.1:5000/api/books/<int:id>'method='GET'name='书详情接口'self.api_document.set_api_name(method=method,url=url,name=name)self.client.get('http://127.0.0.1:5000/api/books/2')response=self.client.get('http://127.0.0.1:5000/api/books/4')self.assertEqual(response.status_code,404)self.api_document.save(file_path='tests/')生成文档书籍列表接口.md## 书列表接口### 请求地址`GET``http://127.0.0.1:5000/api/books`### 请求头| 参数名  | 必填 | 参考值                           |
| ------- | ---- | -------------------------------- |
|TEST_HEADER|True|test|### 请求参数| 参数名   | 类型   | 必填 | 描述 | 默认值 | 参考值 |
| -------- | ------ | ---- | ---- | ------ | ------ |
|name|String|False|||A|### 返回正确状态码`200`​```json
[
    {
        "id": 1,
        "name": "A"
    },
    {
        "id": 2,
        "name": "B"
    },
    {
        "id": 3,
        "name": "C"
    }
]
​```书详情接口.md## 书详情接口### 请求地址`GET``http://127.0.0.1:5000/api/books/<int:id>`### 返回正确状态码`200`​```json
{
    "id": 2,
    "name": "B"
}
​```### 返回错误状态码`404`​```json
{
    "msg": "Not Found"
}
​```
Package: rimvydas-zilinskas-lotr-api
Lord Of The Rings APIInstallationpipinstallrimvydas-zilinskas-lotr-apiPrerequisitesTo use this library, you have to obtain an API key fromhttps://the-one-api.dev/Once registered, store your API key securelyUsageTo start using our SDK you will need to initialize a new API client with your newly created API token as in the example below:fromlotr_apiimportAPIapi=API("generated-api-token")response=api.get_books()response.docs# [#     {#         "_id": "5cf5805fb53e011a64671582",#         "name": "The Fellowship Of The Ring"#     },#     {#         "_id": "5cf58077b53e011a64671583",#         "name": "The Two Towers"#     },#     {#         "_id": "5cf58080b53e011a64671584",#         "name": "The Return Of The King"#     }# ]ResourcesYou can retrieve the following resources using our library:BooksChaptersMoviesQuotesCharactersQuotesQuotesChaptersThe API class has multiple get methods generated for each resource.To get a list of resources, follow the following method naming:get_*s(**filters)

e.g.
api.get_movies(academyAwardWins__gt=10)To get resources of type by ID:get_*(identifier, **filters)

e.g.
api.get_movie("5cd95395de30eff6ebccde56")To get a nested resource list:get_{base_resource}_{nested_resource}s(identifier, **filters)

e.g.

api.get_movie_quotes("5cd95395de30eff6ebccde56")FilteringYou can filter base resources by value using different methods. We utilize the naming
conventions coming from Python magic methods to convert them into valid URL queries.To filter using lookups, you need to append the lookup using__(two underscores)
after the field name you wish to filter by.neq - not equal, ex. runtimeInMinutes__neq=100
gt - greater than
gte - greater than or equal
lt - less than
lte - less than or equalPaginationPagination is enabled by design and users of the library can check if dataset was fully
retrieved using.has_nextmethod of Response object and easily parse the next using.has_nextmethod.Page number will be overriden in retrieving subsequent responses even if the implementer provided a
page filter argument in the original query.Uselimitto limit the amount of resources returned in a single request
Package: rin
RinA strongly typed discord API wrapper. This is the successor to the Lefi project.InstallationInstalling from GitHubpip install -U git+https://github.com/an-dyy/RinInstalling from PypiNote that since the project is still unstable, the lastest pypi version may be behind master by a lot.pip install -U rinExample(s)Here!DocumentationDocumentationContributingIf you plan on contributing please open an issue beforehandFork the repo, and setup the poetry env (with dev dependencies)Install pre-commit hooks (makes it a lot easier for me)pre-commit installNotable contributorsblanketsucks- collaboratoran-dyy- creator and maintainer
Package: rina-pp-pyb
rosu-pp-pyDifficulty and performance calculation for allosu!modes.This is a python binding to the Rust libraryrosu-ppwhich was bootstrapped throughPyO3.
Since all the heavy lifting is done by Rust, rosu-pp-py comes with a very fast performance.
Check out rosu-pp'sREADMEfor more info.Exposed typesThe library exposes the following classes:Calculator: Contains various parameters to calculate strains or map, difficulty, or performance attributesBeatmap: Contains a parsed beatmapBeatmapAttributes: Contains various attributes about the map itselfDifficultyAttributes: Contains various attributes about the difficulty based on the modePerformanceAttributes: Contains various attributes about the performance and difficulty based on the modeStrains: Contains strain values for each skill based on the modeAdditionally, the following error types are exposed:ParseError: Failed to parse a beatmapKwargsError: Invalid kwargs were providedHow to use rosu-pp-pyThe first step is to create a newBeatmapinstance by providing appropriate kwargs.
Either of the kwargspath,content, orbytesmustbe given. The kwargsar,cs,hp, andodare optional.
With the settersset_ar,set_cs,set_hp, andset_odyou can specify custom attributes.map=Beatmap(path="/path/to/file.osu",ar=9.87)map.set_od(1.23)withopen("/path/to/file.osu","rb")asfile:map=Beatmap(bytes=file.read())withopen("/path/to/file.osu")asfile:map=Beatmap(content=file.read())Next, you need to create an instance ofCalculatorby providing the appropriate kwargs again.
Any of the following kwargs are allowed:mode,mods,acc,n_geki,n_katu,n300,n100,n50,n_misses,combo,passed_objects,clock_rate, anddifficulty.
Each of these also have a setter method e.g.set_n_misses.calc=Calculator(mode=2,acc=98.76)calc.set_mods(8+64)# HDDTThe last step is to call any of the methodsmap_attributes,difficulty,performance, orstrainson the calculator and provide them aBeatmap.Examplefromrosu_pp_pyimportBeatmap,Calculatormap=Beatmap(path="./maps/100.osu")calc=Calculator(mods=8)# Calculate an SS on HDmax_perf=calc.performance(map)# The mods are still set to HDcalc.set_acc(99.11)calc.set_n_misses(1)calc.set_combo(200)# A good way to speed up the calculation is to provide# the difficulty attributes of a previous calculation# so that they don't need to be recalculated.# **Note** that this should only be done if neither# the map, mode, mods, nor passed objects amount changed.calc.set_difficulty(max_perf.difficulty)curr_perf=calc.performance(map)print(f'PP:{curr_perf.pp}/{max_perf.pp}| Stars:{max_perf.difficulty.stars}')map_attrs=calc.map_attributes(map)print(f'BPM:{map_attrs.bpm}')strains=calc.strains(map)print(f'Maximum aim strain:{max(strains.aim)}')Installing rosu-pp-pyInstalling rosu-pp-py requires asupported version of Python and Rust.OncePythonandRustand ready to go, you can install the project with pip:$pipinstallrosu-pp-pyor$ pip install git+https://github.com/MaxOhn/rosu-pp-pyLearn Morerosu-pp documentationRust documentation.PyO3 documentation.Python documentation.