Skip to main content

UltraCOLOR is a powerful color library

Project description

UltraCOLOR library v0.2.0

Table of Contents

1. Description

UltraCOLOR is a Python library that provides functionality for working with different color spaces. It supports RGBA, Hex, HSLA and HSVA color spaces, allowing for accurate color conversion. The library does not require any third-party dependencies and only utilizes the Python standard library. With UltraCOLOR, you can easily convert colors between different color spaces and perform various operations on them.

2. Features

2.1 Does not require dependencies

This library does not require third party dependencies: only the Python >= 3.8 is required

2.2 Lightweight

UltraCOLOR is a lightweight library, making it a perfect choice for projects where performance is a key factor.

2.3 Easy to use

The library provides a simple and intuitive API, making it easy to perform complex color operations with just a few lines of code.

2.4 All major color spaces are supported

All major color spaces are supported: RGB, Hex, HSL and HSV.

2.5 Accurate color conversion

This is achieved by using the built-in type Decimal

from ucolor import ColorRGBA, convert
foo = ColorRGBA(33, 33, 33)
bar = convert.rgba_to_hsla(foo)
baz = convert.hsla_to_rgba(bar)
print(foo == baz) # True

3. Installation

3.1 Install prebuilt package

$ pip3 install ucolor

3.2 From source code

NOTE: when installing this way you get the latest version of the library, it may contain bugs or not work at all.

$ pip3 install git+https://notabug.org/Aserogl/ucolor.git@main

4. Supported Color Spaces

  • RGBA
  • Hex
  • HSLA
  • HSVA

5. Release history

v0.2.0 (current)

Added

  • Color space HSVA
  • Support for Hex short format

Changed

  • Hex color space format: long - #FFFFFF, short - #FFF (no compatibility with v0.1.0)
  • Builtin HSLA green color

v0.1.0

First version

6. Found a bug or want to contribute?

If you found a bug, please open an issue here. If you would like to contribute to the development of the library, you can make a merge request here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ucolor-0.2.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

ucolor-0.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ucolor-0.2.0.tar.gz.

File metadata

  • Download URL: ucolor-0.2.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Linux/6.4.7-arch1-2

File hashes

Hashes for ucolor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1ae6a29f617deef0f9c8407bcb8bf38f14580c1b8b2b637a84843f35ea8b412f
MD5 5bd29c741649469bed37da61abcbfe04
BLAKE2b-256 0ef0dfb69eda39b90caabf1bf0e29e73198ad9a72fa0f18f30c38227c0ec4ced

See more details on using hashes here.

File details

Details for the file ucolor-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ucolor-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Linux/6.4.7-arch1-2

File hashes

Hashes for ucolor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 066a7b961fade2175b4ca42b105c3f4192ce9166da397c15eba275ede5455c64
MD5 7bbb0fd6a24b37d8fc17e7da93c5fc7c
BLAKE2b-256 33acedbffdde259fc7a3f87bea4610a01d1833e540b7dd1183a4c8eaa70fc649

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page