Saravanan666/pypi-org huggingface dataset:
Package: coloquinte
Coloquinte Place&RouteColoquinte is a Place&Route tool for electronic circuits.
Its goal is to provide a single package of well-tested and well-tuned Place&Route algorithms, to be used in open source electronic design toolchains.This replaces and extends theplacement libraryused in theCoriolistoolchain.Using ColoquinteISPD placement and routing benchmarks are available directly in this repository using Git LFS.Placement benchmarkscan be run with the Python package:coloquinteISPD06/adaptec1For other applications, you can use Coloquinte as a C++ library or a Python package: seesrc/coloquinte.hpporhelp(coloquinte.Circuit).Installing ColoquintePython packageOn Linux, you may install Coloquinte from pip:pipinstallcoloquinteFor the latest version or for other OSes, install the dependencies and build the module. For example:sudoapt-getinstallg++cmakelibboost-all-devlibeigen3-devliblemon-devcdpycoloquinte
pythonsetup.pyinstallC++ libraryInstall dependencies and build Coloquinte using CMake:sudoapt-getinstallg++cmakelibboost-all-devlibeigen3-devliblemon-dev
cmake-Bbuild;cmake--buildbuild;ctest--test-dirbuildOr using Meson:mesonsetupbuild;mesoncompile-Cbuild;mesontest-CbuildBenchmarksColoquinte is tested on theISPD06 benchmark suite. Below is the reported half-perimeter wirelength on these benchmarks (x107) for various effort parameters.
Higher effort = higher quality but higher runtime.BenchmarkEffort 1 WLEffort 3 WLEffort 6 WLadaptec18,047,627,55adaptec28,838,488,38adaptec321,0720,3119,95adaptec418,8417,9717,77adaptec532,6531,1830,89bigblue110,019,369,20bigblue214,7914,2514,17bigblue335,2332,6731,98bigblue483,1579,1677,66newblue160,6818,7534,54newblue219,3818,3117,97newblue333,7026,0625,84newblue424,3223,3523,33newblue542,2939,3939,02newblue648,4345,8045,39newblue7102,1197,8196,47
Package: color2vec
Color2VecRight now this package is only forgreendeck'sinternal use. This will help to get vectors for a color text or RGB value.Install from piphttps://pypi.org/project/color2vec/pip install color2vecHow to use ?import the libraryimportcolor2vecimportColor2Vecclassfromcolor2vecimportColor2VecinitializeColor2Vecobject.color2vec=Color2Vec()convert RGB to Vector# RGB2vecprint("RGB2vec:\n")print(color2vec.RGB2vec([255.0,0.0,0.0]))convert RGB to LAB color space.# RGB2LABprint("RGB2LAB:\n")print(color2vec.RGB2LAB([255.0,0.0,0.0]))convert a color string to RGB color space.# string2RGBprint("string2RGB:\n")print(color2vec.string2RGB("Greendeck"))convert a color string to vector.# string2vecprint("string2vec:\n")print(color2vec.string2vec("Greendeck"))convert a color string to LAB color space.# string2LABprint("string2LAB:\n")print(color2vec.string2LAB("Greendeck"))Build an Annoy index.# Annoy Indexcolor2vec.buildAnnoy(items,type="string")'''Items is a list datatype. It can contains either list of color string or RGB colors. Type can be `string` or `RGB`'''Find similar items from an annoy index.# Annoy Indexcolor2vec.similar(target,build_annoy,k=5,include_distance=True)'''target can be a color string or RGB array, k is the no of similar items you want. Keep include distance `True` if you want distance across all similar items.'''Find distance between two item.# Annoy Indexcolor2vec.distance(items,type="string")'''Length of items array should be two. Type can be `string` or `RGB` based on items type.'''Howtobuildyourpippackage*openanaccountherehttps://pypi.org/Intheparentdirectory*```pythonsetup.pysdistbdist_wheel```*```twineuploaddist/*```Updateyourpackage*```pythonsetup.pysdist```*```twineuploaddist/*```references*https://medium.com/small-things-about-python/lets-talk-about-python-packaging-6d84b81f1bb5*https://packaging.python.org/tutorials/packaging-projects/RabbitMQ# Thank You
Package: color4console
color4consolecolor4console enables you to print colorful text without wasting time experimenting with various color combinations. It comes with a predefined color scheme. The color of the text is determined by the chosen theme.
This package's goal is to keep things as simple as possible. When the color of a text line is red, for example, bolding, underlining, or highlighting it is not essential. In the same way, if a text line is underlined, it may not be necessary to color it.InstallationYou need to install the package using pip.pip install color4consolePre defined themes:You can chose any of the following theme. Text color will automatically set based on your selected theme.default
light
dark
highlight
symbolColor Supported Functions:info()
success()
warning()
error()
fatal()Other Functions:normal()
bold()
underline()
italic()
light()
blink()UsageIn your terminal or python file, use as below.fromcolor4consoleimport*log=ColorTheme("light")log.error("This is a SAMPLE ERROR message.")You can also use following function to check all output of a sample message:fromcolor4consoleimport*ColorTest("This is a SAMPLE TEXT to test.")
Package: color4py
color4pyA Project which allows you to use colors in the terminal!ColoringFadingStylingUsageFor the usage you need first to install the library!pip install color4pyColoringAll ColorsBLACK

CYAN

BLUE

GREEN

MAGENTA

RED

WHITE

YELLOW

LIGHTBLACK

LIGHTGREEN

LIGHTGREEN

LIGHTBLUE

LIGHTMAGENTA

LIGHTRED

LIGHTYELLOW

LIGHTWHITEfromcolor4pyimportColoringprint(Coloring.RED+"Colored Text")FadingEvery Fadesblackwhite

purplepink

greenblue

water

yellowred

pinkred

purpleblue

greenyellow

glitchfromcolor4pyimportFadeprint(Effect.PURPLEPINK("Faded Text\nNow with color4py :)"))Thanks for the contributors <3BillyTheGoat356Tartleyxl
Package: color50
color50A lightweight Python package for colorful output at the command line.Created as a final project submission for Harvard University's CS50P course,color50is a package I designed to add a little extra flavor to standard
output print statements. This is my first ever attempt at making a Python
package from scratch, and I'm excited to share it with fellow Python developers
and CS50 students.Included modulescolorColorclasscore_functionsrgbfunctionhexcodefunctioncssfunctioncolorizefunction (decorator)colorstrColorStrclassconstantsInstallationTo installcolor50, execute the following command using thepipinstaller:pip install color50Sample usageWithcolor50installed, the following code would print"Hello, World!"to standard output as purple-colored text.fromcolor50importrgb,constantsmy_color=rgb(128,0,128)print(my_color+"Hello, World!"+constants.RESET)For more detailed information on usingcolor50in your Python projects, please refer to the documentation atcolor50.readthedocs.io.
Package: coloraide
ColorAideOverviewColorAide is a pure Python, object oriented approach to colors.>>>fromcoloraideimportColor>>>c=Color("red")>>>c.to_string()'rgb(255 0 0)'>>>c.convert('hsl').to_string()'hsl(0 100% 50%)'>>>c.set("lch.chroma",30).to_string()'rgb(173.81 114.29 97.218)'>>>Color("blue").mix("yellow",space="lch").to_string()'rgb(255 65.751 107.47)'ColorAide particularly has a focus on the following:Accurate colors.Proper round tripping (where reasonable).Be generally easy to pick up for the average user.Support modern CSS color spaces and syntax.Make accessible many new and old non-CSS color spaces.Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, filters,
correlated color temperature, color vision deficiency simulation, etc.Provide a plugin API to extend supported color spaces and approaches to various utilities.Allow users to configure defaults to their liking.With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in
different CSS formats, and much more!Documentationhttps://facelessuser.github.io/coloraideLicenseMIT
Package: coloraide-extras
ColorAide ExtrasOverviewColorAide Extras is an add-on pack containing various plugins forColorAide.
The idea behind ColorAide Extras is to provide an environment for experimental color spaces, ∆E methods, and other
plugins.Normally, it is advisable to only cherry pick color spaces you need. Rarely do people need every color space. This can
be done simply by registering the color spaces you'd like.>>>fromcoloraideimportColorasBase>>>fromcoloraide_extras.spaces.uvwimportUVW>>>classColor(Base):......>>>Color.register(UVW())>>>Color('red').convert('uvw')color(--uvw171.824.71552.261/1)But, if you want access to all the color spaces for both ColorAide and ColorAide Extras, simply importColorfromcoloraide_extrasinstead ofcoloraide:>>>fromcoloraide_extras.everythingimportColorAllasColor>>>Color('color(--uvw 171.8 24.715 52.261 / 1)')color(--uvw171.824.71552.261/1)Documentationhttps://facelessuser.github.io/coloraide-extrasLicenseMIT
Package: colorAlphabet
ColorAlphabetColorAlphabet a Python package to colour text on a terminal unsing
Paul Green-Armytage color alphabet.Paul Green-Armytage color alphabetThe paper "Paul Green-Armytage color alphabet" by Paul Green-Armytage
can be found athttps://aic-color.org/resources/Documents/jaic_v5_06.pdfLimitsTested only on xterm and Konsole terminalsWho do I talk to?Roberto Vidmar
Package: colorama-terminal
colorama-terminal在终端有颜色地打印python变量。使用带颜色的字符串Colormsg类importcolorama_terminalasct# 打印紫色的你好hello=ct.Colormsg("helloworld").set_color('MAGENTA')print(hello)# 打印复杂的数据raw_colormsg=ct.Colormsg.from_built_in_type([{1:True},{"2":False}])print(raw_colormsg)# 打印复杂的数据ct.print([{1:True},{"2":False}])其他功能proportion_bar shell函数fromcolorama_terminalimport*#内置的print被覆盖了# 进度条importtimeforiinrange(0,101):time.sleep(0.02)proportion_bar(i/100,'MAGENTA')print('\nOK')# 进入交互式shell()
Package: coloranalysis
#coloranalysiscoloranalysis is a python package for calculating the percentage of area covered by one or more colors in an image.###Prerequisitesnumpy, opencv and matplotlib are required to execute coloranalysis, you can download them using the following commands:` pip install numpy pip installopencv-pythonpip install matplotlib `###InstallingYou can either clone or download this repository, or use this command:` pip install coloranalysis `###UsageSee [this notebook](https://github.com/sravyadhulipala/coloranalysis/blob/master/example/colorAreasExample.ipynb) for an example program on how to use this package. However, reading this document entirely is recommended.Let us consider this image of a rainbow.<img src=https://github.com/sravyadhulipala/coloranalysis/blob/master/example/IPTestRainbow.jpg width=”400” height=”200”>To know the area covered by red color, or the area covered by multiple colors in the image, we should get the HEX codes using a [colorpicker.](https://imagecolorpicker.com/)In the above image, HEX codes of all colors are: [“#FE0000”, “#FD6400”, “#FFFF02”, “#008101”, “#0000FE”, “#4B0081”, “#BC31FD”]Import colorArea, the class that calculates the area of the colors we want, as follows.` from coloranalysis.colors import colorAreas `colorAreas takes no arguments.getAreareturnsa list of the percentages of area covered by the given colors.argumentshexColours: A list of strings representing the HEX codes.path: A string specifying the path of the image.diff: An integer to determine the lower and upper boundaries of the given colors, in the HSV color space.hexColours - colour with a ‘u’For a digital image as above, the recommendeddiffvalue is 10. While the recommendeddiffvalue for images of real-life objects is 30-50.
For more information on HSV color space, see [this link.](https://www.linuxtopia.org/online_books/graphics_tools/gimp_advanced_guide/gimp_guide_node51.html)detectColorreturnsa tuple with ‘mask’ and ‘result’ representing the pixels that match a single colorarguments-colour: Values of the color in HSV color space, in the range H[0-360], S[0-100], V[0-100]
-img: A numpy array returned by cv2.imread()
-hsv_img: A numpy array returned by cv2.cvtColor()
-diff: An integer to determine the lower and upper boundaries of the given colors, in the HSV color space.colour - colour with a ‘u’‘mask’ and ‘result’ can be used to visualize the presence of the color in the given imageconvertHEXColoursreturnsa tuple with two lists representing values of the colors in HSV colorspace and RGB colorspace respectively.arguments-hexColours: A list of strings representing the HEX codes.
Package: colorant
ColorantIntroSets text colors and effects in console.InstallationpipinstallcolorantFeaturesForeground and background colorsBlackRedGreenYellowBlueMagentaCyanWhiteBright blackBright redBright greenBright yellowBright blueBright magentaBright cyanBright whiteDecorationsBoldUnderlineReversedFunction chaininge.g.Colorant().bg_lt_green().black('OK').flush()printsOKin black on a light green background.tests/demo.pycontains more example usages.ReferenceBuild your own Command Line with ANSI escape codesANSI escape codeColors In TerminalSTY
Package: coloration
colorationYet another Python library for terminal and logs coloring and styling using ANSI
escape sequences (ECMA-48).Standalone library, no extra dependency required.Main features:file-like wrapperlogging.Handlerclass for automatically formatted and colored logsregex-based highlightingdefault behavior depends on whether output is written on a TTYtext and binary streams both supported everywhere possibleExtra features:pre-defined ANSI codes for colors and stylingauto-resetting of coloring and stylingauto-stripping of ANSI escape sequences before writingWindows: easy enabling of VT100 emulation if neededNO_COLORhonored by default and overridableDemopython demos/hello.pyYou should get a result similar to this:By default, output format differs if you redirect output to a file:Hello World! \o/

2021-01-21 08:03:39.045 [1048] DEBUG Debug messages are suffixed with source info  <hello:56>
2021-01-21 08:03:39.045 [1048] INFO Some informational message  <hello:57>
2021-01-21 08:03:39.045 [1048] NOTICE A NOTICE has a slightly higher priority than an INFO message  <hello:58>
2021-01-21 08:03:39.045 [1048] WARNING This is some test WARNING  <- auto highlighted keyword  <hello:59>
2021-01-21 08:03:39.045 [1048] ERROR And an ERROR message  <hello:60>
2021-01-21 08:03:39.045 [1048] INFO This demo took 0.1 second to run  <hello:61>Check outdemos/directory.Usagecolorationcan be installed from PyPI:python -m pip install -U colorationHello Worldimportcolorationascolor# Wrap std streams and enable VT100 emulation if on Windows and if neededcolor.init()# coloration.cprint() works pretty much like print(), except it deals with# coloration's AnsiCode objects and it resets attributes when done (colors# and styling)color.cprint(color.GREEN,"Hello",color.YELLOW,"World!")color.cprint("This message is not colored")Colored Loggingimportcolorationimportcoloration.loggingasloggingcoloration.init()logging.basicConfig(handlers=[logging.ColorationStreamHandler()])logger=logging.getLogger()logger.setLevel(logging.DEBUG)logger.debug("Debug messages are suffixed with source info")logger.info("Some informational message")logger.notice("A NOTICE has a slightly higher priority than an INFO message")logger.warning("This is some test WARNING  <- auto highlighted keyword")logger.error("And an ERROR message")Highlightingimportcolorationcoloration.init()hl=coloration.DefaultHighlighter()text="""
    Some keywords like False, True, None, DEBUG, INFO, NOTICE, WARNING, ERROR
    and OK are automatically highlighted with default highlighter, as well as
    UUIDs like 51605be1-b026-4bfe-8934-478092d04376, numbers like 123.4, IPv4
    addresses like 192.168.0.1 (IPv6 addresses supported), HTTP verbs like GET
    and POST, log marks like [i] and [+], and Python-like keyword-value pairs
    like some_var=True.
""".rstrip()text=hl(text)print(text,end="")LicenseThis project is distributed under the terms of the MIT license.
See theLICENSE.txtfile for details.Change Logv0.1.1 (2022-10-29)First release
Package: coloratura
ColoraturaAwsomecprint()function to colored terminal text. Supported full RGB!InstallationYou can install coloratura withpipas follows:pip install coloraturaUsageFirst of all, get the basic cprint functions and selected color palettes:fromcoloraturaimportcprint,Pantone,Bit4Printing colored text is incredibly ea``sy:cprint('This text is in the CLASSIC BLUE color from the Pantone palette',color=Pantone.CLASSIC_BLUE)Easy right?But what if you want to print text with a colored background?cprint('This is great!',color=Pantone.EMERALD,bg=Pantone.ULTIMATE_GRAY)You can also add styles to the font:cprint('This string is italic and green',color=Bit4.GREEN,styles=['italic'])You can mix multiple text stylescprint('This string is italic and bold',,styles=['italic','bold'])```Colors and stylesList of all stylesbold, italic, underline, strong-underline, crossed-out, framedRemember:Styles can be mixed together by including them in the list of stringsList of all colors from the pantone palette:List of all colors from the 4bit palette:Too little?With the Color class you can define your own colors in the full RGB spectrumLook how simple it is:YOUR_COLOR=Color('rgb',191,25,50)..and this is just the beginning of this great library!
Package: coloraura
ColorAuraColorAura is a Python module for text styling with color and gradient support.FeaturesApply colors to text using ANSI escape codes.Create gradients with customizable start and end colors.Add text styles such as bold, italic, and strikethrough.Supports all standard ANSI colors.Hex color support for custom colors.InstallationYou can install ColorAura using pip:pip install colorauraUsageHere's a simple example demonstrating how to use ColorAura to style text:fromcolorauraimportcolor,gradient,style# Apply red color to textred_text=color.style("Hello, ColorAura!",color='red')print(red_text)# Apply a blue-to-green gradient to textgradient_text=gradient.style("Hello, Gradient!",gradient=('blue','green'))print(gradient_text)# Apply bold style to textbold_text=style.style("Hello, Bold!",style='bold')print(bold_text)LicenseColorAura is released under the GNU General Public License (GPLv3). See theLICENSEfile for details.ContributingContributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on GitHub.
Package: colorblender
colorblender.pyA python script to blend hex colorsUsageAccepts two hex colors and an alpha in the following order:foreground background alphaThe closer the alpha is to0the more prominent the background will be in the resulting colorThe closer the alpha is to1the more prominent the foreground will be in the resulting colorNOTE:#is interpreted as a comment so we need to wrap the input in quotes$pythoncolorblender.py'#ffffff''#000000'0.1#1a1a1a$pythoncolorblender.pyffffff0000000.1#1a1a1aReferences & Credittokyonight.nvim
Package: colorblind
ColorblindColorblind is a computer vision library that converts images into a
colorblind friendly version depending on the type of colorblindness.
The three supported types of colorblindness/color weakness are:Deuteranopia: red-green weakness, particularly greenProtanopia: red-green weakness, particularly redTritanopia: blue weaknessSo far we provide three algorithms to correct the images:Daltonization: Original method for generating colorblind-friendly imagesHSV Hue Shift: Shifts Hue based on green ratio or blue ratio (depending on colorblindness type)LAB Shift: Previous studies for this had to tune hyperparameters to get good resultsInstallationpip install colorblindUsage# imports
import numpy as np
import cv2
from colorblind import colorblind
import matplotlib.pyplot as plt

# load image
img = cv2.imread('../images/seven.jpg')
img = img[..., ::-1]

# simulate protanopia
simulated_img = colorblind.simulate_colorblindness(img, colorblind_type='protanopia')

# correct using daltonization
daltonized_img = colorblind.daltonize_correct(img, colorblind_type='protanopia')

# correct using hsv correction
hsv_img = colorblind.hsv_color_correct(img, colorblind_type='protanopia')ResultsDeuteranopiaTypeOriginalDaltonizationHSV CorrectedFull ColorSimulatedProtanopiaTypeOriginalDaltonizationHSV CorrectedFull ColorSimulatedTritanopiaTypeOriginalDaltonizationHSV CorrectedFull ColorSimulatedCreditsMostly inspired by a summary paper of algorithms applicable to making images color-blind friendly.
Example:https://www.researchgate.net/publication/326626897_Smartphone_Based_Image_Color_Correction_for_Color_BlindnessDaltonization values came fromhttps://github.com/joergdietrich/daltonizeFurther information on color blindness is available at:https://ixora.io/projects/colorblindness/color-blindness-simulation-research/http://www.daltonize.org/
Package: colorblind-async
colorblind-asyncWarningThis is only a proof-of-concept.UsageimportColorblindAsyncfromcolorblind_asyncinit by:ColorblindAsync.init()include files/modules with awaits outside async contextrunExamplemain.pyfromcolorblind_asyncimportColorblindAsyncColorblindAsync.init()importfile# now when you include other modules, the colorblind_async will do it's job# await my_coro() # you cannot do that here, colorblind_async binds to import statement and it won't work herefile.pyasyncdefmy_coro():return"foo"defmy_sync_fn():awaitmy_coro()#  call `await` in sync functionawaitmy_coro()# I can even call `await` outside any functionInstallpip3installcolorblind-asyncOptional setupPass already defined event loopfromcolorblind_asyncimportColorblindAsyncColorblindAsync.init(loop=my_loop)DebugPrints altered code withawaits outside async context replaced with__colorblind_async__(coro)call.DEBUG_COLORBLIND_ASYNC=True python script.pyRun Testsmake testHow does it workAfter you importcolorblind_asyncmodule, it'll enhance theincludefunction to catchSyntaxErrorawait outside function.... When it catches it, it parse AST of the included file and replaceawaitkeyword with call__colorblind_async__(coroutine).__colorblind_async__is simple wrapper which executes passed coroutine in the (provided) event loop.
Because you can call sync functions from async context and then call async context in a nested fashion, librarynest-asynciois used for reentrant async semantics.LimitationsAs per librarynest-asyncio:only event loops from asyncio can be patched; Loops from other projects, such as uvloop or quamash, generally can't be patched.Be aware of unexpected preemptions as they may occur outside of visibleasynckeyword context and you may need to apply additional synchronization.FAQWhy?Python async is more complicated than it needs to be. And I like the idea ofZig's colorblind Async/Await. Obviously there are cases when you do not care about event loop stuff and just what the code running without spending too much time on dealing with sync/async parts calling each other.Is this dark magic?Well, um, technically yes. Because it allows you to importsyntactically incorrectprogram, so use it with caution. But don't worry, no kittens were harmed during the experiments.
Package: colorblind-pdf
colorblind_pdfcolorblind_pdfis a tool designed to test the accessibility of PDF documents for individuals with color vision deficiencies. It processes PDFs to simulate how the contained images would appear to someone with various types of color vision deficiencies, such as deuteranopia, protanopia, and tritanopia.InstallationTo installcolorblind_pdf, use pipx for an isolated installation:pipxinstallcolorblind_pdfUsageTo usecolorblind_pdf, provide the path to the PDF you want to process, the output directory, and specify the type of color deficiency simulation. For example:Most simple way:colorblind_pdfmy_document.pdfDefault values-o/--output_dir: current directory ('.')-d/--deficiency_type: all deficiencies ('all')-D/--dpi: resolution (default: 150 DPI)--merge: merge the outputs into a single file where each page is a mosaic-O/--overlay: merged output will get an overlay over the subpagesThe test.pdf with merged, overlayed output should look like this:ContributingContributions are welcome! Feel free to open an issue or submit a pull request on ourGitHub repository.LicenseDistributed under the MIT License. SeeLICENSEfor more information.