Saravanan666/pypi-org huggingface dataset:
Package: colormaps
ColormapsColormaps is a library of collection of colormaps or color palettes for Python. It's written in Python with matplotlib and numpy as dependencies. You can use Colormaps to customize matplotlib plots.Colormaps has colormaps or color palettes from:cartocolorscmoceancolorbrewercubehelixncar nclscientifictableaucarbonplancmashermay be moreDocs:https://pratiman-91.github.io/colormaps/Getting startedDependenciesPython with:matplotlibnumpyInstallationpip install colormapsor usingcondaconda install colormaps -c conda-forge`or usingmambamamba install colormapsor you can also use GitHub repogitclonehttps://github.com/pratiman-91/colormaps.gitcdcolormaps
pythonsetup.pyinstallUsing ColormapsImporting Colormapsimportcolormapsascmapscmaps.drought_severitycmaps.iceGetting discrete number of levelscmaps.ice.discrete(10)Shifting the colormapcmaps.ice.shift(0.5)Shifting and then discrete levelscmaps.ice.shift(0.5).discrete(10)Discrete levels then cut the colormap from left sidecmaps.ice.discrete(11).cut(0.25,'left')Concatenate two or more colormapsfromcolormaps.utilsimportconcatconcat1=concat(["ice","BkBlAqGrYeOrReViWh200"])Concatenate two or more colormaps based on ratiofromcolormaps.utilsimportconcatconcat2=concat([cmaps.ice,cmaps.BkBlAqGrYeOrReViWh200],ratios=[0.25,0.75])Matplotlib usage exampleimportmatplotlib.pyplotaspltimportcolormapsascmapsimportnumpyasnpx=y=np.arange(-3.0,3.01,0.05)X,Y=np.meshgrid(x,y)sigmax=sigmay=1.0mux=muy=sigmaxy=0.0Xmu=X-muxYmu=Y-muyrho=sigmaxy/(sigmax*sigmay)z=Xmu**2/sigmax**2+Ymu**2/sigmay**2-2*rho*Xmu*Ymu/(sigmax*sigmay)denom=2*np.pi*sigmax*sigmay*np.sqrt(1-rho**2)Z=np.exp(-z/(2*(1-rho**2)))/denomplt.pcolormesh(X,Y,Z,cmap=cmaps.cubehelix3_16_r)plt.colorbar()Finding ColormapsColormaps are pre-built and loaded at the time of importing.Show different collectionsfromcolormaps.utilsimportshow_cmaps_collectionshow_cmaps_collection(collection='cmasher')Show all collectionsfromcolormaps.utilsimportshow_cmaps_allshow_cmaps_all()This is just a sample! You will get a long list of all possible colormap collections.
Package: color-matcher
color-matcher enables color transfer across images which comes in handy for automatic color-grading
of photographs, paintings and film sequences as well as light-field and stopmotion corrections. The methods behind
the mappings are based on the approach from Reinhard et al., the Monge-Kantorovich Linearization (MKL) as proposed by
Pitie et al. and our analytical solution to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with
classical histogram matching. As shown below our HM-MVGD-HM compound outperforms existing methods.
Package: colormath
This module implements a large number of different color operations such as
color space conversions, Delta E, and density to spectral.RequirementsnumpyNetworkX 2.0+Python 2.7 or Python 3.5+InstallationThe easiest way to install colormath is via pip/easy_install:pip install colormathDocumentationFor documentation, see the project webpage at:http://python-colormath.readthedocs.org/There are also a lot of useful examples under the examples directory within
this directory.SupportHead over tohttps://github.com/gtaylor/python-colormathand submit an issue if you have any problems or questions.Legal Mumbo JumboCopyright (C) 2018Gregory TaylorThis software is licensed under the BSD License.
Package: color-name
Color-nameColor-name converts RGB values to English names.pip install color-nameExample Usage>>>importcolorname>>>colorname.get_color_name(255,0,0)'red'>>>colorname.get_color_name(129,128,128)'gray'>>>whilecolorname.get_pixel_color_name(600,800)!='white':...pass...VersioningThis project usesSemVerfor versioning. For the versions available, seereleases.AuthorsTim Vanderplas-Initial work-tvanderplas
Package: colornamer
Turns an RGB or LAB point into a hierarchical list of names: color family, common color, design color, and xkcd color, as  well as color type and color-or-neutral. Seehttps://github.com/stitchfix/colornamer/orhttps://multithreaded.stitchfix.com/blog/2020/09/02/what-color-is-this/for more details.
Package: coloro
Console Hex Color HighlighterInstallationpip3 install coloro --userFeaturesOutput text with highlighted hex colors from string/piped text/clipboardUsage Examplescoloro 'some #fff text #c574dd with colors'Highlight from argcoloro -n 'some ffccff text ef42f0 with colors'Allow highlights for colors without '#' prefixcoloro -cHighlight text from clipboardcoloro /some/file/with/colors.txtHighlight filecat /some/file.css | coloroHighlight from pipeScreens
Package: color-operations
color-operationsApply basic color-oriented image operations.Lightweight version ofrio-colorbut removing rasterio dependency.InstallYou can install color-operations using pippip install -U pip
pip install color-operationsBuild from sourcegit checkout https://github.com/vincentsarago/color-operations.git
cd color-operations
pip install -U pip
pip install -e .OperationsGammaadjustment adjusts RGB values according to a power law, effectively brightening or darkening the midtones. It can be very effective in satellite imagery for reducing atmospheric haze in the blue and green bands.Sigmoidalcontrast adjustment can alter the contrast and brightness of an image in a way that
matches human's non-linear visual perception. It works well to increase contrast without blowing out the very dark shadows or already-bright parts of the image.Saturationcan be thought of as the "colorfulness" of a pixel. Highly saturated colors are intense and almost cartoon-like, low saturation is more muted, closer to black and white. You can adjust saturation independently of brightness and hue but the data must be transformed into a different color space.Refhttps://github.com/mapbox/rio-color/blob/master/README.mdExamplesSigmoidalContrastBiasGammaRedGreenBlueSaturationCombinations of operationsRefhttps://github.com/mapbox/rio-color/blob/master/README.mdPython APIcolor_operations.operationsThe following functions accept and return numpyndarrays. The arrays are assumed to be scaled 0 to 1. In some cases, the input array is assumed to be in the RGB colorspace.All arrays use rasterio ordering with the shape as (bands, columns, rows). Be aware that other image processing software may use the (columns, rows, bands) axis order.sigmoidal(arr, contrast, bias)gamma(arr, g)saturation(rgb, proportion)simple_atmo(rgb, haze, contrast, bias)Thecolor_operations.operations.parse_operationsfunction takes anoperations stringand
returns a list of python functions which can be applied to an array.fromcolor_operationsimportparse_operationsops="gamma b 1.85, gamma rg 1.95, sigmoidal rgb 35 0.13, saturation 1.15"assertarr.shape[0]==3assertarr.min()>=0assertarr.max()<=1forfuncinparse_operations(ops):arr=func(arr)This provides a tiny domain specific language (DSL) to allow you
to compose ordered chains of image manipulations using the above operations.
For more information on operation strings, see therio colorcommand line help.color_operations.colorspaceThecolorspacemodule provides functions for converting scalars and numpy arrays between different colorspaces.fromcolor_operations.colorspaceimportColorSpaceascs# enum defining available color spacesfromcolor_operations.colorspaceimportconvert,convert_arrconvert_arr(array,src=cs.rgb,dst=cs.lch)# for arrays...convert(r,g,b,src=cs.rgb,dst=cs.lch)# for scalars...dict(cs.__members__)# can convert to/from any of these color spaces{'rgb':<ColorSpace.rgb:0>,'xyz':<ColorSpace.xyz:1>,'lab':<ColorSpace.lab:2>,'lch':<ColorSpace.lch:3>,'luv':<ColorSpace.luv:4>}
Package: colorp
colorPThis package is a small and simple utility for printing colored strings on consoles.colorPsupports 9 different formatting styles and several foreground and background colors!You can install it by issuing the following command on a UNIX terminal:sudopipinstall-icolorpUsage:Methods :-pPrint(args,text,br=?):args: is a dictionary object, which needs atleast one ofs,fgorbgdefined with the corresponding values as strings.args={'s':'bold','fg':'red','bg':'white'}text: is the string to be printed with the given stylingbr:[OPTIONAL ARGUMENT: default value=True], can set it toFalseif you need no linebreak after ouput.Eg():prints out examples of a few colors and styles for user visualization.Styling and Formatting:Theargsobject decides how the text will be formatted. Each key inargscan be one of certain pre-defined values. They are listed below:'s': Text styleValueDescription'plain'Formats the text as plain text'bold'Bolds the text'dim'Dims the text'italic'Italicizes the text'underline'Underlines the text'blink'Blinks the text repeatedly'reverse'Swaps foreground and background values'hidden'Hides the text on display'striked'Strikes off the desired text'fg': Font colorValue'black''red''green''yellow''blue''magenta''cyan''lightgray''darkgray'lightred''lightgreen''lightyellow''lightblue''lightmagenta''lightcyan''white''default''bg': Background colorValue'black''red''green''yellow''blue''magenta''cyan''lightgray''darkgray'lightred''lightgreen''lightyellow''lightblue''lightmagenta''lightcyan''white''default'NOTE:'bg'has the same possible values as'fg'.
Package: colorpage
Look at the world from perspective of one shipwright who come fromColorPagePlease take a look at our documentation for how to install and use colorpage:InstallationUsageUpdates are released regularly, with a new version every 3 months. More details can be found in our documentation:Release notesRelease processIf you find bugs, need help, or want to talk to the developers please use our mailing lists or chat rooms:Issue trackingUser IRCDiscourse channelIf you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:GitHub pageDev documentationDev mailing listDev IRCCode of ConductEveryone interacting in the colorpage project’s codebases, issue trackers, chat
rooms, and mailing lists is expected to follow theColorPage Code of Conduct.
Package: colorpalette
ContentsWhat is colorpalette?InstallationDocumentationGetting startedLatest source codeBug reportsLicense informationCitationWhat is colorpalette?colorpalette is an object oriented extension of theansicolors package. It features Color objects that color strings when called.InstallationGet the latest version of colorpalette fromhttps://pypi.python.org/pypi/colorpalette/If you have an installation of Python with pip, simple install it with:$ pip install colorpaletteTo get the git version, run:$ git clone git://github.com/yoelcortes/colorpaletteDocumentationcolorpalette’s documentation is available on the web:http://colorpalette.readthedocs.io/Getting startedTo get started, please go to:https://colorpalette.readthedocs.io/en/latest/GettingStarted.htmlLatest source codeThe latest development version of colorpalette’s sources can be obtained at:https://github.com/yoelcortes/colorpaletteBug reportsTo report bugs, please use the colorpalette’s Bug Tracker at:https://github.com/yoelcortes/colorpaletteLicense informationSeeLICENSE.txtfor information on the terms & conditions for usage
of this software, and a DISCLAIMER OF ALL WARRANTIES.Although not required by the colorpalette license, if it is convenient for you,
please cite colorpalette if used in your work. Please also consider contributing
any changes you make back, and benefit the community.CitationTo cite colorpalette in publications use:Yoel Cortes-Pena (2018). colorpalette: Objects for coloring strings
https://github.com/yoelcortes/colorpalette
Package: color-palette
Color PalettePython Package for easy coloringInstallationgithub:python-mpipinstallgit+https://github.com/SnowballSH/color_palette.git@masterPip:pipinstallcolor-paletteUsagefromcolor_paletteimportColor,mix,presetsmy_rgb=Color((255,0,0))# You can either call on rbgprint(my_rgb)# You can print the different values with both hex and rgbmy_hex=rgb.switch("hex")# You can switch from rgb to hex using this or the .to_rbg and .to_hex commandscyan=presets.cyan# get preset colors to code quickermixed=mix([my_rgb,cyan])# You can even mix them together!yellow=presets.yellow[1.6]# You can get shades and tints for colors by using [amount] after color -- 0 is the original colorprint(yellow)# In this case, 'yellow' is a light yellow color with 1.6 times lighter than normal.ContributeFound bugs? Want to suggest something? Create an issuehere.Or you can fork this project and create a pull request.
Package: color-palette-at
color_palette_atcolor_palette_at is a Python library that returns a list of most often occuring colors in the given image.You can define number of colors and color values format that will be returned.Currently supported formats:hexInstallationUse the package managerpipto install color_palette_at:pipinstallcolor_palette_atUsagefromcolor_palette_atimportColorPaletteprint(ColorPalette('path/to/an/image.jpg',5,'hex'))# Expected result:# ['#e0bb1e', '#c79121', '#b37027', '#ba6432', '#851f16']TestsYou will need apytestlibrary to run tests. After installation of said module, run this command in a directory where the color_palette_at library is located:pytestTo run all the tests.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: color-palette-cli
color_palette_clicolor_palette_cli is CLI to interact with color_palette_at library.InstallationUse the package managerpipto install color_palette_cli:pipinstallcolor_palette_cliUsage$ cli_color [--help] file_name [limit] [output_format]TestsYou will need apytestlibrary to run tests. After installation of said module, run this command in a directory where the color_palette_cli library is located:pytestTo run all the tests.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: colorpaletteconverter
ColorpaletteConverterExport colorpalettes in Python to the MacOS color helper.Usageimportcolorpaletteconverterascv# Create the palette, named "MyPythonPalette"mypalette=cv.Palette("MyPythonPalette")# Add a color using a key e.g. "White" and color described by (r, g, b, a)mypalette.add_color((1,1,1,1),"White")mypalette.add_color((1,0,0,1),"Red")mypalette.add_color((0,1,0,1),"Green")mypalette.add_color((0,0,1,1),"Blue")mypalette.add_color((0,0,1,0.5),"Translucent blue")# Save it to the default location. This will make it visible in the MacOS color palette.mypalette.save()# To save it to an alternative locationmypalette.save("mypalette.clr")More examples in thetutorial notebook.Use casesThis package helps to convert color palettes from for example Matplotlib or Seaborn, or your custom generated color palettes to the MacOS Color helper.Matplotlib color palettes:https://matplotlib.org/stable/tutorials/colors/colormaps.htmlSeaborn color palettes:https://seaborn.pydata.org/tutorial/color_palettes.htmlThe colors can be used in application like Apple Pages, Apple Keynote, Apple Numbers, Apple Final Cut Pro X, Microsoft Word, Microsoft Powerpoint and more.
Package: colorparse
colorparsecolorparseis a python package that will read and parse strings with defined color codes, showing their respective colors in the terminal. This way, a string can be easily colored, simplifying the work for the user. For the complete documentation, change log and more, visit thereadthedocs pageand thegithub page.InstallationTo install, upgrade or uninstall, use the following:$ pip install colorparse
   $ pip install --upgrade colorparse
   $ pip uninstall colorparseRecent Changes*the prefixes [t] refer to terminal-only, [m] for module-only and [d] for docs-only changes, respectively*# version 1.1.6   (2020 - 03 - 12)- Fixed color code overflow when ending specific color types consecutively (e.g. "/;g:w/ green text/;; with white background/:: would make this text green", returns the part of the string "would make this text green" with the former color green).
