Skip to main content

A simple library to convert color codes.

Project description

colorcodeconvert

PyPI - Python Version PyPI - Downloads GitHub

pip install colorcodeconvert

Examples

From HEX to RGB

from colorcodeconvert import *

# Prints the RGB value associated with the given HEX value.
print(convert(HexCode("#A0A0A0"), RGB))

From RGB to HEX

from colorcodeconvert import *

# Prints the HEX value associated with the given RGB value.
print(convert(RgbCode(160, 160, 160), HEX))

Credits

README Badges made with Shields.io.

License

This software is licensed under the GNU General Public License version 3.

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

colorcodeconvert-1.1.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

colorcodeconvert-1.1.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file colorcodeconvert-1.1.2.tar.gz.

File metadata

  • Download URL: colorcodeconvert-1.1.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for colorcodeconvert-1.1.2.tar.gz
Algorithm Hash digest
SHA256 28c9fc8d44e3661b5f3e7baa1cce3ff97ade75ca170be43e921cca01cb3097f4
MD5 49c9a5d46ab294931105a0c8161deb75
BLAKE2b-256 6c6abef7677279c1d01b8abc9483e3f0602ea66ce2e7e1d273487fec61b92e0e

See more details on using hashes here.

File details

Details for the file colorcodeconvert-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for colorcodeconvert-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c46ecd618616f0f9a6b0c26a02e5319ed5191ab125a8b62bad163263b5b3cef3
MD5 82bc790f7898053229682a459a40347e
BLAKE2b-256 fbcc34b019ff63fb1ee7b288d052d0d3df4d66be55611e9d91daa0a9d697a313

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