Saravanan666/pypi-org huggingface dataset:
Package: rich-tools
🔧 Rich ToolsA python package with helpful functions for use alongside with therichpython library.󠀠󠀠The current features are:Convert aPandasDataFrame into arichTable ➜df_to_table()By making this conversion, we can now pretty print a DataFrame in the terminal with rich. Bridging the gap between
pandas and rich also provides a path for loading external data into a rich Table using Pandas functions such as.from_csv()!Convert arichTable into aPandasDataFrame ➜table_to_df()By bridging the gap between a rich Table and a DataFrame, we can now take additional actions on our data such assaving the data to a csv using the Pandas function.to_csv()!Convert arichTable into a list of dictionaries. ➜table_to_dicts()Get your tables rows as a list of dictionaries with column names as key, and row contents as values.Striprichmarkup tags from a string. ➜strip_markup_tags()Helper function to remove tags from text formatted with rich."[bold]Bold[/bold]"becomes"Bold"Installation$pipinstallrich-toolsExampleAdditional examples can be found in theexamplesdir.# Print csv data to the terminal as a pretty printed rich formatted tableimportpandasaspdfromrichimportprintfromrich_toolsimportdf_to_tableif__name__=='__main__':df=pd.read_csv("sample_input.csv")table=df_to_table(df)print(table)CreditsLike therichpackage itself, its creatorWill McGuganis awesome! Check outTextual"a TUI (Text User Interface) framework for
Python inspired by modern web development". Thank you for the advice you've given on this project! 🙏I am grateful for folks who give some of their time to this project in any form. Check out the list ofcontributorsand learn more about contributinghere.
Package: rich-tracebacks
rich-tracebacksrich-tracebacks automates the installation
ofRich's traceback handlerin Python
programs. Compared to Rich's
ownsanctioned methodof automatically installing its traceback handler, rich-tracebacks is markedly simpler and agnostic to your virtual
environment.Installationpipinstallrich-tracebacksUsageEnablingSet theRICH_TRACEBACKSenvironment variable. The value of the variable doesn't matter, but we'll use1as an
example.exportRICH_TRACEBACKS=1That's it. Rich's traceback handler will be automatically installed each time you run your program.DisablingUnset theRICH_TRACEBACKSenvironment variable.unsetRICH_TRACEBACKSConfigurationYou can configure the traceback handler with
itssupported optionsby creating anrt_config.pyfile at your project's root. The file should contain a dictionary namedconfigthat maps option names to their intended values. For example:# rt_config.pyconfig={"show_locals":True,"width":120,"theme":"monokai",...}Options that are not defined inrt_config.pywill fall back to their default values. Ifrt_config.pydoes not exist, all options will fall back to their default values.A note on thesuppressoptionRich's traceback handler supports asuppressoption to which you can pass an iterable of modules and paths to be
excluded from tracebacks. To suppress a module, you would normally need to import the module and then pass the
module object to thesuppressoption. For example:importloctocatfromrich.tracebackimportinstallinstall(suppress=[loctocat])With rich-tracebacks, you also have the option of simply passing the module's name as a string. For example:# rt_config.pyconfig={"suppress":["loctocat"],...}rich-tracebacks will do the work of importing the module for you and passing the module object to Rich.
Names it can't import will be passed to Rich as literal strings, which will in turn treat them as paths.FAQQ: I use PyCharm and rich-tracebacks doesn't seem to be working if my program callssys.excepthookwhile I'm using the debugger, please help.A: Congratulations on encountering this ridiculously niche isssue. Setting theRICH_TRACEBACKS_PYCHARMenvironment
variable in the relevant run configuration will apply a very much experimental fix for this issue. If it doesn't work,open an issueand I will try to help you as best I can.Licenserich-tracebacks is licensed under
theMIT License.
Package: rich-typer
Rich Typer介绍本项目是将Rich和Typer结合在一起，将CLI打造的更加美观漂亮。安装pipinstallrich_typer或者使用poetry安装gitclonehttps://github.com/Elinpf/rich_typercdrich_typer
poetrybuild
pipinstalldist/<whl_file>使用完全兼容Typer语法，具体语法细节参考Typer官方文档除此之外增加了如下几个参数：banner增加标题banner_justify标题位置epilog_blend底部信息的渐变色usage自定义UsageExamplefromrich_typerimportRichTyper,Argument,Optionapp=RichTyper()banner=f"[b]Rich Typer[/b] [magenta][/] 🤑\n\n[dim]将 Rich 与 Typer 结合起来，使界面更加漂亮。\n"url="♥ https://github.com/Elinpf/rich_typer"@app.command(banner=banner,banner_justify='center',epilog=url)defmain(name:str=Argument(...,help="Name of the [green]person to greet[/]."),message:str=Option('ms','-m','--message',help="The message [red]to[/] display"),version:bool=Option(False,'-v','--version',help="Show the [u]version[/] and exit"),)->None:"""[bold][blue]Rich Typer[/] example."""...app()
Package: richtypes
RICHTYPESEnhanced python Datatype with rich extended methods.Types SupportedlistdictsettuplestrInstallpipinstallrichtypesExamplesRichListfromrichtypesimportRichListrl=RichList(1,2,3,4,5,6,7,8,9,10,11)# create a RichListrl.append(12)# append a number# [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]rl.length# length of the list# 12# function to check evendefis_even(num):returnnum%2==0rl.where(is_even)# filter list which follows is_even func# [2, 4, 6, 8, 10]# use inplace=False to return a new listnew=rl.where(is_even,inplace=False)# [2, 4, 6, 8, 10]rl.first_where(is_even)# first element which follows is_even func# 2RichDictfromrichtypesimportRichDictrd=RichDict(a=1,b=2,c=3,d=4,e=5)# create a RichDictrd.length# length of the dict# 5rd.first_item# first item of the dict# {'a': 1}rd.replace_key(old_key='a',new_key='r')# replace key# {'b': 2, 'c': 3, 'd': 4, 'e': 5, 'r': 1}
Package: richtypo
# Richtypo — the only web typograph that don't make a mess out of your textRichtypo assumes that your text already has right dashes and quotes. The main concern is to addnon-breaking spaces to the right places.This project is heavily inspired by Artem Sapegin's [richtypo](https://github.com/sapegin/richtypo.js/).[![PyPI version](https://badge.fury.io/py/richtypo.svg)](https://badge.fury.io/py/richtypo) [![Build Status](https://travis-ci.org/f213/richtypo.py.svg?branch=master)](https://travis-ci.org/f213/richtypo.py)[![codecov](https://codecov.io/gh/f213/richtypo.py/branch/master/graph/badge.svg)](https://codecov.io/gh/f213/richtypo.py)## Features- Blazing fast, aimed for render-time usage.- Native Russian support.- HTML, Markdown and Plain-text aware, does not break your markup.- Your text stays readable and indexable — richtypo does not produce HTML entities and other messy stuff.- Easy integration with Jinja2, Django templates and any other language.- Well tested Python3 and Python2 support. For py2 only unicode input is accepted.- Easily extendable through smallest possible regular expressions defined in YAML with in-place specifications.## Installation```shpip install richtypo```## Usage```pythonfrom richtypo import Richtypor = Richtypo(ruleset='ru-lite')well_done = r.richtypo(text)```### Jinja2 filter```pythonfrom richtypo.filter import filterenv = jinja2.Environment(filters={'richtypo': filter})```Template:```html{{ text | richtypo('ru-lite') }}```### Django filter```python# your_app/templatetags/richtypo.pyfrom django import templatefrom django.template.defaultfilters import stringfilterfrom django.utils.safestring import mark_safefrom richtypo.filter import filter as typographregister = template.Library()@register.filter@stringfilterdef richtypo(value, ruleset='generic'):return mark_safe(typograph(value, ruleset))```Template:```html{% load richtypo %}{{ object.text | richtypo:"ru-lite"}}```## LicenseMIT
Package: richuru
richuru - Using Rich in Loguru to colour the logs简体中文| Englishrichuru is a lightweight dependency that providesrich's powerful terminal rendering support forloguru.This project is sourced and independent from the componentgraia.amnesia.logofGraia Amnesia,
and is modified from the original implementation of @BlueGlassBlock.Quick StartInstallrichuru:elaina@localhost$pipinstallrichuru

