aprf-reader 0.4.0__tar.gz → 0.4.1__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: aprf-reader
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Summarise APRF (Aggregate Performance Reporting) inbox placement reports.
5
5
  License: MIT
6
6
  Requires-Python: >=3.11
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aprf-reader"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  description = "Summarise APRF (Aggregate Performance Reporting) inbox placement reports."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -1,3 +1,3 @@
1
1
  """Read APRF aggregate performance reports."""
2
2
 
3
- __version__ = "0.4.0"
3
+ __version__ = "0.4.1"
@@ -115,7 +115,7 @@ def _counts(value: object, where: str, section: str) -> dict[str, int]:
115
115
  for name, n in value.items():
116
116
  k = _int(n)
117
117
  if k is None or k < 0 or k > MAX_COUNT:
118
- raise ReportError(f"{where}.{name} is not a count ({section}): {json.dumps(n, ensure_ascii=False, separators=(",", ":"))}")
118
+ raise ReportError(f"{where}.{name} is not a count ({section}): {json.dumps(n, ensure_ascii=False, separators=(',', ':'))}")
119
119
  out[str(name)] = k
120
120
  return out
121
121
 
@@ -194,7 +194,7 @@ def _warnings(h: dict, segments: tuple[Segment, ...]) -> tuple[tuple[str, str],
194
194
  raw = h["sdi_used"]
195
195
  if not (raw in ("N/A", "N/F") or (isinstance(raw, str) and SDI_FORMAT.fullmatch(raw))):
196
196
  out.append(("sdi_used is not N/A, N/F, or the sdi value as published in DNS (section 5.2.1)",
197
- json.dumps(raw, ensure_ascii=False, separators=(",", ":"))))
197
+ json.dumps(raw, ensure_ascii=False, separators=(',', ':'))))
198
198
  keys = lambda attr: sorted({k for s in segments for k in getattr(s, attr)})
199
199
  for k in keys("classification"):
200
200
  if k not in NAMED_CLASSIFICATION:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aprf-reader
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Summarise APRF (Aggregate Performance Reporting) inbox placement reports.
5
5
  License: MIT
6
6
  Requires-Python: >=3.11
File without changes
File without changes
File without changes