Package: colorpie
colorpieTerminal color style handler.Installation:python -m pip install [--upgrade] colorpieAvailable tools:fromcolorpieimportStyle4Bit,COLORS,HIGHLIGHTS,ATTRIBUTESasATTRSstyle=Style4Bit(color=COLORS.RED,highlight=HIGHLIGHTS.BLACK,attributes=[ATTRS.BOLD,ATTRS.SLOW_BLINK])if__name__=='__main__':print(style.format('Hello, World!'))
Package: color-plot
All rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: UNKNOWN
Platform: UNKNOWN
Package: color-pprint
color-pprintA simple package to pretty-printlists,dicts,tuples, etc. with color and highlight.Documentation SOON 	™You need help? Or have ideas/feedback?Open anIssue/Pull requeston GitHub, join thesupport-serveror send me a direct-message onDiscord:mccuber04InstallingTo install it fromPyPIuse:# Linux/macOSpython3-mpipinstall-Ucolor-pprint# Windowspy-3-mpipinstall-Ucolor-pprintTo install it fromGitHubuse:# Linux/macOSpython3-mpipinstall-Ugit+https://github.com/mccoderpy/color-pprint.git# Windowspy-mpipinstall-Ugit+https://github.com/mccoderpy/color-pprint.gitYou want to support me by sponsoring my projects? ->GitHub sponsors
Package: colorprint
Module colorprint~~~~~~~~~~~~~~Python module to print in color using py3k-style print function. It usesfunny hack, which allow to create print function instead standard printroutine and give it some "black" magic.Print function is like imported for __future__, but has three additionalparameters: color (foreground of text output), background (it's background)and format (bold, blink and so on).You can read more at __future__.print_function documentation.Usage example------------->>> from __future__ import print_function>>> from colorprint import *>>> print('Hello', 'world', color='blue', end='', sep=', ')>>> print('!', color='red', format=['bold', 'blink'])Hello, world!^-- blue    ^-- blinking, bold and red:copyright: 2012 Aleksey Rembish:license: BSD
Package: colorprint3
colorprint3A simple library to print with color and style on Python 3InstallationUse the package managerpipto install colorprint3.pipinstallcolorprint3UsageSame as build-inprint()function but have a few extra arguments :fg_color,bg_colorandstyle.colorprint3.print(*word,sep=None,end=None,file=None,flush=None,fg_color=None,bg_color=None,style=[])fg_colorvalues :black,red,green,yellow,blue,magenta,cyan,white,s_black,s_red,s_green,s_yellow,s_blue,s_magenta,s_cyan,s_white& Custom colors.bg_colorvalues :black,red,green,yellow,blue,magenta,cyan,white,s_black,s_red,s_green,s_yellow,s_blue,s_magenta,s_cyan,s_white& Custom colors.fg_colorandbg_coloralso accept direct integer input from 0 to 7.stylevalues :bold,underline,italic,faint. Accepting multiple style by putting them inside a list.Custom color format :[r,g,b]ContributingPlease open an issue to report a bug or give suggestion.LicenseGNU GPLv3+
Package: colorPrintConsole
简介在控制台中用于彩色打印的包采用的是亮色支持多值打印安装pip install --index-url https://pypi.org/simple colorPrintConsole -U使用fromcolorPrintConsoleimportColorPrintcp=ColorPrint()cp.red('红色文本')cp.green('绿色文本')cp.yellow('黄色文本')cp.blue('蓝色文本')cp.magenta('品红色文本')cp.cyan('青色文本')cp.red('123','456','789')# 多值打印展示
Package: color-printtext
color-printtextpypiwikiA module that specifies the color of print.How to useIt can be installed using pip.python3-mpipinstall-Ucolor-printtextOn Windows, install with this command.py-3-mpipinstall-Ucolor-printtextIf you have passed PATH, you can install it with this command.pipinstall-Ucolor-printtextInstall with
Sample codeimportcolorprinttextcolorprinttext.cprint('test','red')
Package: colorprt
ColorprtEnglish|中文It's a simple package for you to customize the console printing color.pypi:https://pypi.org/project/colorprt/ScreenShotsNew FeaturesWe add some default color config in our package.fromcolorprt.defaultimportwarn_color,success_color,error_colorwarn_color.print("Print a warn message")success_color.print("Print a success message")error_color.print("Print an error message")We found that some people use this package on linux server, so that there is no auto completions. It will trouble users.
Therefore, we add a feature that
You don't need to type:mode=;foreground=;background=just call functions or class like this:In old versions:fromcolorprtimportcolorprt,Back,Fore# CAUTION: Do not use this after version: 3.0.0colorprt("Hello World",backgound=Back.RED)Use new features:fromcolorprtimportcolorprt,Back,Forecolorprt("Hello World",Back.RED,Fore.YELLOW)UsageInstallationpipinstallcolorprtDetailed DocumentationFunctioncolorprtis aprintfuntion extention. You can customize the printing style.fromcolorprtimportcolorprt,Back,Forehello_else="Hello Michael"colorprt("Hello World",hello_else,Back.RED,Fore.BLUEend="x100 times\n")Back stands for background;Fore stands for foreground;Mode stands for printing mode. ( font style like: underline, bold, flash, reverse )Also, you can useColorprtConfigclass to set colored strings.fromcolorprtimportColorprtConfig,Mode,Back,Forepycolor_config=ColorprtConfig(Mode.BOLD,Back.DEFAULT,Fore.RED)# You can use ColorprtConfig to set a color string configurationcolored_formatted_str=pycolor_config("I love You!!")print(colored_formatted_str)# or just use print methodpycolor_config.print("I love you!!",end="x10086\n")If you just want the ansi colored formatted strings, you can usecolorstrclass.fromcolorprtimportcolorstr,Mode,Back,Fore,ColorprtConfighate_print_config=ColorprtConfig(Mode.UNDER_LINE,Back.DEFAULT,Fore.YELLOW)print(colorstr("I love You!!",Mode.BOLD,Back.DEFAULT,Fore.RED)+colorstr("I hate you",hate_print_config))if you use str() to force change to string. You will get>>> str(colorstr("I love You!!", Mode.BOLD, Back.DEFAULT, Fore.RED)
      + colorstr("I hate you", hate_print_config))
>>> '\x1b[0m\x1b[1;31mI love You!!\x1b[0m\x1b[4;33mI hate you\x1b[0m\x1b[0m'fromcolorprtimportcolorstr,Mode,Back,Fore,ColorprtConfighate_print_config=ColorprtConfig(Mode.UNDER_LINE,Back.DEFAULT,Fore.YELLOW)output=str(colorstr('I hate You',hate_print_config))
Package: colorr
Colorr PackageThis is a package to do with colors like picking them orStoring colors you come across that you can then retreive laterYou can email me here:My emailYou can also check out my other package, Timerr:timerrInstallInstall it by pip:pip install colorrDone!Change Log1.0.3----Name Changes1.0.2----Actually wrote the python script-Now it chooses colors-Also can save them in a big list-Can retreive the file1.0.1----Uploaded the module
Package: colors1
Colors1 library for PythonA library for working with colors in Python.Installationpipinstallcolors1Usagefromcolors1importcolorsprint(colors.terminalRed+"This is red"+colors.end)Addcolors.terminalRedor any color before your
string to make the string
colored, and usecolors.endto end the color. Usecolors.terminalcolors ONLY FOR TERMINAL PRINTING.You can also usecolors.hexRedorcolors.rgbRedto get the hex or rgb value of a color.