elaina@localhost$pdmaddrichuru

elaina@localhost$poetryaddrichuruTry it in REPL:>>>importrichuru>>>richuru.install()>>>>>>fromloguruimportlogger>>>logger.info("Hello World!",alt="Hello, [bold magenta]World[/bold magenta]!")richuruis designed as an optional dependency, which means that you need to provide a fallback pattern when usingrichuruwherever possible, to be compatible with end-users who do not haverichuruenabled.Providealtinlogger.<method>(...)with thealtoption to makerichururecognize and enablerich's rich text functionality.Of course, you can also specify an entire entry's rich text style without usingalt:logger.info("i'm in rich!",style="bold red")which is equivalent to :logger.info("i'm in rich!",alt="[bold red]i'm in rich![/]")# without richuru: no, you are not in rich :PPrint theConsoleRenderableobject:fromrich.markdownimportMarkdownwithopen("README.md")asreadme:markdown=Markdown(readme.read())logger.info("fallback msg",rich=markdown)This works with static elements likeTable,Markdown, and dynamic elements likeStatus,Progress, which have not been tested yet.Open Source LicenseThis project is open source under the MIT License.
Package: richvalues
RichValues is a Python 3 library for working with numeric values with uncertainties, upper/lower limits and finite intervals, which may be calledrich values.With it, one can import rich values written in plain text documents in an easily readable format, operate with them propagating the uncertainties automatically, and export them in the same formatting style as the import. It also allows to easily plot rich values and to make fits to any function, taking into account the uncertainties and the upper/limits or finite intervals. Moreover, correlations between variables are taken into account when performing calculations with rich values.The libraries NumPy, Pandas, SciPy and Matplotlib are required by RichValues. A user guide and a quick tutorial are available on GitHub:https://github.com/andresmegias/richvalues/.
Package: richviewsdk
RichView Python SDKThis Python SDK allows you to interact with the RichView API to manage your reports. You can authenticate, retrieve, duplicate, update, and delete reports. You can also manage the charts within the reports.InstallationTo install the SDK, you can use pip:pipinstallrichviewsdkUsageHere is a typical use case:# Import necessary librariesimportpandasaspdimportnumpyasnpfromrichviewsdkimportRichViewSession,ParagraphBlock# Step 1: We authenticate using our PW and Passwordwithopen('pws.txt')asf:email,password=f.read().split(',')session=RichViewSession.authenticate_with_password(email,password)# Step 2: Lets retrieve all the RichView reports in our accountreports=session.get_reports()# Step 3: Lets choose the report named GummiesJune23 of the reports and retrieves itold_report=next(reportforreportinreportsifreport.title=='GummiesJune23')# Step 4: Lets duplicate the report and renames it GummiesJuly23report=old_report.duplicate()report=report.set_title('GummiesJuly23')# Step 5: Lets query the report for all the chartscharts=report.get_charts()# Step 6: Lets  now get the chart we want to update by it's IDchart_id=[chart.block_idforchartinchartsifchart.title=='Gummy Bear Price Index'][0]chart=report.get_chart(chart_id)# Step 7: Lets retrieve the data of the chart to see how it's structuredold_data=chart.get_data()# Step 8: Lets generate a fresh of data for the chart# This is a placeholder, replace with actual data generation codenew_data=old_data.copy()# replace with actual data generation code# Step 9: Lets update the data of the chart and changes the chart typeall_data=pd.concat([old_data,new_data])all_data=all_data.rename(columns={'Gummy Bear Price Index | Line':'Gummy Bear Price Index | Area'})chart=chart.set_data(all_data)# Step 10: Lets update the title of the chartchart=chart.set_title('Gummy Bear Price Index July Update')# Step 11: Lets add a paragraph of the textparagraph=ParagraphBlock(report.report_id,'I can add some autogenerated text',session)report.add_block(paragraph)DocumentationFor more detailed documentation, please refer to the official RichView API documentation.SupportIf you encounter any issues or have any questions, please contact our support team atsupport@therichview.com
Package: richwx
RichWxA CLI tool to display weather alerts in the terminal using the Rich library. This is a for fun python package that leverages Rich, NWSAPy, and Click to display weather information in your terminal. Here's an example of whenrichwx alerts state TXis ran:To install, it is (highly) recommended to create a virtual environment:python -m venv env
source env/bin/activateor on windows:python -m venv env
./env/Scripts/activateFrom here, install it using pip:pip install richwx. You can also install it directly into your base environment (i.e. without setting up a virtual environment), but it's generally good practice to not install anything to your local machine's base environment.Open a new terminal and type:richwx intro- this will print out a nice little intro and confirm for you that the package works as intended. If you get errors, please open an issue.User AgentThe user agent is highly encouraged by the National Weather Service API maintainers. It's essentially "metadata" that the maintainers would like to have in the event there's a security issue with the application; they use it as a method to contact you. This information is only stored within the environment. Seethe API docsfor more information.All user agent-related content can be found underauth(i.e.rich auth ...).You can control what the user agent is set to by checking its value:richwx auth check.You can set the value:richwx auth set [contact], where [contact] is your information.To reset the value to it's default, userichwx auth purge.It's always better safe than sorry, don't put any personal information here that you might not want in the wrong hands. This information is only sent to the API in a header format, but it is savedlocallyin the current environment.Using RichWxAt any point, you can type--helpto get additional information about the specific command. I.e.richwx alerts --help.Alerts by StateThe Alerts leverage the/alertsendpoint within the API. SimplyTyperichwx --helpto pull up a help menu. At any point, you can pull up a help menu
by appending--helpto the end of the command.The only functionality that is implemented is alerts by state. That is:richwx alerts state [state]. You can input the full name of the state or the 2 letter abbreviation.By adding the flag--show-id, the ID to the specific alert will show it's associated ID. This is necessary to be able to look at individual details of a specific alert.Alerts by IDIf you get the alerts by ID (i.e.richwx alerts id [id]), you'll be able to pull up specific information about the alert:Developers NoteThat's it. That's the documentation. If you have questions, reach out to me. If there is enough community support, I will be more than happy to maintain the package and continue development with features the community would like to see.I do also allow others to contribute to this package and make suggestions. If you would like to make a suggestion, please do not open an issue, but rather post in theideas discussion boardon GitHub.
Package: rick
# rick[![Tests](https://github.com/oddbit-project/rick/workflows/Tests/badge.svg?branch=master)](https://github.com/oddbit-project/rick/actions)
[![pypi](https://img.shields.io/pypi/v/rick.svg)](https://pypi.org/project/rick/)
[![license](https://img.shields.io/pypi/l/rick.svg)](https://git.oddbit.org/OddBit/rick/src/branch/master/LICENSE)—Python plumbing for micro-framework based applicationsNote: This library is still under development; things may change place or be rewritten with a different spec between
releases.## DocumentationDocumentation is a work-in-progress. Please check what is available here: [Documentation](https://oddbit-project.github.io/rick/)Core components:
- Dependency Injection class;
- Resource loader (class factory);
- Class registry;
- Misc. Container classes;Request components:
- Validator registry w/ [validators](https://docs.oddbit.org/rick/validators/validator_list/);
- [Validation class](https://docs.oddbit.org/rick/validators/);
- [Request validation](https://docs.oddbit.org/rick/forms/requests/);
- [Forms](https://docs.oddbit.org/rick/forms/);
- Filters;Resource components:
- Configuration loader functions (environment, json);
- Console operation w/color;
- Cache facade w/ Redis support;Misc components:
- Hasher;
- Event Manager;
- Misc mixins;
- Extended json serializer;
Package: rickandmorty
Rick And Morty ClientPython implementation for the Rick and Morty API (https://rickandmortyapi.com/)AboutAll methods return jsonInstallation:pip install rickandmortyImport:import rickandmortyBase class features:from rickandmorty.base import BaseIt does not return anything. It was created for easy use of the base url(https://rickandmortyapi.com/api/) in other classes.Characters class features:from rickandmorty.character_client import CharactersIt includes 4 funtions:1.getAll(): Returns, all characters information.2.getSingle():Returns, the properties of the given number's defined character (Between 1 to 671).3.getMultiple(): Returns, The properties of the given numbers' defined characters (Between 1 to 671).4.filter():Returns, Characters matching the given values(name,status,species,type,gender).Locations class features:from rickandmorty.location_client import LocationsIt includes 4 funtions:1.getAll(): Returns, all locations information.2.getSingle():Returns, the properties of the given number's defined location (Between 1 to 108).3.getMultiple(): Returns, The properties of the given numbers' defined locations (Between 1 to 108).4.filter():Returns, Locations matching the given values(name,type,dimension).Episodes class features:from rickandmorty.episode_client import EpisodesIt includes 4 funtions:1.getAll(): Returns, all episodes information.2.getSingle():Returns, the properties of the given number's defined episode (Between 1 to 42).3.getMultiple(): Returns, The properties of the given numbers' defined episodes (Between 1 to 42).4.filter():Returns, Episodes matching the given values(name,episode).For detailed information:Visit official API Docshttps://rickandmortyapi.com/documentation
Package: rickandmorty-SDK
rickandmorty_sdkAcquisition of data from Rick and Morty characters through synchronous requests to theRick and Morty APILibrary with two options:List all characters: shows the names of all the characters and their identifierShow character info: by entering the identifier of a character, it shows the following information:NameStatusSpeciesTypeGenderOriginLocationCan be used as follows:importrickAndMortySDKasramsBeing able to access its functions in the following way:rams.listAllCharacters()rams.showCharacterInfo('id')Copyright 2021 Alonso Martin-ToledanoPermission 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.Change Log0.0.1 (02/11/2021)First Release0.0.2 (03/11/2021)Update repository link
Package: rick-mailer
Rick-mailer - Library to send emailsrick_mailer is a standalone version of Django's email library implementation, with minor changes.Installation$pip3installrick-mailerUsagefromrick_mailerimportSMTPFactory,Mailercfg={'smtp_host':'127.0.0.1','smtp_port':25,'smtp_username':'relay@local','smtp_password':'securePassword','smtp_use_tls':False,'smtp_use_ssl':False,}conn=SMTPFactory(cfg)mailer=Mailer(conn)mailer.send_mail('some subject','message contents','noreply@localhost',['user1@domain.tld','user2@domain.tld'])Related toolsCheck outMailHog, a mail testing tool for developers.LicenseAs rick_mailer is mostly Django code, it is licensed under Django license and copyright - see the includedLicense file.
Package: rick-portal-gun
rick-portal-gunAwesome Portal GunUsage:$rick-portal-gun[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:load: Load the portal gunshoot: Shoot the portal gunrick-portal-gun loadLoad the portal gunUsage:$rick-portal-gunload[OPTIONS]Options:--help: Show this message and exit.rick-portal-gun shootShoot the portal gunUsage:$rick-portal-gunshoot[OPTIONS]Options:--help: Show this message and exit.
Package: rick-roll
Rick-rollRick-roll is a Python module for your rickrolling needs (which will never let you down).InstallationUse the package managerpipto install rick-roll.pipinstallrick-rollUsageimportrick_roll# opens the classic rickrollrick_roll.rickroll()# opens a more subtle rickroll, chosen randomlyrick_roll.subtle_rickroll()# prints some lyricsprint(rick_roll.rickroll_text(6))# raises the very useful RickRollException (optionally, provide a message)raiserick_roll.RickRollException("you've let me down")ContributingPull requests are welcome, but keep in mind this is mostly a joke.LicenseMIT
Package: ricks-auth-service-client
ricks_auth_service_clientAn async python client for my custom auth microservice.Routes Coveredinitializationfromricks_auth_service_clientimportAuthClientauth_client=AuthClient(host="https://auth.example.com",app_id="37f9a26d-03c8-4b7c-86ad-132bb82e8e38")/otp/request/Start otp authentication flow with server.result=awaitauth_client.authenticate("test@example.com",flow="otp")/otp/confirm/Complete authentication with email and generated code.result=awaitauth_client.submit_code("test@example.com","12345678")/token/verify/Send idToken to server for verification.result=awaitauth_client.verify_token_remote(token_submitted_by_client)/token/refresh/Request a new ID Token from the server using a refresh tokennew_token=awaitauth_client.refresh(refresh_token_from_client)/app/Get more info about this app from the server.info=awaitauth_client.app_info()/magic/request/Start authentication using magic link flow.result=awaitauth_client.authenticate("test@example.com",flow="magic")Local VerificationVerify and decode an ID Token on directly in the app without having to
call out every timeresult=awaitauth_client.verify(id_token_from_client)# {"headers": {"alg": "ES256", "type": "JWT"}, "claims": {"sub": "user@email.com", "exp": "test@example.com"}# etc.
Package: ricksay
RicksayFunny quotes from Rick & Morty Adventures for your console.
Based on work made byponysayproject.InstallationInstall:pip3 install ricksayRun:echo "Hello" | ricksayPlatformsTested on Mac and Linux.
Maybe works on WSL too, not sure.SourcesQuotes fromIMDB.Pictures fromSprites ResourceforPocket Mortiesgame.
And turned to magic ponies via util-say!