Skip to content

Commit

Permalink
Release version 0.0.0.dev43
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Sep 27, 2024
1 parent becccf2 commit 692473e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev42"
version = "0.0.0.dev43"
name = "LoggerMan"
dependencies = [
"MDit == 0.0.0.dev14",
"MDit == 0.0.0.dev15",
"ActionMan == 0.0.0.dev24",
"ProtocolMan == 0.0.0.dev2",
"ExceptionMan == 0.0.0.dev14",
"ExceptionMan == 0.0.0.dev15",
"pydantic",
"rich",
]
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MDit == 0.0.0.dev14
MDit == 0.0.0.dev15
ActionMan == 0.0.0.dev24
ProtocolMan == 0.0.0.dev2
ExceptionMan == 0.0.0.dev14
ExceptionMan == 0.0.0.dev15
pydantic
rich
13 changes: 13 additions & 0 deletions src/loggerman/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import traceback as _traceback
from functools import wraps as _wraps
from pathlib import Path as _Path
from contextlib import contextmanager as _contextmanager

import actionman as _actionman
import mdit as _mdit
Expand Down Expand Up @@ -357,6 +358,18 @@ def exception_handler(section_handler, e, func, args, kwargs):
handler = handler or {}
return section_decorator

@_contextmanager
def sectioning(
self,
title: str,
key: str | None = None,
conditions: str | list[str] | None = None,
):
self.section(title=title, key=key, conditions=conditions)
yield
self.section_end()
return

def section(
self,
title: str,
Expand Down

0 comments on commit 692473e

Please sign in to comment.