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.9
  • Loading branch information
Hansimov committed Oct 9, 2024
1 parent 19078f5 commit 6f7f7f8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ def test_align_dict_list():
print(dict_to_str(data, align_list=True))


def test_list_of_dicts():
data = {
"list_of_lists": [[1, 2, 3], ["a", "b", "c"]],
"list_of_dicts": [{"key1": "dict1"}, {"key2": "dict2", "key3": "dict3"}],
}
print(dict_to_str(data, align_list=True))


def test_logbar():
epochs = 3
total = 1000000
Expand Down Expand Up @@ -163,6 +171,7 @@ if __name__ == "__main__":
test_case_insensitive_dict()
test_dict_to_str()
test_align_dict_list()
test_list_of_dicts()
test_file_logger()
test_logbar()
test_logbar_group()
Expand Down
9 changes: 9 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ def test_align_dict_list():
print(dict_to_str(data, align_list=True))


def test_list_of_dicts():
data = {
"list_of_lists": [[1, 2, 3], ["a", "b", "c"]],
"list_of_dicts": [{"key1": "dict1"}, {"key2": "dict2", "key3": "dict3"}],
}
print(dict_to_str(data, align_list=True))


def test_logbar():
epochs = 3
total = 1000000
Expand Down Expand Up @@ -142,6 +150,7 @@ def test_logbar_group():
test_case_insensitive_dict()
test_dict_to_str()
test_align_dict_list()
test_list_of_dicts()
test_file_logger()
test_logbar()
test_logbar_group()
Expand Down
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.8.1"
version = "1.1.9"
authors = [
{ name="Hansimov" },
]
Expand Down

0 comments on commit 6f7f7f8

Please sign in to comment.