{ "info": { "author": "Brian Bruggeman", "author_email": "brian.m.bruggeman@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Topic :: System :: Logging", "Topic :: Terminals", "Typing :: Typed" ], "description": "======\nReadme\n======\n\nTermlog\n=======\n\n.. image:: http://img.shields.io/badge/license-MIT-brightgreen.svg\n :target: http://opensource.org/licenses/MIT\n\n.. image:: https://badge.fury.io/py/termlog.svg\n :target: https://pypi.python.org/pypi/termlog\n\n.. image:: https://travis-ci.org/brianbruggeman/termlog.svg\n :target: https://travis-ci.org/brianbruggeman/termlog\n\n.. image:: https://codecov.io/gh/brianbruggeman/termlog/branch/develop/graph/badge.svg?token=y6xPnPtcdc\n :target: https://codecov.io/gh/brianbruggeman/termlog\n\nTermlog: A terminal logging library for logging data both as lexed text or json\n\nMotivation\n==========\n\nI love f-strings and I wanted a method of displaying\nbeautiful f-strings in command-line interfaces.\nHowever, I needed a way of simultaneously creating a\ndeveloper friendly text log and producing structured\ntext that could be interpreted by a log-shipper in a\nclustered environment.\n\nTermlog will...\n\n* wrap print statements with a new method, `echo`\n* `echo` is fully compatible with print and is meant\n to be a drop-in replacement\n* `echo` can immediately control: color, json,\n timestamp, time-format outputs on each invocation\n* Alternatively, a `set_config` command can set the\n library to use a specific configuration for each subsequent call to `echo`\n\nUsage\n=====\n\n.. code-block:: python\n\n from termlog import blue, echo, red, rgb, set_config\n\n key = 'abc'\n value = 123\n\n set_config(color=True, json=False)\n\n echo(f'{red(key)}: {blue(value)}')\n echo(f'{rgb(message=key, red=71, green=61, blue=139)}: {blue(value)}')\n echo(f'{key}: {blue(value)}', color=True)\n\nInstallation\n============\n\nTo install termlog, simply run the following.\n\n.. code-block:: bash\n\n $ pip install termlog\n\n.. include::./CONTRIBUTING.rst", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brianbruggeman/termlog", "keywords": "terminal,logger,docker", "license": "MIT", "maintainer": "Brian Bruggeman", "maintainer_email": "brian.m.bruggeman@gmail.com", "name": "termlog", "package_url": "https://pypi.org/project/termlog/", "platform": "any", "project_url": "https://pypi.org/project/termlog/", "project_urls": { "Bug reports": "https://github.com/brianbruggeman/termlog/issues", "Code coverage": "https://codecov.io/gh/brianbruggeman/termlog", "Documentation": "https://termlog.readthedocs.io/en/latest/", "Homepage": "https://github.com/brianbruggeman/termlog", "Travis ci": "https://travis-ci.org/brianbruggeman/termlog" }, "release_url": "https://pypi.org/project/termlog/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "termlog v1.1.0: A terminal logging library", "version": "1.1.0" }, "last_serial": 5454014, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "96e1b4bc6150ea46e555e3b2e791dce1", "sha256": "e234f972217959ed3c3202291270c9929bb7caaaa6ca996dfb7529f0c2853bad" }, "downloads": -1, "filename": "termlog-1.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "96e1b4bc6150ea46e555e3b2e791dce1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17206, "upload_time": "2019-06-06T23:35:32", "url": "https://files.pythonhosted.org/packages/20/dc/1ce7ecea03eb60a6c14bc1a918879126cf5b259791c3fc0c189b054e3d99/termlog-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a76fcd6920c53c0b7ad9463f9b44e35a", "sha256": "0c2d3b817c7e4cece0f2ea40c36db52687c05e3b9c4a02cfc4266f979eecd56d" }, "downloads": -1, "filename": "termlog-1.0.0.tar.gz", "has_sig": true, "md5_digest": "a76fcd6920c53c0b7ad9463f9b44e35a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28675, "upload_time": "2019-06-06T23:35:35", "url": "https://files.pythonhosted.org/packages/39/32/a332297885d3861f2b1b2d0e647d0c8351f66008f20e8e798b31ad80ce5c/termlog-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d6961f0d0b2c03e0d218835d56efdbb3", "sha256": "d067a5d8ecdf0d5158c1a9692da8e8cce6697e15b079e58eecebaba431489971" }, "downloads": -1, "filename": "termlog-1.0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "d6961f0d0b2c03e0d218835d56efdbb3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17203, "upload_time": "2019-06-07T00:08:56", "url": "https://files.pythonhosted.org/packages/3b/ba/4db62ac91002611297030c2accdd3ceb8299acbe5b55b29f2969f936827e/termlog-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c5e019e4324bbb9e0ba89828e0ffee0", "sha256": "76aadce8157477a5d97e8248dfc33e8107c87e612106193b3c218b8a44963485" }, "downloads": -1, "filename": "termlog-1.0.2.tar.gz", "has_sig": true, "md5_digest": "2c5e019e4324bbb9e0ba89828e0ffee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28688, "upload_time": "2019-06-07T00:08:58", "url": "https://files.pythonhosted.org/packages/b3/08/ba6a3fbd3ea8fec3fde1db43de19de942c510cf257d13fce97b357f542d9/termlog-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6ec3c6e0ab6138a03d2386b5e2da862a", "sha256": "37c9d29f2508dc3183e1c4f37ee95921f3d911849a8f8ed7e5ef9d130b4ed60e" }, "downloads": -1, "filename": "termlog-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ec3c6e0ab6138a03d2386b5e2da862a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20271, "upload_time": "2019-06-26T21:58:00", "url": "https://files.pythonhosted.org/packages/b0/e8/adadc5d96f3ba28d0cd61851f6d4b30d985a2a68f9402b6ef9cfaf138825/termlog-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c86845e5c4985cf3bc93f1d16525d267", "sha256": "1632ce294e84d80afb2a16c1921be53ca3d1f2f9b20c8d73002dd523c342d784" }, "downloads": -1, "filename": "termlog-1.1.0.tar.gz", "has_sig": false, "md5_digest": "c86845e5c4985cf3bc93f1d16525d267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31015, "upload_time": "2019-06-26T21:57:57", "url": "https://files.pythonhosted.org/packages/f0/e0/338aedacd30e99e8c68a5553e0d66ddfcc16f8db32fd0da656ebc9a0de40/termlog-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ec3c6e0ab6138a03d2386b5e2da862a", "sha256": "37c9d29f2508dc3183e1c4f37ee95921f3d911849a8f8ed7e5ef9d130b4ed60e" }, "downloads": -1, "filename": "termlog-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ec3c6e0ab6138a03d2386b5e2da862a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20271, "upload_time": "2019-06-26T21:58:00", "url": "https://files.pythonhosted.org/packages/b0/e8/adadc5d96f3ba28d0cd61851f6d4b30d985a2a68f9402b6ef9cfaf138825/termlog-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c86845e5c4985cf3bc93f1d16525d267", "sha256": "1632ce294e84d80afb2a16c1921be53ca3d1f2f9b20c8d73002dd523c342d784" }, "downloads": -1, "filename": "termlog-1.1.0.tar.gz", "has_sig": false, "md5_digest": "c86845e5c4985cf3bc93f1d16525d267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31015, "upload_time": "2019-06-26T21:57:57", "url": "https://files.pythonhosted.org/packages/f0/e0/338aedacd30e99e8c68a5553e0d66ddfcc16f8db32fd0da656ebc9a0de40/termlog-1.1.0.tar.gz" } ] }