A color conversion package
Project description
pyColorKit
pyColorKit is a Python package designed to simplify color format conversions. It provides easy-to-use methods to convert between RGB, HEX, and HSL formats.
Features
- Convert HEX to RGB
- Convert RGB to HSL
- Convert HSL to RGB
- Convert RGB to HEX
- Generate sequential colors
- Generate complimentary colors
Installation
Install the package using pip:
pip install color-converter
Usage
Importing the Package
from pycolorkit.pycolorkit import ColorConverter, ColorGenerator
Examples
RGB to HEX Conversion
result = ColorConverter.rgb_to_hex(255, 0, 0)
print(result) # Output: "#ff0000"
Generate a complimentary color
result = ColorGenerator.compliment((0, 100, 50))
print(result) # Output: (180, 100, 50)
Contributing
Contributions are welcome! Please fork the repository, create a branch, and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycolorkit-1.0.9.tar.gz.
File metadata
- Download URL: pycolorkit-1.0.9.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bafbb67cae15d0985b0d075818d038776f3610c2cd2ddd25eae611ed7bce093e
|
|
| MD5 |
9617ff866c66aac765cde8a4432f4b4e
|
|
| BLAKE2b-256 |
247d693eb0b4f43be275599f9d0373ce929d065171a4c616755c7fe6a1a4b06f
|
Provenance
The following attestation bundles were made for pycolorkit-1.0.9.tar.gz:
Publisher:
python-publish.yml on codewithkate/pycolorkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycolorkit-1.0.9.tar.gz -
Subject digest:
bafbb67cae15d0985b0d075818d038776f3610c2cd2ddd25eae611ed7bce093e - Sigstore transparency entry: 150010816
- Sigstore integration time:
-
Permalink:
codewithkate/pycolorkit@cdbf08af33ed383505d4cba572127826813d4392 -
Branch / Tag:
refs/tags/v1.0.9 - Owner: https://github.com/codewithkate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cdbf08af33ed383505d4cba572127826813d4392 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pycolorkit-1.0.9-py3-none-any.whl.
File metadata
- Download URL: pycolorkit-1.0.9-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fac8c01cb3bdec5da93a4e84fadbbcb1284822ab1ff37a6a7a55fd99f37bb93
|
|
| MD5 |
efa6cf4af773810e42db6b01059368d2
|
|
| BLAKE2b-256 |
f7d98b9f778a36a856bece0eb5e47f94ca6c57674db8b3b780dba815ededc31a
|
Provenance
The following attestation bundles were made for pycolorkit-1.0.9-py3-none-any.whl:
Publisher:
python-publish.yml on codewithkate/pycolorkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycolorkit-1.0.9-py3-none-any.whl -
Subject digest:
7fac8c01cb3bdec5da93a4e84fadbbcb1284822ab1ff37a6a7a55fd99f37bb93 - Sigstore transparency entry: 150010821
- Sigstore integration time:
-
Permalink:
codewithkate/pycolorkit@cdbf08af33ed383505d4cba572127826813d4392 -
Branch / Tag:
refs/tags/v1.0.9 - Owner: https://github.com/codewithkate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cdbf08af33ed383505d4cba572127826813d4392 -
Trigger Event:
push
-
Statement type: