{ "info": { "author": "Thomas Touhey", "author_email": "thomas@touhey.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Text Processing :: Markup :: HTML" ], "description": "thcolor -- the touhey color management module\n=============================================\n\nThis module is a color management module made by `Thomas Touhey`_ (``th``\nis for ``touhey``) for the `textoutpc`_ project, a BBCode to HTML translation\nmodule. It provides the following features:\n\n- color management and conversions between formats (RGB, HSL, HWB, NCol, \u2026).\n- text-to-color using close-to-CSS format.\n\nFor more information, consult `the official website`_.\n\nExamples\n--------\n\nConverting an RGB color to HSL:\n\n.. code-block:: python\n\n\tfrom thcolor import Color\n\n\tcolor = Color(Color.Type.RGB, 55, 23, 224)\n\tprint(color.hsl())\n\nConverting a HSL color to RGB with an alpha value:\n\n.. code-block:: python\n\n\tfrom thcolor import Color, Angle\n\n\talpha = 0.75\n\tcolor = Color(Color.Type.HSL, Angle(Angle.Type.DEG, 180), 0.5, 1.0, alpha)\n\tprint(color.rgba())\n\nConverting a textual representation to the RGBA color components:\n\n.. code-block:: python\n\n\tfrom thcolor import Color\n\n\tcolor = Color.from_text(\"darker(10%, hsl(0, 1, 50.0%))\")\n\tprint(color.rgba())\n\nGetting the CSS color representations (with compatibility for earlier CSS\nversions) from a textual representation:\n\n.. code-block:: python\n\n\tfrom thcolor import Color\n\n\tcolor = Color.from_text(\"gray(red( #123456 )/0.2/)\")\n\tfor repres in color.css():\n\t\tprint(f\"color: {repres}\")\n\n.. _Thomas Touhey: https://thomas.touhey.fr/\n.. _textoutpc: https://textout.touhey.pro/\n.. _the official website: https://thcolor.touhey.pro/", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://thcolor.touhey.pro/", "keywords": "textout,color,parser,css", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "thcolor", "package_url": "https://pypi.org/project/thcolor/", "platform": "", "project_url": "https://pypi.org/project/thcolor/", "project_urls": { "Homepage": "https://thcolor.touhey.pro/" }, "release_url": "https://pypi.org/project/thcolor/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "color management module", "version": "0.3.1" }, "last_serial": 5251771, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8f2c2ddcc5a11619bf252d94ee1385f1", "sha256": "1fd3d4413792a0ef2a28b382e1a93b98faad98cc37ca7d0340e678369b65babb" }, "downloads": -1, "filename": "thcolor-0.1.tar.gz", "has_sig": false, "md5_digest": "8f2c2ddcc5a11619bf252d94ee1385f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7616, "upload_time": "2019-05-06T10:33:26", "url": "https://files.pythonhosted.org/packages/44/fe/a489c6f8b6950e0c82c82bc7026ed67c33a6b021f0c46c09337e50c86d2e/thcolor-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "738219a4a1e4db7e7fc6ff87be04ddbb", "sha256": "79e85ac15d9807249165c0426d8ada188b4c31b975e3d80bf4f9700b2c8e6f5e" }, "downloads": -1, "filename": "thcolor-0.2.tar.gz", "has_sig": false, "md5_digest": "738219a4a1e4db7e7fc6ff87be04ddbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12197, "upload_time": "2019-05-07T13:41:41", "url": "https://files.pythonhosted.org/packages/51/02/5f3566c3cc737eee6a3f1622f2d4fd2c9b16369bc3a6452391b90bd7c20f/thcolor-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "939cf590f3bd57af1d909f1f73097e05", "sha256": "4e5cf67e2a1196bb71cad72668d2dedc8f2bda44b715d71050fbd481c0a3179d" }, "downloads": -1, "filename": "thcolor-0.2.1.tar.gz", "has_sig": false, "md5_digest": "939cf590f3bd57af1d909f1f73097e05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12195, "upload_time": "2019-05-07T13:47:24", "url": "https://files.pythonhosted.org/packages/0c/ec/88b40bf2cd8e67f0e8cba7a056354c942e7a29cdfa8b94573bc146e4b170/thcolor-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "0a4798e9e81ae1a74425a33ec6c71950", "sha256": "b8e6784dd84a5122a237d2b65f7f430e7c0318bbb0cde4834fcea3ad591689b0" }, "downloads": -1, "filename": "thcolor-0.2.2.tar.gz", "has_sig": false, "md5_digest": "0a4798e9e81ae1a74425a33ec6c71950", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13739, "upload_time": "2019-05-08T11:58:58", "url": "https://files.pythonhosted.org/packages/8d/89/7730dc980435be7d2de0dce508ae32234c100b9267924f9037ccf0515de4/thcolor-0.2.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5aa9cb09010baaa760d60928f34e6919", "sha256": "e65dc86c256ccda94184f90abd8369021b3fb6a01ccfe657394fc4b41a889f12" }, "downloads": -1, "filename": "thcolor-0.3.tar.gz", "has_sig": false, "md5_digest": "5aa9cb09010baaa760d60928f34e6919", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18125, "upload_time": "2019-05-10T11:06:05", "url": "https://files.pythonhosted.org/packages/4f/1c/e437d319872484d2e55a13e23c8e6e2a8bfdf885f9309323c997485ed457/thcolor-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "386803effb7c26941b6adf95f84d5403", "sha256": "a93a535f7f81b5e38460531b5731f0fa8c4b30b2a63d1fe763c2ac15e37df8b7" }, "downloads": -1, "filename": "thcolor-0.3.1.tar.gz", "has_sig": false, "md5_digest": "386803effb7c26941b6adf95f84d5403", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18342, "upload_time": "2019-05-10T11:31:05", "url": "https://files.pythonhosted.org/packages/76/9a/62deb9c5fb4c1a27f79cc3cd5c7abe92d8d55cd0f99845945295075224ce/thcolor-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "386803effb7c26941b6adf95f84d5403", "sha256": "a93a535f7f81b5e38460531b5731f0fa8c4b30b2a63d1fe763c2ac15e37df8b7" }, "downloads": -1, "filename": "thcolor-0.3.1.tar.gz", "has_sig": false, "md5_digest": "386803effb7c26941b6adf95f84d5403", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18342, "upload_time": "2019-05-10T11:31:05", "url": "https://files.pythonhosted.org/packages/76/9a/62deb9c5fb4c1a27f79cc3cd5c7abe92d8d55cd0f99845945295075224ce/thcolor-0.3.1.tar.gz" } ] }