Skip to main content

colors-core

License Version Downloads Discord

Documentation Check Test Coverage

Core color functionality.

Installing

Python 3.8 or above is required.

pip

Installing the library with pip is quite simple:

$ pip install colors-core

Alternatively, the library can be installed from source:

$ git clone https://github.com/nekitdev/colors-core.git
$ cd colors-core
$ python -m pip install .

poetry

You can add colors-core as a dependency with the following command:

$ poetry add colors-core

Or by directly specifying it in the configuration like so:

[tool.poetry.dependencies]
colors-core = "^1.1.1"

Alternatively, you can add it directly from the source:

[tool.poetry.dependencies.colors-core]
git = "https://github.com/nekitdev/colors-core.git"

Examples

>>> from colors import Color
>>> color = Color(0x000000)
>>> print(color)
#000000
>>> color.to_rgb()
(0, 0, 0)
>>> color.to_rgba(0)
(0, 0, 0, 0)
>>> color.to_hsv()
(0.0, 0.0, 0.0)

Documentation

You can find the documentation here.

Support

If you need support with the library, you can send an email or refer to the official Discord server.

Changelog

You can find the changelog here.

Security Policy

You can find the Security Policy of colors-core here.

Contributing

If you are interested in contributing to colors-core, make sure to take a look at the Contributing Guide, as well as the Code of Conduct.

License

colors-core is licensed under the MIT License terms. See License for details.

Metadata

Release files for colors-core 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colors-core 1.1.1
File Size Uploaded
colors_core-1.1.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colors-core 1.1.1
File Interpreter ABI Platform
colors_core-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / colors_core-1.1.1.tar.gz

Download URL colors_core-1.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6a2d71558b119c05f9b8ce148ccedd1448569abf00429c234524f112b7b384f5
BLAKE2b-256 checksum
How to use checksums
73dde69306d1d840f0b6e0c6b49758ee944484c638bdb1b159e2b1e284ad3e4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.10.12 Linux/6.2.0-1019-azure

Release files / colors_core-1.1.1-py3-none-any.whl

Download URL colors_core-1.1.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88aa3dc00be9f5737ee8c99dc7c8712fb788f816d650c72250aca62af8bd4b70
BLAKE2b-256 checksum
How to use checksums
e6f15644df764b872ea813fce15b5f992cecdcedb515a47b7956b6e2fb42f97c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.10.12 Linux/6.2.0-1019-azure

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page