{"id":16580013,"url":"https://github.com/brianbruggeman/termlog","last_synced_at":"2026-05-08T17:44:21.722Z","repository":{"id":57474286,"uuid":"190282556","full_name":"brianbruggeman/termlog","owner":"brianbruggeman","description":"A terminal logging library for docker-based python images","archived":false,"fork":false,"pushed_at":"2024-03-20T18:18:13.000Z","size":982,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"stable","last_synced_at":"2025-02-10T07:12:59.680Z","etag":null,"topics":["command-line","docker","logging","python3","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianbruggeman.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-04T21:33:58.000Z","updated_at":"2023-07-10T05:27:33.000Z","dependencies_parsed_at":"2024-12-18T02:53:14.654Z","dependency_job_id":null,"html_url":"https://github.com/brianbruggeman/termlog","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":0.1578947368421053,"last_synced_commit":"361883f790ab6fae158095585370672e3ca8e354"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbruggeman%2Ftermlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbruggeman%2Ftermlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbruggeman%2Ftermlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbruggeman%2Ftermlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianbruggeman","download_url":"https://codeload.github.com/brianbruggeman/termlog/tar.gz/refs/heads/stable","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247257027,"owners_count":20909391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","docker","logging","python3","terminal"],"created_at":"2024-10-11T22:19:50.351Z","updated_at":"2026-05-08T17:44:16.692Z","avatar_url":"https://github.com/brianbruggeman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"======\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://github.com/brianbruggeman/termlog/workflows/Latest%20Stable/badge.svg\n    :target: https://github.com/brianbruggeman/termlog/actions\n\n.. image:: https://codecov.io/gh/brianbruggeman/termlog/branch/stable/graph/badge.svg?token=y6xPnPtcdc\n    :target: https://codecov.io/gh/brianbruggeman/termlog\n\n\nTermlog: A terminal logging library for logging data both as lexed text or json\n\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\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\n\n\nInstallation\n============\n\nTo install termlog, simply run the following.\n\n.. code-block:: bash\n\n    $ pip install termlog\n\n\n.. include::./CONTRIBUTING.rst\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianbruggeman%2Ftermlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianbruggeman%2Ftermlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianbruggeman%2Ftermlog/lists"}