{ "info": { "author": "Lain Supe (lainproliant)", "author_email": "lainproliant@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "# `\\033[1;31m [ANSIlog] \\033[0m`: Utilities for colorful output, logging, and\n# basic terminal control.\n\n`ansilog` is a CLI-focused module that provides colorful output primitives and\nbasic terminal control. It currently supports 16-color terminal escape\nsequences, along with various ANSI control sequences, attributes, and some\nextra terminal control features. It also offers `ansilog.StreamHandler`, which\ncan be added to loggers to enable colorized log levels and other colorized\noutput. `ansilog` is smart enough to know when it is writing to a `tty` or a\nfile, and will strip all ANSI sequences before writing to files.\n\nColors and attributes are wrapped in a convenient tag interface, with the\n`ansilog.print()` function and `ansilog.StreamHandler` being able to convert\nthese tags to output strings and strip ANSI sequences from them when necessary.\n\nThe tags help automate the labor of resetting to terminal defaults (and\nprevious highlights) when switching between highlight modes. You can include\nany number of string-able objects in the tag factory function and they will\nbe concatenated.\n\nANSIlog respects the `NO_COLOR` environment variable in that all color and\nformat sequences will be ignored if it is set, however cursor escapes and\nexplicitly constructed escape sequences (ala `seq()`) will not be suppressed.\n\n```\nfrom ansilog import *\nprint('Welcome to the ', bright(fg.red('U'), fg.white('S'), fg.blue('A')), '!', sep = '')\n```\n\nFor more precise control, you can output the colors and\nattributes directly as well, but you must remember to reset afterwards.\n\n```\nfrom ansilog import *\nprint('Welcome to the ', bright, fg.red, 'U', fg.white, 'S', fg.blue, 'A', reset, '!', sep = '')\n```\n\n### License\nANSIlog is released under a 3 clause BSD license. See LICENSE for more details.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lainproliant/ansilog", "keywords": "ANSI CLI terminal color colour", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "ansilog", "package_url": "https://pypi.org/project/ansilog/", "platform": "", "project_url": "https://pypi.org/project/ansilog/", "project_urls": { "Homepage": "https://github.com/lainproliant/ansilog" }, "release_url": "https://pypi.org/project/ansilog/1.1/", "requires_dist": null, "requires_python": "", "summary": "Smart and colorful solution for logging, output, and basic terminal control.", "version": "1.1" }, "last_serial": 5956947, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "06319809b5e53c0890eb9e73734cd922", "sha256": "ea2572123b5f80083978d4a87e6670918b75ea0b4a4eb35e350df090bfa91ba4" }, "downloads": -1, "filename": "ansilog-1.0.tar.gz", "has_sig": false, "md5_digest": "06319809b5e53c0890eb9e73734cd922", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5866, "upload_time": "2018-04-11T17:27:38", "url": "https://files.pythonhosted.org/packages/ea/48/1c59314d15d5b8f00523c6bc0087fd90159bd8f9b025c55ebfc14b8b6eab/ansilog-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "002856a15cdf5be9d685cac417ec616c", "sha256": "efaac52d2f6bb35a36e9bfcf6b1784289257460a67e82e782c93c332cd09bbc3" }, "downloads": -1, "filename": "ansilog-1.1.tar.gz", "has_sig": false, "md5_digest": "002856a15cdf5be9d685cac417ec616c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4920, "upload_time": "2019-10-10T20:58:28", "url": "https://files.pythonhosted.org/packages/13/b5/d328cf440d25be614f79067f0c678a1d1b2f09a300dd10d4237af7a35504/ansilog-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "002856a15cdf5be9d685cac417ec616c", "sha256": "efaac52d2f6bb35a36e9bfcf6b1784289257460a67e82e782c93c332cd09bbc3" }, "downloads": -1, "filename": "ansilog-1.1.tar.gz", "has_sig": false, "md5_digest": "002856a15cdf5be9d685cac417ec616c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4920, "upload_time": "2019-10-10T20:58:28", "url": "https://files.pythonhosted.org/packages/13/b5/d328cf440d25be614f79067f0c678a1d1b2f09a300dd10d4237af7a35504/ansilog-1.1.tar.gz" } ] }