{ "info": { "author": "Hiroyuki Ohsaki", "author_email": "ohsaki@lsnl.jp", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# ansiterm Package\n\nansiterm - change color and style (bold, reverse) of text on display\n\n# DESCRIPTION\n\nThis manual page documents **ansiterm** module, a Python module providing\nfunctions for generating ANSI escape sequences to change the color and the\nstyle (i.e., bold and reverse) of text displayed on the screen.\n\nA majority of terminal emulators support ANSI escape sequences. **ansiterm**\nmodule provides handy functions for changing the color and the style.\n\nPlease refer to https://en.wikipedia.org/wiki/ANSI_escape_code for the\nintroduction of ANSI escape sequences.\n\n# EXAMPLE\n\n```python\nfrom ansiterm import color\n\nfor bold in (False, True):\n for reverse in (False, True):\n for name in [\n 'reset', 'bold', 'underline', 'reverse', 'gray', 'red',\n 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'\n ]:\n astr = color('text in {} with bold={}, reverse={}'.format(\n name, bold, reverse),\n name,\n bold=bold,\n reverse=reverse)\n print(astr)\n```\n\n# FUNCTIONS\n\n**ansiterm** module provides the following functions.\n\n- color(astr, name='bold', bold=False, reverse=False)\n\n Embed ANSI escape sequences around string ASTR to change the text style to\n NAME. Make the text boldface and reversed video if BOLD or REVERSE is True,\n respectively.\n\nThe following functions are provided as short-cuts. For instance, blue(astr)\nand reest(astr) are equivalent to color(astr, 'blue') and color(astr, 'reset),\nrespectively.\n\n- reset(astr, bold=False, reverse=False)\n\n- bold(astr, bold=True, reverse=False)\n\n- gray(astr, bold=False, reverse=False)\n\n- red(astr, bold=False, reverse=False)\n\n- green(astr, bold=False, reverse=False)\n\n- yellow(astr, bold=False, reverse=False)\n\n- blue(astr, bold=False, reverse=False)\n\n- magenta(astr, bold=False, reverse=False)\n\n- cyan(astr, bold=False, reverse=False)\n\n- white(astr, bold=False, reverse=False)\n\n# INSTALLATION\n\n```python\npip3 install ansiterm\n```\n\n# AVAILABILITY\n\nThe latest version of **ansiterm** module is available at PyPI\n(https://pypi.org/project/ansiterm/) .\n\n# SEE ALSO\n\nperl(1), perlfunc(1), getopt(3), Getopt::Std(3perl)\n\n# AUTHOR\n\nHiroyuki Ohsaki \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/h-ohsaki/ansiterm", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ansiterm", "package_url": "https://pypi.org/project/ansiterm/", "platform": "", "project_url": "https://pypi.org/project/ansiterm/", "project_urls": { "Homepage": "https://github.com/h-ohsaki/ansiterm" }, "release_url": "https://pypi.org/project/ansiterm/1.1/", "requires_dist": null, "requires_python": "", "summary": "change color and style (bold, reverse) of text on display", "version": "1.1" }, "last_serial": 5490942, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "bbcc3d6ecfea34289b131877e07896c7", "sha256": "de96313701f4be6f10fea4d1caee66a07674929cee9d26d14d37700b5f8d65aa" }, "downloads": -1, "filename": "ansiterm-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bbcc3d6ecfea34289b131877e07896c7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15609, "upload_time": "2019-07-05T09:53:57", "url": "https://files.pythonhosted.org/packages/7a/ab/cd31f939c625d2ddc772a451741eee5d1c7b34a0a05c0266976cf729c8de/ansiterm-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1aba46944d4fe04acef5ded5cc3f2a61", "sha256": "e49217fb5da8149f313f84353967d73cb21933fbde639f3fed656ada1dea1231" }, "downloads": -1, "filename": "ansiterm-1.0.tar.gz", "has_sig": false, "md5_digest": "1aba46944d4fe04acef5ded5cc3f2a61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2985, "upload_time": "2019-07-05T09:53:59", "url": "https://files.pythonhosted.org/packages/cf/af/c0f410d06536c047f1e4e2438d4ad13993582ef6595c68bd35064fd803f7/ansiterm-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "38dc82ad134913aeb30b4d32e6d0a0da", "sha256": "6258baabc93dbb5efbbd281e7ffc294c58cad27d47a93e5a306b6c8f83842cd8" }, "downloads": -1, "filename": "ansiterm-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "38dc82ad134913aeb30b4d32e6d0a0da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15663, "upload_time": "2019-07-05T11:32:25", "url": "https://files.pythonhosted.org/packages/6a/31/fa2673d1ff21a313b4f6d99a19b83dec2d51e2f88395e03d17aa21fd81d8/ansiterm-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e64470bc88f4bfd94384e2b5e305c73", "sha256": "b063cdcc3711706452f489ef5817f97a32407a9006f60006267096dced00e48f" }, "downloads": -1, "filename": "ansiterm-1.1.tar.gz", "has_sig": false, "md5_digest": "3e64470bc88f4bfd94384e2b5e305c73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3019, "upload_time": "2019-07-05T11:32:28", "url": "https://files.pythonhosted.org/packages/c6/97/82085a3c4676c6da8097c96002f41f6b9c0761d1dcdb980b19111c56636a/ansiterm-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38dc82ad134913aeb30b4d32e6d0a0da", "sha256": "6258baabc93dbb5efbbd281e7ffc294c58cad27d47a93e5a306b6c8f83842cd8" }, "downloads": -1, "filename": "ansiterm-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "38dc82ad134913aeb30b4d32e6d0a0da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15663, "upload_time": "2019-07-05T11:32:25", "url": "https://files.pythonhosted.org/packages/6a/31/fa2673d1ff21a313b4f6d99a19b83dec2d51e2f88395e03d17aa21fd81d8/ansiterm-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e64470bc88f4bfd94384e2b5e305c73", "sha256": "b063cdcc3711706452f489ef5817f97a32407a9006f60006267096dced00e48f" }, "downloads": -1, "filename": "ansiterm-1.1.tar.gz", "has_sig": false, "md5_digest": "3e64470bc88f4bfd94384e2b5e305c73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3019, "upload_time": "2019-07-05T11:32:28", "url": "https://files.pythonhosted.org/packages/c6/97/82085a3c4676c6da8097c96002f41f6b9c0761d1dcdb980b19111c56636a/ansiterm-1.1.tar.gz" } ] }