Skip to main content

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, with a focus on clean and modular design.

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 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

pycolorkit-1.0.6.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

pycolorkit-1.0.6-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pycolorkit-1.0.6.tar.gz.

File metadata

  • Download URL: pycolorkit-1.0.6.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pycolorkit-1.0.6.tar.gz
Algorithm Hash digest
SHA256 7ce8e2eb4c82b20d28648596b70cc1ad6d9bf0966c70785e56f1b27fb11342e5
MD5 1d7f00b2bf888725c5e32e7e7f68f93b
BLAKE2b-256 7bcabee55184874e5771d77c038bafb5e02c233ee6d44ea090f5fb0122d29777

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycolorkit-1.0.6.tar.gz:

Publisher: python-publish.yml on codewithkate/pycolorkit

Attestations:

File details

Details for the file pycolorkit-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pycolorkit-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pycolorkit-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0365f2314d419a993f32b6cd1019e207ecfdb17205d07ccd412b19f443e2cdea
MD5 11cd068715de190271db2438d2fe7d01
BLAKE2b-256 a16cc42c4554727d1ef7952f1db82d1a746466d7d1a0066829cae5f99fe91e2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycolorkit-1.0.6-py3-none-any.whl:

Publisher: python-publish.yml on codewithkate/pycolorkit

Attestations:

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