hexacolors


Namehexacolors JSON
Version 0.6.2 PyPI version JSON
download
home_page
Summary:A simple library that converts string to hexadecimal understandable by python
upload_time2023-01-25 14:40:45
maintainer
docs_urlNone
authorMarciel404
requires_python>=3.10
licenseMIT
keywords python understandable colors
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hexacolors

A simple library that converts string to hexadecimal understandable by python

A simple library that converts RGB to hexadecimal understandable by python

A simple library that converts CMYK to hexadecimal understandable by python

A simple library that converts HSL to hexadecimal understandable by python

A simple library that converts hexadecimal understandable by python

I created this library more to use as pycord integration

## Usage:
### install with pip

```shell
pip install hexacolors
```

### Import on your code:

```python
import hexacolors
```
### Run it
```python

Run if online:

    Using StringColor:

        >>> import hexacolors
        >>> hexacolors.stringColor('Blue')
        >>> print(hexacolors.listall) #List all colors availables
        
    Using HexaColor:

        >>> import hexacolors
        >>> hexacolors.hexadecimal('#0000FF') #Convert Hexadecimal Color for Python understand

    Using rgb:

        >>> import hexacolors
        >>> hexacolors.rgb("255,255,255")

    Using cmyk:

        >>> import hexacolors
        >>> hexacolors.cmyk("423,522,4,244")

    Using hsl:

        >>> import hexacolors
        >>> hexacolors.hsl('423,60%,70%')

    Using AutoDetect:
    
        >>> import hexacolors
        >>> hexacolors.autodetect('Blue') #Identify string
        >>> hexacolors.autodetect('#fff000') #Identify Hexadecimal
        >>> hexacolors.autodetect('255,255,255') #Identify RGB
        >>> hexacolors.autodetect('423,522,4,244') #Identify CMYK
        >>> hexacolors.autodetect('255,75%,64%') #Identify HSL


Run if offline:

    Using StringColor:

        >>> import hexacolors
        >>>
        >>> hexacolors.stringColor('Blue')
        >>>
        >>> print(hexacolors.listall) #List all colors availables
        
    Using HexaColor:

        >>> import hexacolors
        >>>
        >>> hexacolors.hexadecimaloff('#0000FF') #Convert Hexadecimal Color for Python understand

    Using rgb:

        >>> import hexacolors
        >>>
        >>> hexacolors.rgboff(255,255,255)

    Using cmyk:

        >>> import hexacolors
        >>>
        >>> hexacolors.cmykoff(423,522,4,244)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "hexacolors",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "Python understandable colors",
    "author": "Marciel404",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/92/61/dbcbf86be6c1d984c91ab12d05801e51597b2412a016627b4fbee996e459/hexacolors-0.6.2.tar.gz",
    "platform": null,
    "description": "# Hexacolors\r\n\r\nA simple library that converts string to hexadecimal understandable by python\r\n\r\nA simple library that converts RGB to hexadecimal understandable by python\r\n\r\nA simple library that converts CMYK to hexadecimal understandable by python\r\n\r\nA simple library that converts HSL to hexadecimal understandable by python\r\n\r\nA simple library that converts hexadecimal understandable by python\r\n\r\nI created this library more to use as pycord integration\r\n\r\n## Usage:\r\n### install with pip\r\n\r\n```shell\r\npip install hexacolors\r\n```\r\n\r\n### Import on your code:\r\n\r\n```python\r\nimport hexacolors\r\n```\r\n### Run it\r\n```python\r\n\r\nRun if online:\r\n\r\n    Using StringColor:\r\n\r\n        >>> import hexacolors\r\n        >>> hexacolors.stringColor('Blue')\r\n        >>> print(hexacolors.listall) #List all colors availables\r\n        \r\n    Using HexaColor:\r\n\r\n        >>> import hexacolors\r\n        >>> hexacolors.hexadecimal('#0000FF') #Convert Hexadecimal Color for Python understand\r\n\r\n    Using rgb:\r\n\r\n        >>> import hexacolors\r\n        >>> hexacolors.rgb(\"255,255,255\")\r\n\r\n    Using cmyk:\r\n\r\n        >>> import hexacolors\r\n        >>> hexacolors.cmyk(\"423,522,4,244\")\r\n\r\n    Using hsl:\r\n\r\n        >>> import hexacolors\r\n        >>> hexacolors.hsl('423,60%,70%')\r\n\r\n    Using AutoDetect:\r\n    \r\n        >>> import hexacolors\r\n        >>> hexacolors.autodetect('Blue') #Identify string\r\n        >>> hexacolors.autodetect('#fff000') #Identify Hexadecimal\r\n        >>> hexacolors.autodetect('255,255,255') #Identify RGB\r\n        >>> hexacolors.autodetect('423,522,4,244') #Identify CMYK\r\n        >>> hexacolors.autodetect('255,75%,64%') #Identify HSL\r\n\r\n\r\nRun if offline:\r\n\r\n    Using StringColor:\r\n\r\n        >>> import hexacolors\r\n        >>>\r\n        >>> hexacolors.stringColor('Blue')\r\n        >>>\r\n        >>> print(hexacolors.listall) #List all colors availables\r\n        \r\n    Using HexaColor:\r\n\r\n        >>> import hexacolors\r\n        >>>\r\n        >>> hexacolors.hexadecimaloff('#0000FF') #Convert Hexadecimal Color for Python understand\r\n\r\n    Using rgb:\r\n\r\n        >>> import hexacolors\r\n        >>>\r\n        >>> hexacolors.rgboff(255,255,255)\r\n\r\n    Using cmyk:\r\n\r\n        >>> import hexacolors\r\n        >>>\r\n        >>> hexacolors.cmykoff(423,522,4,244)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": ":A simple library that converts string to hexadecimal understandable by python",
    "version": "0.6.2",
    "project_urls": {
        "Homepage": "https://github.com/Marciel404/hexacolors"
    },
    "split_keywords": [
        "python",
        "understandable",
        "colors"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9261dbcbf86be6c1d984c91ab12d05801e51597b2412a016627b4fbee996e459",
                "md5": "72ba0a53503c777d7853fc68100fd491",
                "sha256": "b2996870b6404b617c5468c47ba28e2b3c3f6f7038fdbd7a45c7f66cf68ea409"
            },
            "downloads": -1,
            "filename": "hexacolors-0.6.2.tar.gz",
            "has_sig": false,
            "md5_digest": "72ba0a53503c777d7853fc68100fd491",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 7512,
            "upload_time": "2023-01-25T14:40:45",
            "upload_time_iso_8601": "2023-01-25T14:40:45.404444Z",
            "url": "https://files.pythonhosted.org/packages/92/61/dbcbf86be6c1d984c91ab12d05801e51597b2412a016627b4fbee996e459/hexacolors-0.6.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-25 14:40:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Marciel404",
    "github_project": "hexacolors",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hexacolors"
}
        
Elapsed time: 2.05447s