Skip to content

Commit

Permalink
📝 [Doc] README: update example with latest feature, and upgrade to v1…
Browse files Browse the repository at this point in the history
….1.10
Hansimov committed Oct 19, 2024
1 parent d8ebd93 commit 10ec59c
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ from tclogger import ts_to_str, str_to_ts, dt_to_str
from tclogger import CaseInsensitiveDict, DictStringifier, dict_to_str
from tclogger import FileLogger
from tclogger import TCLogbar, TCLogbarGroup
from tclogger import brk, brc, brp


def test_run_timer_and_logger():
@@ -166,6 +167,13 @@ def test_logbar_group():
epoch_bar.update(1, desc=f"[{epoch+1}/{epochs}]", flush=True)


def test_decorations():
text = "Hello World"
logger.note(f"Brackets: {logstr.mesg(brk(text))}")
logger.note(f"Braces : {logstr.mesg(brc(text))}")
logger.note(f"Parens : {logstr.mesg(brp(text))}")


if __name__ == "__main__":
test_run_timer_and_logger()
test_dt_to_str()
@@ -177,4 +185,5 @@ if __name__ == "__main__":
test_file_logger()
test_logbar()
test_logbar_group()
test_decorations()
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tclogger"
version = "1.1.9.1"
version = "1.1.10"
authors = [
{ name="Hansimov" },
]

0 comments on commit 10ec59c

Please sign in to comment.