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.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

pycolorkit-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycolorkit-1.0.0.tar.gz
  • Upload date:
  • Size: 13.1 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.0.tar.gz
Algorithm Hash digest
SHA256 d35f75c79bb9e7afd8f63839caea7438ba28e0af51cd14cb20ee534b1d4f832e
MD5 fea16cd65ced441fd3fed9979db6739c
BLAKE2b-256 a44db1fc60eb90fd822b10605b7fa700a8bf004c55bfd8a1f1df3c5b04356924

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on codewithkate/pycolorkit

Attestations:

File details

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

File metadata

  • Download URL: pycolorkit-1.0.0-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

Hashes for pycolorkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df10ebe23a545f15173367322518d013160261696ce8a95e580a74bf217812bb
MD5 0cb3f1ee01e42c68db4eaf9e7fc7ea77
BLAKE2b-256 d530fa250fe0836720105214ac4a6dec421ff0fee66bfb6e2dc053060dc2f4b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycolorkit-1.0.0-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