Saravanan666/pypi-org huggingface dataset:
Package: colorvector
Color VectorA simple utility that given two colors in RBG format and a number of desired intervals, returns an array of colors
evenly distributed between (and including) the two starting colors.How to use itImport theget_palettefunction and feed it your starting and ending colors as arrays of three integers (e.g. [0,0,0] and [255,255,255]) and an integer representing the number of colors you want in the palette (includes the two colors you gave it).It will return an array of RBG values that fall on the vector between the starting and ending colors that are equidistant from each other (rounded to the nearest integer).So, if you give it:[0,0,0], [255,255,255], 3It will return:[(0, 0, 0), (128, 128, 128), (255, 255, 255)]How the math works:To lay out the points from Point 1 to Point 2,
Subtract (5,0,-1) - (1,2,3) to get the direction vector for the line.  In this case, <4, -2, -4>.

Then create the parametric equation for the line <x,y,z> = t * <4, -2, -4> + <1,2,3>

This set up leads to: 
when t = 0, <x,y,z> = 0* <4, -2, -4> + <1,2,3>  = < 1,2,3 >
when t = 1, <x,y,z> = 1* <4, -2, -4> + <1,2,3>  = < 5,0,-1 >

To distribute points evenly along this interval, distribute t evenly at the fractional size you need.  
For example for 6 points between and including both Point 1 and Point 2, divide into 5ths by letting 
t=0, .2, .4, .6, .8, 1.  ```
Package: colorvote
ColorvoteColorvote is a colored coins protocol for voting on the Bitcoin (and compatible
altcoin) blockchain. It is a modified version of the EPOBC colored coin protocol
and uses the nSequence field to mark transactions. The protocol requires no
changes to the blockchain (i.e. soft forks) and has minimal overhead as votes
are transferred with normal P2PKH transactions.This repository contains a detailed protocol specification, a command line
utility, and a web server.Command Line
Package: colorway
🎨 ColorwayPython package to change the text color of the python console.📦 InstallationRun the following to install:$pipinstallcolorway🚀 UsageForegroundfromcolorway_foregroundimport*# Generate red text with default backgroundprint(red_fg("Hello, World!"))# Generate bold red text with default backgroundprint(bold_red_fg("Hello, World!"))# Generate high-intensity red text with default backgroundprint(highintensity_red_fg("Hello, World!"))# Generate high-intensity bold red text with default backgroundprint(highintensity_bold_red_fg("Hello, World!"))# Generate custom colored text (red: 150, green: 78, blue: 120) with default backgroundprint(custom_fg(150,78,120,"Hello, World!"))Backgroundfromcolorway_backgroundimport*# Generate text with red backgroundprint(red_bg("Hello, World!"))# Generate text with high-intensity red backgroundprint(highintensity_red_bg("Hello, World!"))# Generate text with custom colored background (red: 150, green: 78, blue: 120)print(custom_bg(150,78,120,"Hello, World!"))Foreground & BackgroundYou can use foreground formatting and background formatting by placing them in each other.fromcolorway_foregroundimport*fromcolorway_backgroundimport*# Generate red text with blue backgroundprint(red_fg(blue_bg("Hello, World!")))ManualYou can also use the manual package to manually format parts of strings.fromcolorway_manualimport*# Generate red textprint(f'{foreground.red}Hello, World!{format.clear}')# Generate text with red backgroundprint(f'{background.red}Hello, World!{format.clear}')# Generate text with a mix of colorsprint(f'{foreground.red}Hello,{background.blue}World!{format.clear}')Available colorsThe colors available to use are:⬛ Black🟥 Red🟩 Green🟨 Yellow🟦 Blue🟪 Purple🟦 Cyan⬜ WhiteNotePlease be aware that you cannotcombine foreground and background formatting if you use high-intensity colors.Please be aware that custom colors maynotbe supported by all terminal outputs.👨‍💻 Developing ColorwayTo install colorway, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstall-e.[dev]🚦 Development ProgressStable Development
Package: colorwheel
Colorwheelis a package for generating colorwheels with different numbers of colors.How to install this package :pip install colorwheelDon't forget topip install pathlibif you don't have it installedHow to use this package :When instantiating the class, there is a parameterside, which is responsible for the height of the picture. The default value for side is 768 and the width of the picture is proportioned so that the picture fills the screen of a 15.6 inch laptop. For other screen sizes you can instantiate the class with another value forsideand also another value for the parameterscreen_portion.screen_portiondefault value is 1.778 which is portion of width to height of a 15.6 inch laptop. For other screen sizes you should calculate the value forscreen_portionyourself.After instantiating the Colorwheel class, just executeshow()method on the object to see the colorwheel. By default the colorwheel will have 12 colors but you can change the number by giving value to parametercolor_numberwhen instantiating the class. Note that only numbers in the formats below are acceptable :
3*2, 3*4, 3*8, 3*16, 3*32, ... and 12, 12*2, 12*3, 12*4, ...Also if you want to save a picture of the colorwheel, just press's'on your keyboard while the picture window is open.There are some other features that come with the final picture.Like lines between colors,a small white circle in the center of colorwheel,the direction of the colorsandrotation angel for the colors in the colorwheel.For each feature there is a parameter responsible for changing or canceling that feature :Lines between colors : By default you should have lines between colors, but if you set parameterlinesto False when instantiating the class then this feature will be cancelled.White circle in the center of colorwheel : If you dont like it just instantiate the class with parametercenter_circlewith value of False.Direction of the colors : If you want to change the direction of the colors in the colorwheel just instantiate the class with parameterreversingwith value of True.Rotation angel for the colors : By defaultrotationparameter is 0, but if you want the colors to rotate ,then instantiate the class with parameterrotationset to a degree [0, 360].Examplefrom colorwheel import ColorWheelcw = ColorWheel()## colorwheel with 12 colorscw.show()cw = ColorWheel(color_number=7200, lines=False, center_circle=False)## colorwheel with 7200 colorscw.show()Github addressgithub.com/aliloloee
Package: colorwheels
colorwheelsAn Endless Color GeneratorThis project is a continuous color generator for Python. We create a palette of a specific color range, a palette of matching colors and similar to serve to a consumer application.Works great when generating rainbow effects in hobby electronics (RGB LEDs, RGB Panels), and elsewhere. The idea behind is an endless colorwheel for photographers - the wheel continuously turns around to generate the next color.Here's an example of colorwheels on a keybow, waiting for a keypress.All in a few lines of code:# wheel is initialized and definitions loaded or generatedwhileTrue:color=wheel.next()keybow.set_led(9,color[0],color[1],color[2])keybow.show()time.sleep(0.1)LinksGitHubPyPiRead The DocsAboutWe are a maker community in Karlskrona, Sweden. We run makerspaces every week, working with Raspberry Pis, Arduinos and other interesting hardware.This repository is here to support our community of makers. A lot of our achievements are based and inspired by the community at large. We wish to pay back and share our experiences and lessons learned.
Package: colorz
Color scheme generator.Installationpip install colorzor just movecolorz.pyto somewhere in your$PATH.
If you do the latter, you must install the dependencies in the
following section manually.DependenciesPython (2 or 3)PillowscipyUsageusage: colorz [-h] [-n NUM_COLORS] [--minv MINV] [--maxv MAXV] [--bold BOLD]
              [--font-size FONT_SIZE] [--bg-color BG_COLOR] [--no-bg-img]
              [--no-preview]
              image

A color scheme generator. Takes an image (local or online) and grabs the most
dominant colors using kmeans. Also creates bold colors by adding value to the
dominant colors. Finally, outputs the colors to stdout (one normal and one
bold per line, space delimited) and generates an HTML preview of the color
scheme.

positional arguments:
  image                 the image file or url to generate from.

optional arguments:
  -h, --help            show this help message and exit
  -n NUM_COLORS         number of colors to generate (excluding bold).
                        Default: 6
  --minv MINV           minimum value for the colors. Default: 170
  --maxv MAXV           maximum value for the colors. Default: 200
  --bold BOLD           how much value to add for bold colors. Default: 50
  --font-size FONT_SIZE
                        what font size to use, in rem. Default: 1
  --bg-color BG_COLOR   what background color to use, in hex format. Default:
                        #272727
  --no-bg-img           whether or not to use a background image in the
                        preview. Default: background image on
  --no-preview          whether or not to generate and show the preview.
                        Default: preview onThanks tohttp://charlesleifer.com/blog/using-python-and-k-means-to-find-the-dominant-colors-in-images/https://gist.github.com/radiosilence/3946121
Package: colorzero
colorzero is a color manipulation library for Python (yes,anotherone) which
aims to be reasonably simple to use and “pythonic” in nature.It doesnotaim to be as comprehensive, powerful, or that matter ascorrectas, say,colormath.  colorzero originally grew out of work on mypicameraproject, hence it’s intended to be sufficiently simple that school children can
use it without having to explain color spaces and illuminants. However, it does
aim to be useful to a wide range of skills, hence it does include basic
facilities forCIE Labrepresentations, andDelta-Ecalculations should
you need them.The major difference between colorzero and other libraries (grapefruit,colormath, etc.) is that itsColorclass is anamedtupledescendent.
This means it is immutable; you cannotdirectlychange the attributes of aColorinstance. The major advantage of this is that instances can be used
as keys in dictionaries (for simpleLUTs), or placed in sets.Manipulation ofColorinstances is done by typical operations with other
classes the result of which is a newColorinstance. For example:>>> Color('red') + Color('blue')
<Color html='#ff00ff' rgb=(1, 0, 1)>
>>> Color('magenta') - Color('red')
<Color html='#0000ff' rgb=(0, 0, 1)>
>>> Color('red') - Red(0.5)
<Color html='#800000' rgb=(0.5, 0, 0)>
>>> Color('green') + Color('grey').red
<Color html='#808000' rgb=(0.501961, 0.501961, 0)>
>>> Color.from_hls(0.5, 0.5, 1.0)
<Color html='#00ffff' rgb=(0, 1, 1)>
>>> Color.from_hls(0.5, 0.5, 1.0) * Lightness(0.8)
<Color html='#00cccc' rgb=(0, 0.8, 0.8)>
>>> (Color.from_hls(0.5, 0.5, 1.0) * Lightness(0.8)).hls
HLS(h=0.5, l=0.4, s=1.0)LinksThe code is licensed under theBSD licenseThesource codecan be obtained from GitHub, which also hosts thebug
trackerThedocumentation(which includes installation, quick-start examples, and
lots of code recipes) can be read on ReadTheDocsPackages can be downloaded fromPyPI, but reading the installation
instructions is more likely to be useful
Package: colossalai-platform
🔮 ColossalAI-Platform-CLI🔗 Table Of Contents🔮 ColossalAI-Platform-CLI🔗 Table Of Contents📚 Overview🔨 Installation⌨️ UsageCreate a Template📚 OverviewThis repository contains the Command Line Tools for the ColossalAI Platform.
The CLI is calledcapwhich stands forC(olossal)A(I) P(latform).
This CLI aims to provide an interface for users to access the various functions provided on the cloud platform and boost their productivity.The CLI is built on top ofClick, a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary.🔨 InstallationFrom Sourcepipinstallgit+https://github.com/hpcaitech/ColossalAI-Platform-CLI@mainFrom PyPI (Not Available Yet)pipinstallcolossalai-platform⌨️ UsageA documentation website will be built when this CLI is mature.
Before that, you can refer to the following sections to use the CLI.Create a Templatecaptemplateinit<template-name>
Package: colosseum
ColosseumAn independent implementation of the CSS layout algorithm. This
implementation is completely standalone - it isn’t dependent on
a browser, and can be run over any box-like set of objects that
need to be laid out on a page (either physical or virtual)TutorialWant to jump in and get started? We have ahands-on tutorial for beginnersHow-to guidesLooking for guidance on how to solve a specific problems? We havehow-to
guides and recipesfor common problems and tasks, including how to
contribute.ReferenceJust want the raw technical details? Here’s ourTechnical reference.BackgroundLooking for explanations and discussion of key topics and concepts? Ourbackgroundguides may help.CommunityColosseum is part of theBeeWare suite. You can talk to the community through:@pybeeware on TwitterThepybee/generalchannel on Gitter.We foster a welcoming and respectful community as described in ourBeeWare Community Code of Conduct.ContributingIf you experience problems with Colosseum,log them on GitHub. If you
want to contribute code, pleasefork the codeandsubmit a pull request.
Package: colosseum-arena
ColosseumAn modular AI playground where agents are put in a multiple scenarios to
compete each other. Automated tournaments are supported, with rankins by score
(wins are 1 point and draws are 0.5) and ELO ratings. Agents can be implemented
in any language, as long as they are able to parse json payloads and
communicate via stdin and stdout.Currently the project is in an early stage and many things are subject to
breaking changes. Nevertheless, it is in an state where it is ready to use
and have fun.FeaturesRound robin tournament formatsOpen format using json for data representation and stdin / stdout to communicateSample agentsPython SDKSample gameReplay RendererHeadless modePlannedSwiss tournament formatBracket tournament formatWebsite to register and upload botsAutomated runner to download agents and play a match with themPersistent elo ratingsSeasonsDownloadable replaysRunning locallySetuppoetryRunpoetry installpoetry run python tournament.py agents/foo agent/bar agent/quxruns a
tournament with the given agents. The arguments must be a path to the agent
executable file.poetry run python skirmish.py agents/foo agent/barto run a skirmish with
the given agents.poetry run python renderer.py replay_file.jsonlrenders the replay of a
match (either from a skirmish or a tournament).LICENSEAll files in this repository are released underMITlicense, unless
explicitly noted.
Package: colosseum-exporter-launcher
# colosseum exporter launcher### 필요사항- Docker 18.06.0-ce or higher- Python 3.6 or higher- hawkeye에서 부여한 모니터링 대상 머신의 ID(hawkeye 웹페이지에서 머신 등록시 발급해줌)- kafka를 모니터링할 경우 kafka는 `9092`포트로 실행해야 하며, 수집한 메트릭을 송신하기 위해 `9308` 포트가 개방돼 있어야 한다.- MySQL을 모니터링할 경우 MySQL은 `3306`포트로 실행해야 하며, 수집한 메트릭을 송신하기 위해 `9104` 포트가 개방돼 있어야 한다.- elasticsearch를 모니터링할 경우 elasticsearch는 `9300`포트로 실행해야 하며, 수집한 메트릭을 송신하기 위해 `9108` 포트가 개방돼 있어야 한다.- redis를 모니터링할 경우 redis는 `6379`포트로 실행해야 하며, 수집한 메트릭을 송신하기 위해 `9121` 포트가 개방돼 있어야 한다.### 실행방법```$python launcher.py {모니터링 대상 머신의 ID}```### MySQL 모니터링 하기- 모니터링 대상에 MySQL이 있다면 `PROCESS`와 `REPLICATION CLIENT`의 권한을 가진 계정이 필요하다.- NOTE: It is recommended to set a max connection limit for the user to avoid overloading the server with monitoring scrapes under heavy load.- 모니터링 대상에 MySQL이 있을 경우 프로그램 실행 과정에서 MySQL 계정의 ID와 Password를 입력하는 프롬프트가 나타난다. `PROCESS`와 `REPLICATION CLIENT`의 권한을 가진 계정의 ID와 Password를 입력하면 계속 진행된다.- 다음은 해당 권한을 가진 계정을 새로 생성하는 구문이다.```CREATE USER 'exporter'@'localhost' IDENTIFIED BY 'XXXXXXXX' WITH MAX_USER_CONNECTIONS 3;GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'localhost';```(끝)
Package: colosseumrl
Codebase for the UCI multi agent reinforcement learning frameworkA framework for developing large multiplayer reinforcement learning agents that can play free-for-all games. Currently available games are:Tron: A simple snake-like game where the goal is not to crash into the walls.Blokus: A board game of controlling territory with various shaped blocks.Tic Tac Toe: Generalization of tic tac toe to 2, 3, and 4 players.RequirementsThis library requires at least Python 3.6 in order to run correctly.
Python 2.7 is not currently supported.Basic requirements are listed in therequirements.txtand can be installed from PyPi withpip install -r requirements.txt.InstallSimply runpip install colosseumrlin order to install the latest stable version from Pypi.Important scriptspython3 -m colosseumrl.matchmaking.MatchmakingServerlaunches the main matchmaking
server for allowing any number of agents to play against each other in a dynamic
way. Runpython -m rlcompetition.matchmaking.MatchmakingServer -hfor
more information../colosseumrl/examplescontains a list of example scripts that will connect
to a matchmaking server and launch an example agent.
Package: colossus
Colossus is an astrophysics toolkit, the name is an acronym forCOsmology,
haLO, and large-ScaleStrUcture toolS. Please consult
theOnline Documentationfor details.InstallationThe easiest way to install Colossus is by executing:pipinstallcolossusYou might need to prefix this command withsudo. Alternatively, you can clone the BitBucket repository by executing:gitclonegit@bitbucket.org:bdiemer/colossus.gitAfter installing colossus, you should run its unit test suite to ensure that the code works as expected. In python, execute:fromcolossus.testsimportrun_testsThe output should look something like this:test_home_dir(colossus.tests.test_utils.TCGen)...oktest_Ez(colossus.tests.test_cosmology.TCComp)...ok...test_DK14ConstructorOuter(colossus.tests.test_halo_profile.TCDK14)...oktest_DK14ConstructorWrapper(colossus.tests.test_halo_profile.TCDK14)...ok----------------------------------------------------------------------Ran86testsin7.026sOKIf any errors occur, please send the output to the author.License & CitingMain Developer: Benedikt Diemer (diemer@umd.edu)Contributors:   Matt Becker, Michael Joyce, Andrey Kravtsov, Steven Murray, Riccardo SeppiLicense:        MIT. Copyright (c) 2014-2024If you use Colossus for a publication, please cite the code paper
(Diemer 2018). Many
Colossus routines implement the results of other papers. If you use such routines, please take care
to cite the relevant papers as well (they will be mentioned in the function and/or module
documentation).
Package: colouration
ColourationColourationis a Python library for working with colours.
It unifies three representation of colour:RGB(red, green, blue)HSL(hue, saturation, lightness)HSV(hue, saturation, value)InstallationpipinstallcolourationUsageColourfromcolourationimportColourdefault_arguments=Colour(obj=None,red=None,green=None,blue=None,hexadecimal=None,hue=None,saturation=None,lightness=None,value=None,min_value=0.0,max_value=1.0,name=None,id=None,scheme=None,weight=1.0)# you can use the rgb hexadecimal code to create a Colour objectred=Colour('#FF0000')# you can enter red, green, and blue as separate valuesgreen=Colour(red=0,green=1,blue=0)# max value is 1 by default but other values can be used tooblue=Colour(red=0,green=0,blue=255,max_value=255)# and you can use colour namesliteral_red=Colour('red')print(f'is red equal to literal_red?{"yes"ifred==literal_redelse"no"}\n')# you can print with itliteral_red.print('by default the main colour is used for background\n')# to use the colour as the text colour you should use the main_colour argumentred.print(string='red text\n',main_colour='text',secondary='auto')# secondary='auto' is default# the secondary colour is white when the main colour is dark and it is black otherwisered.print(string='the secondary colour is white when the main colour is dark and it is black otherwise.\n')# you can choose a secondary colourred.print(string='red on white\n',main_colour='text',secondary='white')# you can use string or a Colour objectred.print(string='blue on red\n',secondary=Colour('blue'))# you can darken or lighten a colourdark_red=red.darken(ratio=0.5)dark_red.print(string='dark red\n')# ratio can be between 0 and 1light_red=red.lighten(ratio=0.8)# you can change the hue of a colournew_colour=red.increase_hue(0.2)new_colour.print('hue increased by 0.2\n')# you can assign a new hue, lightness, value, red, green, or blue toonew_colour.red=0.2new_colour.print('setting red = 0.2 causes this.\n')new_colour.hue=0.8new_colour.print('setting hue = 0.4 causes this.\n')new_colour.value=0.3new_colour.print('setting value = 0.3 causes this.\n')new_colour.lightness=0.9new_colour.print('setting lightness = 0.9 causes this.\n')# you can mix colours by adding them togetheryellow=green+redyellow.print(string='mixing green and red produces this.\n')# Colour finds the best name for itselfbluish=Colour(red=220,green=243,blue=255,max_value=255)# max_value is 1 by defaultbluish.print(string=f'Colour finds the best name for itself:{bluish.name}.\n')SchemeGradient
Package: colour-checker-detection
APythonpackage implementing various colour
checker detection algorithms and related utilities.It is open source and freely available under theBSD-3-Clauseterms.Table of Contents1Features1.1Examples2User Guide2.1Installation2.2Contributing2.3Bibliography3API Reference4Code of Conduct5Contact & Social6About1FeaturesThe following colour checker detection algorithms are implemented:SegmentationMachine learning inference viaUltralytics YOLOv8The model is published onHuggingFace,
and was trained on a purposely constructeddataset.The model has only been trained onColorChecker Classic 24images and will not work withColorChecker NanoorColorChecker SGimages.Inference is performed by a script licensed under the terms of theGNU Affero General Public License v3.0as it uses theUltralytics YOLOv8API which is incompatible with theBSD-3-Clause.1.1ExamplesVarious usage examples are available from theexamples directory.2User Guide2.1InstallationBecause of their size, the resources dependencies needed to run the various
examples and unit tests are not provided within the Pypi package. They are
separately available asGit Submoduleswhen cloning therepository.2.1.1Primary DependenciesColour - Checker Detectionrequires various dependencies in order to run:python >= 3.9, < 4colour-science >= 4.3imageio >= 2, < 3numpy >= 1.22, < 2opencv-python >= 4, < 5scipy >= 1.8, < 22.1.2Secondary Dependenciesultralytics >= 8, < 92.1.3PypiOnce the dependencies are satisfied,Colour - Checker Detectioncan be installed from
thePython Package Indexby
issuing this command in a shell:pip install --user colour-checker-detectionThe overall development dependencies are installed as follows:pip install --user 'colour-checker-detection[development]'2.2ContributingIf you would like to contribute toColour - Checker Detection,
please refer to the followingContributingguide forColour.2.3BibliographyThe bibliography is available in the repository inBibTeXformat.3API ReferenceThe main technical referenceColour - Checker Detectionis theAPI Reference.4Code of ConductTheCode of Conduct, adapted from theContributor Covenant 1.4,
is available on theCode of Conductpage.5Contact & SocialTheColour Developerscan be reached via different means:EmailFacebookGithub DiscussionsGitterTwitter6AboutColour - Checker Detectionby Colour DevelopersCopyright 2018 Colour Developers –colour-developers@colour-science.orgThis software is released under terms of BSD-3-Clause:https://opensource.org/licenses/BSD-3-Clausehttps://github.com/colour-science/colour-checker-detection