without-logging 0.0.2__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: without-logging
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: A without pipeline for logs: stdlib log records parsed into immutable values, filtered and enriched as processors, drained to a sink.
5
5
  Author: Josh Karpel
6
6
  Author-email: Josh Karpel <josh.karpel@gmail.com>
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.14
15
15
  Classifier: Topic :: Software Development :: Libraries
16
16
  Classifier: Topic :: System :: Logging
17
17
  Classifier: Typing :: Typed
18
- Requires-Dist: without-core==0.0.2
18
+ Requires-Dist: without-core==0.0.4
19
19
  Requires-Python: >=3.14
20
20
  Description-Content-Type: text/markdown
21
21
 
@@ -45,7 +45,7 @@ async def write(record):
45
45
 
46
46
  pipeline = compose(from_selector(at_least(Level.WARNING)), from_sink(write))
47
47
 
48
- async with capture(pipeline): # attaches to the root logger for the block
48
+ async with capture(pipeline): # attaches to the root logger for the block
49
49
  logging.getLogger("app").warning("disk almost full", extra={"free_pct": 3})
50
50
  ```
51
51
 
@@ -71,7 +71,7 @@ from without_logging import Level, at_least, offload, to_rotating_file
71
71
 
72
72
  writer = to_rotating_file(lambda i, when: directory / f"app.{i}.log", max_bytes=64 << 20, max_age=timedelta(hours=1))
73
73
  async with offload(writer) as sink:
74
- lines = compose(from_map(render), sink) # Record -> str -> file
74
+ lines = compose(from_map(render), sink) # Record -> str -> file
75
75
  async with capture(compose(from_selector(at_least(Level.WARNING)), lines)):
76
76
  ... # WARNING+ records written off the event loop, rotated by size and time
77
77
  ```
@@ -24,7 +24,7 @@ async def write(record):
24
24
 
25
25
  pipeline = compose(from_selector(at_least(Level.WARNING)), from_sink(write))
26
26
 
27
- async with capture(pipeline): # attaches to the root logger for the block
27
+ async with capture(pipeline): # attaches to the root logger for the block
28
28
  logging.getLogger("app").warning("disk almost full", extra={"free_pct": 3})
29
29
  ```
30
30
 
@@ -50,7 +50,7 @@ from without_logging import Level, at_least, offload, to_rotating_file
50
50
 
51
51
  writer = to_rotating_file(lambda i, when: directory / f"app.{i}.log", max_bytes=64 << 20, max_age=timedelta(hours=1))
52
52
  async with offload(writer) as sink:
53
- lines = compose(from_map(render), sink) # Record -> str -> file
53
+ lines = compose(from_map(render), sink) # Record -> str -> file
54
54
  async with capture(compose(from_selector(at_least(Level.WARNING)), lines)):
55
55
  ... # WARNING+ records written off the event loop, rotated by size and time
56
56
  ```
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["uv_build>=0.11.32,<0.12"]
2
+ requires = ["uv_build>=0.12.3,<0.13"]
3
3
  build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "without-logging"
7
- version = "0.0.2"
7
+ version = "0.0.4"
8
8
  description = "A without pipeline for logs: stdlib log records parsed into immutable values, filtered and enriched as processors, drained to a sink."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -21,7 +21,7 @@ classifiers = [
21
21
  "Topic :: System :: Logging",
22
22
  "Typing :: Typed",
23
23
  ]
24
- dependencies = ["without-core==0.0.2"]
24
+ dependencies = ["without-core==0.0.4"]
25
25
 
26
26
  [[project.authors]]
27
27
  name = "Josh Karpel"
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["uv_build>=0.11.32,<0.12"]
2
+ requires = ["uv_build>=0.12.3,<0.13"]
3
3
  build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "without-logging"
7
- version = "0.0.2"
7
+ version = "0.0.4"
8
8
  description = "A without pipeline for logs: stdlib log records parsed into immutable values, filtered and enriched as processors, drained to a sink."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -25,7 +25,7 @@ classifiers = [
25
25
  "Typing :: Typed",
26
26
  ]
27
27
  dependencies = [
28
- "without-core==0.0.2",
28
+ "without-core==0.0.4",
29
29
  ]
30
30
 
31
31
  [tool.uv.sources]