Saravanan666/pypi-org huggingface dataset:
Package: ricekey
riceprintAboutAuthor: Kevin Saccassriceboat@gmail.comA simple threaded Python keypress event detector for stopping loops or other threads. Effective for safely stopping large for-loops, continuous functions, and enabling keypress directives for GUIs.Works on Linux, macOS, Windows.LicenseMIT LicenseCopyright (c) 2019 ssriceboatPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Installation using pippipinstallricekeyUsage:After you have installed the package, check that its working by running
the module directly. This will demonstrate an example keypress kill event.cd/path/to/ricekey-package/src/ricekey/pythonricekey.pyBelow is an example of how you can use ricekey to stop your main thread if you need to:fromricekeyimportkbcontrolfromriceprintimportConsolePrinter,pprint,tprint,progressbarcp=ConsolePrinter()importthreadingimporttime# Start the keypress monitoring threadthread=threading.Thread(target=kbcontrol,args=())thread.start()# While the thread is alive, do something.i=0whilethread.isAlive():c=cp.palette.colors[i%16]progressbar(i%100,100,color=c,char='\u2587',lend='|',rend='|')time.sleep(0.01)i+=1pprint('Done! I hope you use this package!','dm')
Package: riceprint
riceprintAboutAuthor: Kevin Saccassriceboat@gmail.comSimple Python package to replace the built-in print() function. This
module contains functions for colored print statements and temporary
print statements. Also contained in this package is a full-featured
example usage of this package’s tprint() function to create a beautiful
progressbar in the console.Works on Linux, macOS, Windows. For Windows, install colorama. (https://pypi.org/project/colorama/)LicenseMIT LicenseCopyright (c) 2019 ssriceboatPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.InstallationUsing pippipinstallriceprintUsage:After you have installed the package, check that its working by running
the module directly. This will show you all the vailable print colors:cd/path/to/riceprint-package/src/riceprint/pythonriceprint.pyBelow is an example of how you can use the functions:fromriceprintimporttprint,pprint,progressbarimporttime# Simple pprint, tprint demoprint('This is not using riceprint.')pprint('This is using riceprint. (Same unless you add some spice)')pprint('This is using riceprint with style.','c')tprint('This message will be erased by the next line.','b')tprint('This message overwrites the previous tprint and will also be overwritten.','r')pprint('This message overwrites the previous tprint and is permanent.','g')# Overwriting previous messages, like status changes.message='This is an example of something you can do with tprint().'elements=message.split(' ')some_colors=['r','g','b','c','m','y','k','w','dr','dk','dc']foriinrange(len(elements)):msg=''foryinrange(i+1):msg+=elements[y]+' 'color=some_colors[i]tprint(msg,color)time.sleep(0.25)# Progress bar exampleforxinrange(100+1):progressbar(x,100,color='dg',char='\u2587',lend='|',rend='|')time.sleep(0.01)# Adding keep=True here will leave the completed progressbar in the consoleprogressbar(x,100,color='dg',char='\u2587',lend='|',rend='|',keep=True)pprint('Done! I hope you use this package!','dm')
Package: ricerca
Aboutricerca is a python package for content-based searching of microscope images.  It uses a set of numerical features to describe each image and a method for combining them to measure similarity.For more information about ricerca, please visithttp://murphylab.web.cmu.edu/software/ricerca/AuthorsIvan Cao-Berg, Baek Hwan Cho, Jennifer Bakal and Robert F. MurphyLane Center for Computational BiologySchool of Computer ScienceCarnegie Mellon Universityhttp://lane.compbio.cmu.edu/ReferencesB.H. Cho, I. Cao-Berg, J.A. Bakal, and R.F. Murphy (2012) OMERO.searcher: Content-based image search for microscope images. Nature Methods 9:633-634.Leejay Wu, Christos Faloutsos, Katia P. Sycara, and Terry R. Payne. 2000. FALCON: Feedback Adaptive Loop for Content-Based Retrieval. In Proceedings of the 26th International Conference on Very Large Data Bases (VLDB ‘00), Amr El Abbadi, Michael L. Brodie, Sharma Chakravarthy, Umeshwar Dayal, Nabil Kamel, Gunter Schlageter, and Kyu-Young Whang (Eds.). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 297-306.
Package: richbench
rich-benchA little Python benchmarking tool.Why do I need this?The builtin timeit module for Python is great, but the typical usage for micro-benchmarks is to run a small script like this:python -m timeit "a = 1; b = 2; a * b"The problem with this approach is that the compiled code is a module, so any variables on the top-level areglobals.
The compiled bytecode is different to the same statements being inside a local scope (e.g. a method or function).
They behave and perform very differently in CPython.richbenchencourages you to write benchmarks inside functions to properly simulate the closures and scope of production code.InstallationRequires Python 3.6+ and can be installed using pip:pip install richbenchUsageWrite your benchmark functions in a directory and runrichbenchwith that target to get the results:$richbenchmy_benchmarks/Results are displayed in a table like this:$richbench--helpusage: richbench [-h] [--profile] [--percentage] [--markdown] [--benchmark [BENCHMARK]] [--repeat REPEAT] [--times TIMES] target [target ...]positional arguments:targetoptions:-h, --help            show this help message and exit--profile             Profile the benchmarks and store in .profiles/--percentage          Show percentage of improvement instead of multiplier--markdown            Prints a markdown friendly table--benchmark [BENCHMARK]Run specific benchmark--repeat REPEAT       Repeat benchmark this many times--times TIMES         Run benchmark this many timesWriting benchmarksBenchmarks should be in a directory and must have the filenamebench_{name}.py.The last statement in the benchmark file should be a list, called__benchmarks__with a list of tuples containing:function afunction bthe name of the benchmarkdefsort_seven():"""Sort a list of seven items"""for_inrange(10_000):sorted([3,2,4,5,1,5,3])defsort_three():"""Sort a list of three items"""for_inrange(10_000):sorted([3,2,4])__benchmarks__=[(sort_seven,sort_three,"Sorting 3 items instead of 7")]Tips for benchmarkingInside your benchmark function try to:Run setup commands onceRepeat the code you want to benchmark as many times as possible to create a stable benchmarkFor micro-benchmarks, this can be achieved by calling 1000 - 100,000 times.If your benchmark code completes within0.001sit is likely you will get unstable benchmarks because of the CPU doing other activities. Increase the times the target code is run within the function.ProfilingBy adding the--profileflag to the command line, it will generate a subdirectory.profileswith HTML profile data of your target functions.
Package: richbibtext
Rich BibTextBibtext reader compatible with Scopus (by Elsevier) bib export.UsagefromrichbibtextimportRichBibtextReaderfrompprintimportpprinttexts=RichBibtextReader(r"C:\Users\mrebu\Downloads\scopus (48).bib")pprint(texts[0])FieldsExample forOttaviani, F.M., Rebuglio, M., & De Marco, A. (July 2023). "Project Management Information System Data Model Development and Explanation." In Proceedings of the 13th International Conference on Simulation and Modeling Methodologies, Technologies and Applications, held in Rome, Italy, Volume 1. DOI: 10.5220/0012052200003546. Presented at Project Management Lab (PM Lab).FieldDescriptionExampleENTRYTYPEType of publication [conference, article, book]conferenceIDUnique Scopus identifier of the publicationOttaviani2023210authorOttaviani, Filippo Maria and Rebuglio, Massimo and De Marco, AlbertotitlePaper titleProject Management Information System Data Model Development and Explanationyear2023journalJournal titleProceedings of the International Conference on Simulation and Modeling Methodologies, Technologies and ApplicationsvolumeVolume of the journal1numberNumber within the journal's volumedoi10.5220/0012052200003546urlScopus URLhttps://www.scopus.com/inward/record.uri?eid=2-s2.0-85178591230&doi=10.5220%2f0012052200003546&partnerID=40&md5=8c0b44bebf939c92bad453e964c3d830affiliationsAuthors' affiliation at the time of publicationDepartment of Management and Production Engineering, Politecnico di Torino, Turin, 10129, ItalyabstractThe Project Management (PM) discipline is evolving towards the adoption of digital technologies […]author_keywordsKeywords provided by the authorsData Model; Information System; Project ManagementkeywordsGeneral keywords related to the publicationcorrespondence_addressCorrespondence address of the main authormassimo.rebuglio@polito.itpublisherScience and Technology Publications, Ldaissn21842841codenlanguageEnglishabbrev_source_titleAbbreviated title of the journalProc. Int. Conf. Simul. Model. Methodol. Technol. Appl.typeType of document [Book, Conference paper, Book chapter, Article]Conference paperpublication_stageStage of publication [Final]FinalsourceScopuspages210 – 217isbn978-989758668-2editorWagner G. and Werner F. and De Rango F.pmidPubMed ID of the publicationnoteAdditional Scopus notes in textual format. The library divides them into the following fields.Cited byNumber of citations1Conference name13th International Conference on Simulation and Modeling Methodologies, Technologies and Applications, SIMULTECH 2023Conference date12 July 2023 through 14 July 2023Conference code304309
Package: richcat
richcatrichcatis acatcommand decorated byrichwhich is Python library.Working on Python.FeaturesSyntax hilightingSupport viewerMarkdownCSVJupyter NotebookAutomatic pagingBy default,richcatpipes its own output to a pager. If you wouldn't rather pager, use--style=nopageroption.Support Python importImport on Python console:Import on Jupyter Lab:Installationpip install richcatUsageDisplay a file contents on the terminal.example:richcat table.csvUse-toption, you can choose highlight.example:richcat table.csv -t textUse--style=headeroption if you use the header in a CSV file.example:richcattable.csv--style=header--style=noheader(default)--style=headerIf you want to userichcatin Python, you can use the following example.example:>>>fromrichcatimportrichcat>>>richcat("table.csv")OptionsThe options that can be specified inrichcatare as follows:optionexplanationexample-h,--helpShow help in English.-V,--versionShow version.-t,--filetype <STRING>Specify file type.--filetype python-w,--width <INT or FLOAT>Set print width.If width>1, set print width direct.If width<1, set print width percent.'--width 80,--width 0.5-c,--color-system <STRING>Choose color system.['standard', '256', 'truecolor', 'windows']--style <STRING>Set styles.['[no]header', '[no]pager']--style=header,nopagerDevelopmentIf you want to develop richcat, please follow the steps below.Build the development environment.$ git clone git@github.com:richcat-dev/richcat.git
$ docker-compose buildStart the development environment.$ docker-compose up -dGo inside the launched Docker container to develop.$ docker exec -it <CONTAINER_ID> /bin/bashYou can view the API document of richcat under development at the following URL.http://localhost:8000/You can updaterichcatAPI documentation with the following command.$ cd ~
$ make sphinx-apidocContributors@yamamoto-yuta(Maintainer,main contributor!)@ShotaroKataoka(Maintainer)
Package: richclass
A collection of feature rich classesRichClass is a collection of python classes that aim to rapidly bridge the gap between verbose code and creating feature rich objects with common sense features. The flagship class for this package's release beingRichPath, a class that builds on thepathlib.Pathclass but adds several quality of life tools such as the methoddetect()which returns True if the directory or file exists.RichPathalso maintains an attributepresentwhich maintains the memory of the result ofdetect()and is updated when that method is called.ClassesRichPathRichPathis a rich developed class
This class simultaneously maintains both attributes:path_strthe path represented as a stringpath_objthe path represented as a pathlib.Path objectSeveral additional attributes are available:self.typeof a type enumerated by RichPathTypesself.loggerThe value is None by default, or a Logger class object if passed at initializingself.logging_enTrue if the RichClass initializing method is passed a Logger class objectself.requiredIf true, will raise a FileNotFoundError exception on failed self.detect()Several methods are available for a class instance of RichPath:self.detectsearches for the existence of the directory or file specified in the RichPath object and returns bool resultself.update_path_strallows you to update the path of the RichPath object with a directory or file stringCalls self.detect() and returns bool resultself.update_path_objallows you to update the path of the RichPath object with a pathlib.Path class objectCalls self.detect() and returns bool result
Package: rich-codex
rich-codex ⚡️📖⚡️A GitHub Action / command-line tool which generates screengrab images of a terminal window, containingcommand outputsorcode snippets.📚 Documentation:https://ewels.github.io/rich-codex/📚IntroductionHaving code examples in your documentation is a fantastic way to help users understand what to expect from your tool.Using terminal screenshots is a good way to do this because:🌈 Coloured terminal output is supported↔️ You can fit in long lines without scrolling or cropping (images are auto-resized)😎 They look coolHowever, manually generating these screenshots is a pain 👎🏻 Remembering to update them every time you make a minor change means that they can easily get out of date.Rich-codexautomates this process for you. It searches markdown code for images with shell commands or code snippets. It runs these commands and saves a terminal screen-grab at the embedded path.Typical use cases:📷 Example CLI tool outputs thatautomatically stay in sync with your package♻️ Syntax-highlighted code snippets that are always up to date with yourexamples/🤩 Fast and simple images for your docs with minimal setupQuickstart📖 Write some markdown docs, use an image tag with a backtick command inside:![`cat docs/cat.txt | lolcat -S 1`](docs/img/cat.png)🤖 Add a GitHub Action to automatically run the command, generate the image and commit to the repo:on:[push]jobs:rich_codex:runs-on:ubuntu-lateststeps:-uses:actions/checkout@v3-name:Install your custom toolsrun:pip install lolcat-name:Generate terminal images with rich-codexuses:ewels/rich-codex@v1with:commit_changes:"true"🌈 Enjoy reading your documentationHow it worksRich-codex is a command-line tool that you can runvia a GitHub actionor as acommand line tool. It works with any markdown (including GitHub READMEs).It collects either commands or code snippets, together with output filenames and configuration options. Commands are run in a subprocess and the standard output & standard error collected. These are then rendered as an image usingTextualize/rich.Rich-codex creates the images that your markdown docs expect. It doesn't require a HTML build-step and doesn't make any changes to your markdown or its output. As such, it's compatible withany documentation engine, including rendering markdown ongithub.com.Rich-codex needsinputs(commands / snippets) andoutput filenamesto work. These can be configured in four different ways:🖼Markdown imagesSearch markdown files for image tags with command alt text. eg:![`rich-codex --help`](docs/img/rich-codex-help.svg)💬Markdown commentsSearch markdown files for special HTML comments.➡️Command-line / action inputsSpecify a command or snippet using the actionwithinputs.⚙️Config filesUse one or more YAML config files for multiple images and more complex customisation.Images can be generated as SVG, PNG or PDF (detected by filename extension).Keep reading!👉https://ewels.github.io/rich-codex/
Package: rich-dataframe
Rich DataFrameCreate animated and pretty Pandas Dataframe or Pandas Series, as shown below:Installationpipinstallrich-dataframeUsageMinimal examplefromsklearn.datasetsimportfetch_openmlfromrich_dataframeimportprettifyspeed_dating=fetch_openml(name='SpeedDating',version=1)['frame']table=prettify(speed_dating)If you want to pass a non-dataframe object,rich_dataframegot it covered too!fromrich_dataframeimportprettifyvar={'a':1,'b':3}prettify(var)Parametersdf: pd.DataFrameThe data you want to prettifyrow_limit : int, optionalNumber of rows to show, by default20col_limit : int, optionalNumber of columns to show, by default10first_rows : bool, optionalWhether to show first n rows or last n rows, by defaultTrue. If this is set toFalse, show last n rows.first_cols : bool, optionalWhether to show first n columns or last n columns, by defaultTrue. If this is set toFalse, show last n rows.delay_time : int, optionalHow fast is the animation, by default5. Increase this to have slower animation.clear_console: bool, optionalClear the console before printing the table, by default True. If this is set to false the previous console input/output is maintained
Package: rich-diff
Rich DiffCLI based diff viewerhttps://github.com/sureshdsk/rich-diffInstallpipinstallrich-diffUsage$rich-diff

$rich-diffunified-diff/path/to/file1/path/to/file2

$rich-diffunified-diffdata/user1.jsondata/user2.json
$rich-diffcontext-diffdata/user1.jsondata/user2.json
$rich-diffndiffdata/user1.jsondata/user2.jsonScreenshots
Package: richest
[![GitHub](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://raw.githubusercontent.com/mkfeuhrer/richest/master/LICENSE)[![PyPI Downloads](https://img.shields.io/pypi/dm/richest.svg)](https://pypi.org/project/richest/)[![PyPI](https://img.shields.io/pypi/v/richest.svg)](https://pypi.org/project/richest/)A Python package to extract World's Richest People (Based on Forbes Rankings)### Dependencies+ requests## Installation Instruction- Chef-CLI is available as a python package.- Open terminal and run ```pip install richest```- This installs the CLI app.- Now run richest --help to know the available commands- Enjoy !!### Example**To extract Top 20 Richest People**```richest --current```**To extract Top 20 Youngest Richest People**```richest --youngest```**Complete option list**```richest -husage: richest [-h] [--current] [--youngest] [--oldest] [--male] [--female]optional arguments:-h, --help  show this help message and exit--current   Get richest people currently--youngest  Get youngest richest people--oldest    Get oldest richest people--male      Get richest males--female    Get richest females```## FeedbackFeel free to send feedback on [Email](mailto:mohitfeuhrer@gmail.com) or [file an issue](https://github.com/mkfeuhrer/richest/issues).## Contributors- [Mohit Khare](https://github.com/mkfeuhrer)## Contribute- Feel free to report issues and bugs.It will be helpful for future launches of application.- All Suggestions are welcome.- Fork repository and Contribute.## AcknowledgmentThanks to awesome api - https://forbes400.herokuapp.com/Keywords: richest,programming language ranking,index,programming language,forbesPlatform: UNKNOWNDescription-Content-Type: text/markdown
Package: rich-format
rich_formatrich_formatreplicates python string formatting for richTextinstances adding the possibility to substitute also withText.>>>fromrich.consoleimportConsole>>>fromrich.textimportText>>>importrich_format>>>console=Console()>>>text=Text("Hello{name}",style="red on white")>>>formatted_text=t.format(name=Text("pom11"))>>>console.print(text)Hello{name}>>>console.print(formatted_text)Hellopom11See more examples runningrich_format.testor inspectthis.UsageFirst you need to importTextfrom rich so thatrich_formatworks.fromrich.textimportTextimportrich_formatTextualYou can userich_formatintextualto format easierreactivein custom widgetsrich_format.demofromtextual.reactiveimportreactivefromtextual.appimportApp,ComposeResultfromtextual.widgetsimportFooterfromtextual.widgetsimportStaticfromrich.textimportTextimportrich_formatimportrandomcity=[Text.from_markup("from [blue on red]London[/]"),Text.from_markup("from [magenta on blue]New York[/]"),Text.from_markup("from [green]Bucharest[/]"),Text.from_markup("from [red on white]Tokyo[/]")]classCustomHeader(Static):banner:Text=reactive(Text(""))world:str=reactive("")def__init__(self,template:str)->None:self.template=templatesuper().__init__()defwatch_banner(self,banner:Text)->None:self.update(banner)defwatch_world(self,world:str)->None:self.banner=Text(self.template).format(world=world)classDemoApp(App):BINDINGS=[("q","quit","Quit"),("h","toggle_header","Random header")]defcompose(self)->ComposeResult:yieldCustomHeader(template="Hello{world}")yieldFooter()defaction_toggle_header(self)->None:widget=self.query_one(CustomHeader)widget.world=random.choice(city)if__name__=="__main__":app=DemoApp()app.run()InstallationStable release - pypiTo installrich_formatrun this command in your terminalpipinstallrich_formatFrom sourcesThe sources for rich_format can be downloaded fromGithubclone the public repositorygitclonehttps://github.com/pom11/rich_formatinstall from sourcepythonsetup.pyinstall
Package: rich-graph
Graph UtilsImportant:This library is under active development and should be considered a work in progress with no guarantees of performance, correctness, or funcationality. Just don't use it yet, it'll be great when it's ready, I promise 😉Hello! Meetrich_graph- a graph library that loves you and just wants you to be happy.This library provides utility functions and pre-formed data structures for use when needing to represent data as a graph, with special attention paid to making those graphs easy to grok mentally by supporting the presence of arbitrary attributes on both nodes and edges. These attributes can be found in the node/edge'smetaattribute, e.g.Node.meta = {"arbitrary": "attribute", "foo": "bar"}Go forth and enjoy, and show some love by starring the repo on GitHub. Issues and Contributions are welcome!InstallationRun the following to install:pipinstallrich_graphExample Usagefromrich_graphimportstructs,traversal# Create a simple graph with 3 nodes and edges connecting themgraph=Graph()node1=Node(1)node2=Node(2)node3=Node(3)graph.add_node(node1)graph.add_node(node2)graph.add_node(node3)graph.add_edge(node1,node2)graph.add_edge(node1,node3)graph.add_edge(node2,node3)DevelopmentTo install rich_graph, along with the tools and dependencies required to develop and run tests, run the following in your virtual environment:pipinstall-e.[dev]