Metadata-Version: 2.1
Name: colorcodeconvert
Version: 1.1.2
Summary: A simple library to convert color codes.
Home-page: https://github.com/Simoso68/colorcodeconvert
Author: Simoso68
Maintainer: Simoso68
License: GNU General Public License version 3
Project-URL: Source, https://github.com/Simoso68/colorcodeconvert
Project-URL: Issues, https://github.com/Simoso68/colorcodeconvert/issues
Project-URL: Documentation, https://github.com/Simoso68/colorcodeconvert/wiki
Keywords: color,hex,rgb
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

<div align=center>

<h1>colorcodeconvert</h1>

<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/colorcodeconvert?style=for-the-badge&logo=python&label=Python Versions&color=blue&link=https%3A%2F%2Fpypi.org%2Fproject%2Ffewact">
<img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/colorcodeconvert?style=for-the-badge&logo=googlebard&logoColor=green&label=Installs&color=green">
<img alt="GitHub" src="https://img.shields.io/github/license/Simoso68/colorcodeconvert?style=for-the-badge&logo=gitbook&logoColor=yellow&color=yellow">
<br><br>
<pre>pip install colorcodeconvert</pre>
</div>

## Examples

### From HEX to RGB

```python
from colorcodeconvert import *

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

### From RGB to HEX

```python
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](https://shields.io).

## License

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