blitzid 0.3.2__tar.gz → 0.3.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.
Files changed (88) hide show
  1. {blitzid-0.3.2 → blitzid-0.3.4}/CHANGELOG.md +31 -0
  2. {blitzid-0.3.2 → blitzid-0.3.4}/PKG-INFO +3 -1
  3. {blitzid-0.3.2 → blitzid-0.3.4}/docs/coding-standard.md +1 -1
  4. {blitzid-0.3.2 → blitzid-0.3.4}/pyproject.toml +5 -1
  5. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/_analyze.py +1 -1
  6. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/barcode.py +56 -15
  7. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_barcode.py +88 -6
  8. {blitzid-0.3.2 → blitzid-0.3.4}/uv.lock +28 -57
  9. {blitzid-0.3.2 → blitzid-0.3.4}/.dockerignore +0 -0
  10. {blitzid-0.3.2 → blitzid-0.3.4}/.env.example +0 -0
  11. {blitzid-0.3.2 → blitzid-0.3.4}/.github/workflows/ci.yml +0 -0
  12. {blitzid-0.3.2 → blitzid-0.3.4}/.github/workflows/docker.yml +0 -0
  13. {blitzid-0.3.2 → blitzid-0.3.4}/.github/workflows/publish.yml +0 -0
  14. {blitzid-0.3.2 → blitzid-0.3.4}/.gitignore +0 -0
  15. {blitzid-0.3.2 → blitzid-0.3.4}/.pre-commit-config.yaml +0 -0
  16. {blitzid-0.3.2 → blitzid-0.3.4}/CONTRIBUTING.md +0 -0
  17. {blitzid-0.3.2 → blitzid-0.3.4}/Dockerfile +0 -0
  18. {blitzid-0.3.2 → blitzid-0.3.4}/LICENSE +0 -0
  19. {blitzid-0.3.2 → blitzid-0.3.4}/README.md +0 -0
  20. {blitzid-0.3.2 → blitzid-0.3.4}/docker-compose.dev.yml +0 -0
  21. {blitzid-0.3.2 → blitzid-0.3.4}/docker-compose.gpu.yml +0 -0
  22. {blitzid-0.3.2 → blitzid-0.3.4}/docker-compose.yml +0 -0
  23. {blitzid-0.3.2 → blitzid-0.3.4}/docs/integration.md +0 -0
  24. {blitzid-0.3.2 → blitzid-0.3.4}/images/README.md +0 -0
  25. {blitzid-0.3.2 → blitzid-0.3.4}/images/bub_der_personalausweis_kopie.jpg +0 -0
  26. {blitzid-0.3.2 → blitzid-0.3.4}/images/nl_td1_id_specimen.jpg +0 -0
  27. {blitzid-0.3.2 → blitzid-0.3.4}/images/ny_license_plate_wrap.jpg +0 -0
  28. {blitzid-0.3.2 → blitzid-0.3.4}/images/nys_driver_license_sample.webp +0 -0
  29. {blitzid-0.3.2 → blitzid-0.3.4}/images/solvay_conference_1927.jpg +0 -0
  30. {blitzid-0.3.2 → blitzid-0.3.4}/images/td3_passport_specimen.jpg +0 -0
  31. {blitzid-0.3.2 → blitzid-0.3.4}/images/tlc_driver_license_sample.png +0 -0
  32. {blitzid-0.3.2 → blitzid-0.3.4}/models/.gitkeep +0 -0
  33. {blitzid-0.3.2 → blitzid-0.3.4}/models/README.md +0 -0
  34. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/README.md +0 -0
  35. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/api_smoke.py +0 -0
  36. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/benchmark.py +0 -0
  37. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/demo_cli.py +0 -0
  38. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/download_models.py +0 -0
  39. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/face_detector_demo.py +0 -0
  40. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/midv500.py +0 -0
  41. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/ocr_demo.py +0 -0
  42. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/structurize_smoke.py +0 -0
  43. {blitzid-0.3.2 → blitzid-0.3.4}/scripts/verify_smoke.py +0 -0
  44. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/__init__.py +0 -0
  45. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/_dates.py +0 -0
  46. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/_image.py +0 -0
  47. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/_models.py +0 -0
  48. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/__init__.py +0 -0
  49. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/_app.py +0 -0
  50. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/_jobs.py +0 -0
  51. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/_liveness.py +0 -0
  52. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/_schemas.py +0 -0
  53. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/api/_upload.py +0 -0
  54. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/exceptions.py +0 -0
  55. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/__init__.py +0 -0
  56. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/_antispoof.py +0 -0
  57. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/_arcface.py +0 -0
  58. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/_attributes.py +0 -0
  59. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/_face.py +0 -0
  60. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/_motion.py +0 -0
  61. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/_scrfd.py +0 -0
  62. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/detector.py +0 -0
  63. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/face/verifier.py +0 -0
  64. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/py.typed +0 -0
  65. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/__init__.py +0 -0
  66. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/_observability.py +0 -0
  67. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/consistency.py +0 -0
  68. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/document.py +0 -0
  69. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/mrz.py +0 -0
  70. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/ocr.py +0 -0
  71. {blitzid-0.3.2 → blitzid-0.3.4}/src/blitzid/reading/structurize.py +0 -0
  72. {blitzid-0.3.2 → blitzid-0.3.4}/tests/conftest.py +0 -0
  73. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_antispoof.py +0 -0
  74. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_api.py +0 -0
  75. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_attributes.py +0 -0
  76. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_consistency.py +0 -0
  77. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_detector.py +0 -0
  78. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_detector_helpers.py +0 -0
  79. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_document.py +0 -0
  80. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_exceptions.py +0 -0
  81. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_image.py +0 -0
  82. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_models.py +0 -0
  83. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_motion.py +0 -0
  84. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_mrz.py +0 -0
  85. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_ocr.py +0 -0
  86. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_refactored.py +0 -0
  87. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_structurize.py +0 -0
  88. {blitzid-0.3.2 → blitzid-0.3.4}/tests/test_verifier.py +0 -0
@@ -4,6 +4,37 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.3.4] - 2026-10-06
8
+
9
+ ### Fixed
10
+
11
+ - `BarcodeReader.read` failed the whole read on the first
12
+ AAMVA-looking barcode in the image: a corrupt or truncated
13
+ candidate next to a valid PDF417 raised `BarcodeError` instead of
14
+ falling through. Every decoded barcode is now tried and the first
15
+ payload that parses wins; a candidate's validation error is only
16
+ raised when nothing else parses.
17
+ - A non-standard `DBC` sex code (anything outside 1/2/9) aborted the
18
+ whole record. It now maps to `X` (unspecified) with the raw code
19
+ preserved in `extra_tags`; a missing `DBC` is still a hard error.
20
+ - Subfile directory entries with a zero-length region passed
21
+ validation through an off-by-one on the segment-terminator check,
22
+ and non-letter designators were accepted. Lengths below the
23
+ designator + terminator minimum and non-letter designators are now
24
+ rejected.
25
+
26
+ ## [0.3.3] - 2026-10-06
27
+
28
+ ### Fixed
29
+
30
+ - The `structured` engine failed to build in the v0.3.2 image (and
31
+ any fresh install of the `ocr` extra): `opentelemetry-api` 1.44+
32
+ removed the private `._events` module that `pydantic-ai` 0.8.1 still
33
+ imports, so `import pydantic_ai` raised `ModuleNotFoundError` and
34
+ `/health` reported `structured: false` even with `BLITZID_LLM_*`
35
+ configured. `opentelemetry-api` is now pinned `<1.44` in the `ocr`
36
+ extra until pydantic-ai catches up.
37
+
7
38
  ## [0.3.2] - 2026-10-06
8
39
 
9
40
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: blitzid
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Modular DNN-based ID document reading framework (face detection, OCR, MRZ) optimized for CPU deployment
5
5
  Project-URL: Homepage, https://github.com/malvavisc0/blitzid
6
6
  Project-URL: Repository, https://github.com/malvavisc0/blitzid
@@ -28,6 +28,7 @@ Requires-Dist: fastapi; extra == 'all'
28
28
  Requires-Dist: httpx; extra == 'all'
29
29
  Requires-Dist: langfuse; extra == 'all'
30
30
  Requires-Dist: mypy; extra == 'all'
31
+ Requires-Dist: opentelemetry-api<1.44; extra == 'all'
31
32
  Requires-Dist: pre-commit; extra == 'all'
32
33
  Requires-Dist: pydantic-ai; extra == 'all'
33
34
  Requires-Dist: pytest; extra == 'all'
@@ -60,6 +61,7 @@ Requires-Dist: tqdm; extra == 'dev'
60
61
  Requires-Dist: types-tqdm; extra == 'dev'
61
62
  Provides-Extra: ocr
62
63
  Requires-Dist: langfuse; extra == 'ocr'
64
+ Requires-Dist: opentelemetry-api<1.44; extra == 'ocr'
63
65
  Requires-Dist: pydantic-ai; extra == 'ocr'
64
66
  Requires-Dist: rapidocr; extra == 'ocr'
65
67
  Provides-Extra: scripts
@@ -4,7 +4,7 @@
4
4
  You are talking to seniors. Be terse — no preamble, no recap, no
5
5
  hand-holding, no "here's what I did" summaries. State results, not
6
6
  intentions. Skip explanations unless explicitly asked. Never narrate
7
- tool use. Answer the question; move on.
7
+ tool use. Answer the question; move on. Talk as a human-being.
8
8
 
9
9
  ## Project
10
10
  blitzid — modular DNN-based ID document reading framework, optimized
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "blitzid"
3
- version = "0.3.2"
3
+ version = "0.3.4"
4
4
  description = "Modular DNN-based ID document reading framework (face detection, OCR, MRZ) optimized for CPU deployment"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -46,6 +46,10 @@ ocr = [
46
46
  "pydantic-ai",
47
47
  # Optional: Langfuse tracing of the LLM calls (env-gated).
48
48
  "langfuse",
49
+ # opentelemetry-api 1.44+ dropped the private `._events` module
50
+ # pydantic-ai 0.8.1 still imports; hold the 1.43 line until it
51
+ # catches up.
52
+ "opentelemetry-api<1.44",
49
53
  ]
50
54
  barcode = [
51
55
  # PDF417 decoding for AAMVA driver's-license payloads (also the
@@ -52,7 +52,7 @@ class Engines:
52
52
  structured sections), and ``structured_lock`` the LLM reader. The
53
53
  FairFace, MiniFASNet, and ArcFace passes are plain onnxruntime
54
54
  sessions, which are thread-safe, so they run outside any lock, and
55
- the zxing-cpp barcode decode builds a fresh reader per call.
55
+ the zxing-cpp barcode decode is a stateless per-call function.
56
56
  Fields are None when an engine is unavailable (missing ``ocr`` or
57
57
  ``barcode`` extra, missing weights, missing LLM configuration).
58
58
  """
@@ -18,7 +18,8 @@ Payload layout (AAMVA versions 02-14)::
18
18
  Subfile offsets are absolute from the first byte (the ``@``). Each
19
19
  subfile holds 3-character element IDs followed by their values, one
20
20
  per LF-separated line; the DL/ID/EN subfile carries the standard
21
- elements and jurisdiction ``Z..`` subfiles carry state-specific extras.
21
+ elements (EN is the pre-2025 enhanced-license subfile) and
22
+ jurisdiction ``Z..`` subfiles carry state-specific extras.
22
23
 
23
24
  Element semantics differ across editions, so each edition's tag map is
24
25
  pinned separately: versions 02-03 encode the given name in DCT (first
@@ -29,7 +30,8 @@ throughout. DAA is the full-name element only in the version-01
29
30
  keeps the value raw in ``extra_tags``. Date elements
30
31
  (DBB, DBD, DBA) are MMDDYYYY (U.S.) or CCYYMMDD (Canada) and normalize
31
32
  via :func:`blitzid._dates.parse_date`; DBC sex encodes 1=male,
32
- 2=female, 9=unspecified.
33
+ 2=female, 9=unspecified, and any other code maps to unspecified with
34
+ the raw code kept in ``extra_tags``.
33
35
  """
34
36
 
35
37
  from __future__ import annotations
@@ -74,13 +76,15 @@ class BarcodeRecord:
74
76
  birth_date: Date of birth (DBB).
75
77
  issue_date: Document issue date (DBD).
76
78
  expiry_date: Document expiration date (DBA).
77
- sex: ``"M"``, ``"F"``, or ``"X"`` (DBC 1/2/9).
79
+ sex: ``"M"``, ``"F"``, or ``"X"`` (DBC 1/2/9); any other DBC
80
+ code maps to ``"X"`` with the raw code kept in
81
+ ``extra_tags``.
78
82
  license_number: Customer ID number (DAQ).
79
83
  height: Height with its unit, e.g. ``"069 in"`` (DAU), or None
80
84
  when absent.
81
85
  extra_tags: Raw values of every un-mapped element —
82
- jurisdiction ``Z..`` extras and standard-but-unmapped
83
- fields alike.
86
+ jurisdiction ``Z..`` extras, standard-but-unmapped fields,
87
+ and a non-standard DBC code alike.
84
88
  symbology: The decoded barcode symbology, stamped by the reader
85
89
  (``"PDF417"`` for the AAMVA payload), None for records
86
90
  built directly by the parser.
@@ -132,12 +136,18 @@ def _date_field(elements: Mapping[str, str], tag: str, label: str) -> date:
132
136
  return parsed
133
137
 
134
138
 
135
- def _sex(elements: Mapping[str, str]) -> str:
136
- """Map the DBC sex code to M/F/X."""
139
+ def _sex(elements: Mapping[str, str]) -> tuple[str, str | None]:
140
+ """Map the DBC sex code to M/F/X.
141
+
142
+ Returns ``(sex, raw)``: the mapped value and, for a non-standard
143
+ DBC code, that raw code to keep in ``extra_tags``. A non-standard
144
+ code maps to ``"X"`` (unspecified) instead of failing the record.
145
+ """
137
146
  raw = _field(elements, "DBC", "sex")
138
- if raw not in _SEX:
139
- raise BarcodeError(f"invalid sex (DBC): {raw!r}")
140
- return _SEX[raw]
147
+ mapped = _SEX.get(raw)
148
+ if mapped is None:
149
+ return "X", raw
150
+ return mapped, None
141
151
 
142
152
 
143
153
  def _optional(elements: Mapping[str, str], tag: str) -> str | None:
@@ -177,14 +187,21 @@ def _parse_subfile(text: str, offset: int, length: int) -> Mapping[str, str]:
177
187
  return MappingProxyType(elements)
178
188
 
179
189
 
190
+ def _is_designator(value: str) -> bool:
191
+ """Whether *value* is a two-letter ASCII subfile designator."""
192
+ return value.isascii() and value.isalpha() and value.isupper()
193
+
194
+
180
195
  def _parse_entry(text: str, index: int, directory_end: int) -> _Subfile:
181
196
  """Validate one subfile directory entry and its data region."""
182
197
  start = _HEADER_LEN + index * _ENTRY_LEN
183
198
  entry = text[start : start + _ENTRY_LEN]
184
199
  kind, offset, length = entry[0:2], entry[2:6], entry[6:10]
185
- if not (_is_digits(offset) and _is_digits(length)):
200
+ if not (_is_designator(kind) and _is_digits(offset) and _is_digits(length)):
186
201
  raise BarcodeError(f"malformed subfile directory entry {index}")
187
202
  offset_i, length_i = int(offset), int(length)
203
+ if length_i < 3:
204
+ raise BarcodeError(f"invalid subfile {kind!r} length: {length_i}")
188
205
  if offset_i < directory_end:
189
206
  raise BarcodeError(f"subfile {kind!r} offset lies inside the header")
190
207
  if offset_i + length_i > len(text):
@@ -267,6 +284,9 @@ def _parse_aamva(text: str) -> BarcodeRecord:
267
284
  jurisdiction, version, jurisdiction_version, subfiles = _parse_header(text)
268
285
  primary, extra = _merge(subfiles, version)
269
286
  family_name, given_name, middle_name = _names(version, primary)
287
+ sex, raw_sex = _sex(primary)
288
+ if raw_sex is not None:
289
+ extra = MappingProxyType({**extra, "DBC": raw_sex})
270
290
  return BarcodeRecord(
271
291
  jurisdiction=jurisdiction,
272
292
  aamva_version=version,
@@ -277,7 +297,7 @@ def _parse_aamva(text: str) -> BarcodeRecord:
277
297
  birth_date=_date_field(primary, "DBB", "birth date"),
278
298
  issue_date=_date_field(primary, "DBD", "issue date"),
279
299
  expiry_date=_date_field(primary, "DBA", "expiry date"),
280
- sex=_sex(primary),
300
+ sex=sex,
281
301
  license_number=_field(primary, "DAQ", "license number"),
282
302
  height=_optional(primary, "DAU"),
283
303
  extra_tags=extra,
@@ -330,6 +350,10 @@ class BarcodeReader:
330
350
  def read(self, image_input: ImageInput) -> BarcodeRecord:
331
351
  """Decode and parse the PDF417 barcode from an image.
332
352
 
353
+ Every decoded barcode is tried and the first payload that
354
+ parses as AAMVA wins, so one corrupt candidate beside a valid
355
+ code does not fail the read.
356
+
333
357
  Args:
334
358
  image_input: Path, NumPy array (BGR), or PIL Image.
335
359
 
@@ -339,18 +363,33 @@ class BarcodeReader:
339
363
  Raises:
340
364
  ImageError: If the image cannot be loaded or is invalid.
341
365
  BarcodeError: If the image decodes no barcode at all, no
342
- decoded payload is an AAMVA payload, or the payload
343
- fails validation.
366
+ decoded payload is an AAMVA payload, or every AAMVA
367
+ payload fails validation.
344
368
  """
345
369
  img = load_image(image_input, self.logger)
346
370
  barcodes = self._zxing.read_barcodes(img)
347
371
  if not barcodes:
348
372
  raise BarcodeError("no PDF417 barcode found in the image")
373
+ return self._first_record(barcodes)
374
+
375
+ def _first_record(self, barcodes: Any) -> BarcodeRecord:
376
+ """The first candidate barcode that parses as an AAMVA payload.
377
+
378
+ A candidate carrying the AAMVA header but failing validation
379
+ does not stop the scan of the remaining barcodes; when none
380
+ parses, the first such validation error is raised, or
381
+ :class:`BarcodeError` when no barcode carried the header.
382
+ """
383
+ error: BarcodeError | None = None
349
384
  for barcode in barcodes:
350
385
  text = barcode.bytes.decode("latin-1")
351
386
  if not text.startswith(_MAGIC):
352
387
  continue
353
- record = _parse_aamva(text)
388
+ try:
389
+ record = _parse_aamva(text)
390
+ except BarcodeError as e:
391
+ error = error or e
392
+ continue
354
393
  record = replace(record, symbology=str(barcode.format))
355
394
  self.logger.info(
356
395
  "barcode read: version %s, jurisdiction %s",
@@ -358,6 +397,8 @@ class BarcodeReader:
358
397
  record.jurisdiction,
359
398
  )
360
399
  return record
400
+ if error is not None:
401
+ raise error
361
402
  raise BarcodeError(
362
403
  "no AAMVA payload among the decoded barcodes "
363
404
  "(missing '@\\n\\x1e\\rANSI ' header)"
@@ -1,9 +1,10 @@
1
1
  """Tests for blitzid.reading.barcode — AAMVA PDF417 parsing and decoding.
2
2
 
3
- Parser tests are pure-function over synthetic payloads (no PII: every
4
- name, number, and date is invented). Decode tests round-trip synthetic
5
- payloads through zxing-cpp's PDF417 encoder/decoder and are skipped
6
- when the ``barcode`` extra is absent.
3
+ Parser tests are pure-function over synthetic payloads plus the
4
+ standard's own published sample (no PII: every name, number, and date
5
+ is invented or the AAMVA fictitious specimen). Decode tests round-trip
6
+ synthetic payloads through zxing-cpp's PDF417 encoder/decoder and are
7
+ skipped when the ``barcode`` extra is absent.
7
8
  """
8
9
 
9
10
  from __future__ import annotations
@@ -20,6 +21,15 @@ from blitzid.reading.barcode import _parse_aamva, _record_dict
20
21
 
21
22
  _VERSIONS = tuple(f"{number:02d}" for number in range(2, 15))
22
23
 
24
+ _AAMVA_2020_SAMPLE = (
25
+ "@\n\x1e\rANSI 636000100102DL00410278ZV03190008DLDAQT64235789\n"
26
+ "DCSSAMPLE\nDDEN\nDACMICHAEL\nDDFN\nDADJOHN\nDDGN\nDCUJR\nDCAD\n"
27
+ "DCBK\nDCDPH\nDBD06062019\nDBB06061986\nDBA12102024\nDBC1\n"
28
+ "DAU068 in\nDAYBRO\nDAG2300 WEST BROAD STREET\nDAIRICHMOND\nDAJVA\n"
29
+ "DAK232690000 \nDCF2424244747474786102204\nDCGUSA\nDCK123456789\n"
30
+ "DDAF\nDDB06062018\nDDC06062020\nDDD1\rZVZVA01\r"
31
+ )
32
+
23
33
 
24
34
  def _assemble(
25
35
  version: str,
@@ -90,6 +100,17 @@ def _entry(text: str, index: int) -> tuple[str, int, int]:
90
100
  )
91
101
 
92
102
 
103
+ def _on_canvas(*symbols: np.ndarray) -> np.ndarray:
104
+ """The encoded symbols side by side on one white canvas."""
105
+ height = max(symbol.shape[0] for symbol in symbols)
106
+ columns = []
107
+ for symbol in symbols:
108
+ column = np.full((height, symbol.shape[1]), 255, dtype=np.uint8)
109
+ column[: symbol.shape[0], : symbol.shape[1]] = symbol
110
+ columns.append(column)
111
+ return np.concatenate(columns, axis=1)
112
+
113
+
93
114
  class TestParseHeader:
94
115
  def test_rejects_missing_prefix(self) -> None:
95
116
  with pytest.raises(BarcodeError, match="not an AAMVA payload"):
@@ -153,6 +174,16 @@ class TestParseHeader:
153
174
  with pytest.raises(BarcodeError, match="lies inside the header"):
154
175
  _parse_aamva(payload[:23] + "0000" + payload[27:])
155
176
 
177
+ def test_rejects_zero_length_subfile(self) -> None:
178
+ payload = _payload("08")
179
+ with pytest.raises(BarcodeError, match=r"invalid subfile 'DL' length: 0"):
180
+ _parse_aamva(payload[:27] + "0000" + payload[31:])
181
+
182
+ def test_rejects_non_letter_designator(self) -> None:
183
+ payload = _payload("08")
184
+ with pytest.raises(BarcodeError, match="malformed subfile directory entry"):
185
+ _parse_aamva(payload[:21] + "1A" + payload[23:])
186
+
156
187
  def test_rejects_subfile_past_payload(self) -> None:
157
188
  payload = _payload("08")
158
189
  with pytest.raises(BarcodeError, match="exceeds the payload"):
@@ -290,6 +321,31 @@ class TestParseRecord:
290
321
  assert record.sex == expected
291
322
 
292
323
 
324
+ class TestPublishedSample:
325
+ def test_parses_the_aamva_2020_sample_payload(self) -> None:
326
+ """The DL/ID 2020 CDS Annex D sample credential (fictitious).
327
+
328
+ A published byte stream, independent of the payload generator,
329
+ so the tag map is checked against the standard's own example.
330
+ """
331
+ record = _parse_aamva(_AAMVA_2020_SAMPLE)
332
+ assert record.jurisdiction == "636000"
333
+ assert record.aamva_version == "10"
334
+ assert record.jurisdiction_version == "01"
335
+ assert record.family_name == "SAMPLE"
336
+ assert record.given_name == "MICHAEL"
337
+ assert record.middle_name == "JOHN"
338
+ assert record.birth_date == date(1986, 6, 6)
339
+ assert record.issue_date == date(2019, 6, 6)
340
+ assert record.expiry_date == date(2024, 12, 10)
341
+ assert record.sex == "M"
342
+ assert record.license_number == "T64235789"
343
+ assert record.height == "068 in"
344
+ assert record.extra_tags["DCU"] == "JR"
345
+ assert record.extra_tags["DDF"] == "N"
346
+ assert record.extra_tags["ZVA"] == "01"
347
+
348
+
293
349
  class TestSectionBody:
294
350
  def test_record_dict_serializes_a_parsed_record(self) -> None:
295
351
  body = _record_dict(_parse_aamva(_payload("10")))
@@ -326,9 +382,15 @@ class TestParseValidation:
326
382
  with pytest.raises(BarcodeError, match="not a real date"):
327
383
  _parse_aamva(_payload("08", elements=elements))
328
384
 
329
- def test_invalid_sex(self) -> None:
385
+ def test_nonstandard_sex_maps_to_unspecified(self) -> None:
330
386
  elements = _elements("08", sex="3")
331
- with pytest.raises(BarcodeError, match="invalid sex"):
387
+ record = _parse_aamva(_payload("08", elements=elements))
388
+ assert record.sex == "X"
389
+ assert record.extra_tags["DBC"] == "3"
390
+
391
+ def test_missing_sex(self) -> None:
392
+ elements = [tag for tag in _elements("08") if tag[0] != "DBC"]
393
+ with pytest.raises(BarcodeError, match="missing sex"):
332
394
  _parse_aamva(_payload("08", elements=elements))
333
395
 
334
396
  def test_missing_license_number(self) -> None:
@@ -382,6 +444,26 @@ class TestDecodeRoundTrip:
382
444
  record = reader.read(Image.fromarray(self._encode(_payload("10"))))
383
445
  assert record.aamva_version == "10"
384
446
 
447
+ def test_accepts_a_three_channel_array(self) -> None:
448
+ pytest.importorskip("zxingcpp")
449
+ reader = BarcodeReader(log_level=logging.WARNING)
450
+ gray = self._encode(_payload("08"))
451
+ record = reader.read(np.repeat(gray[:, :, None], 3, axis=2))
452
+ assert record.aamva_version == "08"
453
+
454
+ def test_falls_back_past_a_corrupt_candidate(self) -> None:
455
+ pytest.importorskip("zxingcpp")
456
+ reader = BarcodeReader(log_level=logging.WARNING)
457
+ canvas = _on_canvas(self._encode(_payload("15")), self._encode(_payload("08")))
458
+ record = reader.read(canvas)
459
+ assert record.aamva_version == "08"
460
+
461
+ def test_raises_the_candidate_error_when_nothing_parses(self) -> None:
462
+ pytest.importorskip("zxingcpp")
463
+ reader = BarcodeReader(log_level=logging.WARNING)
464
+ with pytest.raises(BarcodeError, match="unsupported AAMVA version"):
465
+ reader.read(self._encode(_payload("15")))
466
+
385
467
  def test_no_barcode_raises(self) -> None:
386
468
  pytest.importorskip("zxingcpp")
387
469
  reader = BarcodeReader(log_level=logging.WARNING)
@@ -170,7 +170,7 @@ wheels = [
170
170
 
171
171
  [[package]]
172
172
  name = "blitzid"
173
- version = "0.3.2"
173
+ version = "0.3.4"
174
174
  source = { editable = "." }
175
175
  dependencies = [
176
176
  { name = "numpy" },
@@ -187,6 +187,7 @@ all = [
187
187
  { name = "httpx" },
188
188
  { name = "langfuse" },
189
189
  { name = "mypy" },
190
+ { name = "opentelemetry-api" },
190
191
  { name = "pre-commit" },
191
192
  { name = "pydantic-ai" },
192
193
  { name = "pytest" },
@@ -223,6 +224,7 @@ dev = [
223
224
  ]
224
225
  ocr = [
225
226
  { name = "langfuse" },
227
+ { name = "opentelemetry-api" },
226
228
  { name = "pydantic-ai" },
227
229
  { name = "rapidocr" },
228
230
  ]
@@ -244,6 +246,7 @@ requires-dist = [
244
246
  { name = "numpy" },
245
247
  { name = "onnxruntime" },
246
248
  { name = "opencv-python-headless", specifier = ">=5" },
249
+ { name = "opentelemetry-api", marker = "extra == 'ocr'", specifier = "<1.44" },
247
250
  { name = "platformdirs" },
248
251
  { name = "pre-commit", marker = "extra == 'dev'" },
249
252
  { name = "pydantic" },
@@ -688,19 +691,18 @@ wheels = [
688
691
 
689
692
  [[package]]
690
693
  name = "fastapi"
691
- version = "0.142.2"
694
+ version = "0.141.1"
692
695
  source = { registry = "https://pypi.org/simple" }
693
696
  dependencies = [
694
697
  { name = "annotated-doc" },
695
- { name = "opentelemetry-api" },
696
698
  { name = "pydantic" },
697
699
  { name = "starlette" },
698
700
  { name = "typing-extensions" },
699
701
  { name = "typing-inspection" },
700
702
  ]
701
- sdist = { url = "https://files.pythonhosted.org/packages/56/4f/f7c30a73127e0a8bbffe788369b8359e530b01ae06e2757936fa35bc5e6d/fastapi-0.142.2.tar.gz", hash = "sha256:06366626f2e70576367714d9ab2fe8472e6c8456dba69b399f9f797ab5e92570", size = 466721, upload-time = "2026-09-30T09:51:11.277Z" }
703
+ sdist = { url = "https://files.pythonhosted.org/packages/8a/02/91e3416a8fdd715abb903a952a6bec7cdd8d14eed55d415fc8595524c319/fastapi-0.141.1.tar.gz", hash = "sha256:e8822fc40db1e1858054d7a949a888695bc9bdce70139178e33bd2871a453ca1", size = 425799, upload-time = "2026-07-29T17:18:05.568Z" }
702
704
  wheels = [
703
- { url = "https://files.pythonhosted.org/packages/a0/b6/78aaf9141fb46742928c113f3cf6ef2259d538cb02b604b7656c1dc9883c/fastapi-0.142.2-py3-none-any.whl", hash = "sha256:bd5f4d81f1e93a88bcd77caf4dfe3c2dbffc3805407a0007e9a114c18b3a670b", size = 144409, upload-time = "2026-09-30T09:51:09.8Z" },
705
+ { url = "https://files.pythonhosted.org/packages/cb/03/10388a42375ee7e4ac9b94eb2c5c569c8b5795e377e701c9ac3ad63de890/fastapi-0.141.1-py3-none-any.whl", hash = "sha256:bfb91aa2d334c61cb35ba9a116fc123b3d3df31640b801cf57a7a78ec3f603b3", size = 131954, upload-time = "2026-07-29T17:18:04.364Z" },
704
706
  ]
705
707
 
706
708
  [[package]]
@@ -1210,7 +1212,7 @@ wheels = [
1210
1212
 
1211
1213
  [[package]]
1212
1214
  name = "langfuse"
1213
- version = "4.17.0"
1215
+ version = "4.15.6"
1214
1216
  source = { registry = "https://pypi.org/simple" }
1215
1217
  dependencies = [
1216
1218
  { name = "backoff" },
@@ -1223,9 +1225,9 @@ dependencies = [
1223
1225
  { name = "typing-extensions" },
1224
1226
  { name = "wrapt" },
1225
1227
  ]
1226
- sdist = { url = "https://files.pythonhosted.org/packages/96/93/30c97995ad3b24c8dfd45ff02d80f491bd5e103fae432a1872db32e16823/langfuse-4.17.0.tar.gz", hash = "sha256:f8cccfc49d9839969e962ffb88ce49cf531a8cbf31507eb99e43668fb5b3b5da", size = 394423, upload-time = "2026-10-05T08:53:34.777Z" }
1228
+ sdist = { url = "https://files.pythonhosted.org/packages/4a/19/59253a357d77147e8cd3ad97817519e158af5d3336654656c92c2fc922f1/langfuse-4.15.6.tar.gz", hash = "sha256:af80ed1199e57c2641c9f228066bf9dc324657c06ce6e68660118fa46b237e35", size = 392968, upload-time = "2026-09-24T13:32:47.032Z" }
1227
1229
  wheels = [
1228
- { url = "https://files.pythonhosted.org/packages/9b/e0/1eb38746bb1fbb925eb90a1a501abb15c9eaa5ecf1818c94943360fa563e/langfuse-4.17.0-py3-none-any.whl", hash = "sha256:02560e12d715dd24f239c240886ee197b9e62f4a808f06de77193356c56bf57a", size = 708167, upload-time = "2026-10-05T08:53:35.989Z" },
1230
+ { url = "https://files.pythonhosted.org/packages/1a/c5/927a01c47c0adf53832c6e5e35951e3d4998072ef955f3bb8e87e6d10517/langfuse-4.15.6-py3-none-any.whl", hash = "sha256:2364d5f17342301a8651ef166abb5bb260aaadd94d1ac72aa30c298b3a395d85", size = 706806, upload-time = "2026-09-24T13:32:48.577Z" },
1229
1231
  ]
1230
1232
 
1231
1233
  [[package]]
@@ -1665,114 +1667,83 @@ wheels = [
1665
1667
 
1666
1668
  [[package]]
1667
1669
  name = "opentelemetry-api"
1668
- version = "1.45.1"
1670
+ version = "1.43.0"
1669
1671
  source = { registry = "https://pypi.org/simple" }
1670
1672
  dependencies = [
1671
1673
  { name = "typing-extensions" },
1672
1674
  ]
1673
- sdist = { url = "https://files.pythonhosted.org/packages/2e/02/6e0ae9cc61bd3169d401077b507b3ebc344745171e1051ab430be012dcd9/opentelemetry_api-1.45.1.tar.gz", hash = "sha256:aa38ed19bcc084ba42782a73255b3582283eced7ad6dddbd6695189e69adfb75", size = 72804, upload-time = "2026-10-06T17:32:58.133Z" }
1674
- wheels = [
1675
- { url = "https://files.pythonhosted.org/packages/1e/41/f7dcf80b81ee8e71c1a2b59f14208bc723edbd89ed027a73b175abf6348e/opentelemetry_api-1.45.1-py3-none-any.whl", hash = "sha256:b31553efa588ae44bc306f863c785c5333a9ecc091248c6ee68b4b6c87fdedfb", size = 60256, upload-time = "2026-10-06T17:32:33.506Z" },
1676
- ]
1677
-
1678
- [[package]]
1679
- name = "opentelemetry-exporter-http-transport"
1680
- version = "0.66b1"
1681
- source = { registry = "https://pypi.org/simple" }
1682
- dependencies = [
1683
- { name = "opentelemetry-api" },
1684
- ]
1685
- sdist = { url = "https://files.pythonhosted.org/packages/62/0c/e3ebdb4b507f66afcc905e6885a4946969bd75b45988492643356fbbdc63/opentelemetry_exporter_http_transport-0.66b1.tar.gz", hash = "sha256:443080203bf52586ce0b2ad901e8951c61833eab1aa539ae6f1f16fe9e8e7952", size = 11693, upload-time = "2026-10-06T17:32:59.65Z" }
1686
- wheels = [
1687
- { url = "https://files.pythonhosted.org/packages/04/69/6af86ff66492b481c6a4c05dcfd68beb47ed8ba046440a26a2aac76b95c7/opentelemetry_exporter_http_transport-0.66b1-py3-none-any.whl", hash = "sha256:2f95404bdee7f9d2d529c7de56c7bd86d014d774d8fbf137810e0167f8a492bf", size = 12155, upload-time = "2026-10-06T17:32:35.454Z" },
1688
- ]
1689
-
1690
- [package.optional-dependencies]
1691
- requests = [
1692
- { name = "requests" },
1693
- ]
1694
-
1695
- [[package]]
1696
- name = "opentelemetry-exporter-otlp-common"
1697
- version = "0.66b1"
1698
- source = { registry = "https://pypi.org/simple" }
1699
- dependencies = [
1700
- { name = "opentelemetry-sdk" },
1701
- ]
1702
- sdist = { url = "https://files.pythonhosted.org/packages/cb/19/41de712173f43057e4532d42ece7d0c6d4210d353e5752433cb14987643f/opentelemetry_exporter_otlp_common-0.66b1.tar.gz", hash = "sha256:6b1403487a2185ac1feb45fd5546fdf8630ce71c36bcefaadf51e2130e9e23f9", size = 14325, upload-time = "2026-10-06T17:33:01.725Z" }
1675
+ sdist = { url = "https://files.pythonhosted.org/packages/ae/cc/e4c9584181f86494df0f6bdec1a4f3280c50db44704dc2a407e994fc87bb/opentelemetry_api-1.43.0.tar.gz", hash = "sha256:107d0d03857ea8fc7c5fcbbbd83f800c281f0d560553d61c1d675fccfd1761c1", size = 73476, upload-time = "2026-06-24T15:19:55.323Z" }
1703
1676
  wheels = [
1704
- { url = "https://files.pythonhosted.org/packages/fc/39/8c23d67665c762aa51840fa06f86e902e8f6f1693bc8d7e3d98cd6e2f753/opentelemetry_exporter_otlp_common-0.66b1-py3-none-any.whl", hash = "sha256:00ff8592c3a7cb729ff3fdc7ffa12372c243bdf2163e80c180994d0c7bd83ee9", size = 12385, upload-time = "2026-10-06T17:32:38.177Z" },
1677
+ { url = "https://files.pythonhosted.org/packages/17/83/6dba32b85f31868400440dc7ad2ca1eab94cbbf3a7b0459ed39f8311a9e2/opentelemetry_api-1.43.0-py3-none-any.whl", hash = "sha256:20acf45e9b21851926835292e4045d290acade1edd2ff3de86d2f069687ba1fd", size = 61912, upload-time = "2026-06-24T15:19:35.434Z" },
1705
1678
  ]
1706
1679
 
1707
1680
  [[package]]
1708
1681
  name = "opentelemetry-exporter-otlp-proto-common"
1709
- version = "1.45.1"
1682
+ version = "1.43.0"
1710
1683
  source = { registry = "https://pypi.org/simple" }
1711
1684
  dependencies = [
1712
1685
  { name = "opentelemetry-proto" },
1713
1686
  ]
1714
- sdist = { url = "https://files.pythonhosted.org/packages/c1/8e/65e85e5137991a3c493b11682151d198638a5bc1dd4b4c5f67e013c57d7c/opentelemetry_exporter_otlp_proto_common-1.45.1.tar.gz", hash = "sha256:2e4adcc3a67bcf57804fc49514f0ef64974ca7590aa3491da389852b4a0628f6", size = 18873, upload-time = "2026-10-06T17:33:04.471Z" }
1687
+ sdist = { url = "https://files.pythonhosted.org/packages/55/c1/e8098490ab15abf116dcaf9fa89ededcb35547c7d08d4b5a62f573dc1e63/opentelemetry_exporter_otlp_proto_common-1.43.0.tar.gz", hash = "sha256:c4e32ba6d6b13bdb2b8f6764c4fd28d00192826561aa04f6d14eedfce7ac076f", size = 20197, upload-time = "2026-06-24T15:20:00.247Z" }
1715
1688
  wheels = [
1716
- { url = "https://files.pythonhosted.org/packages/84/aa/92f225d353904e7f70b8b3e3c1b02db0cf56f744c2e83c581dc372e78873/opentelemetry_exporter_otlp_proto_common-1.45.1-py3-none-any.whl", hash = "sha256:2f446183ae7047b036226f1d846c41a834b0e8755ad13b51a51dd38952eb466c", size = 15393, upload-time = "2026-10-06T17:32:41.911Z" },
1689
+ { url = "https://files.pythonhosted.org/packages/d0/b2/41ebc74ae1d5859901f1b69305de58724bf043381103d6ef413521cbc35a/opentelemetry_exporter_otlp_proto_common-1.43.0-py3-none-any.whl", hash = "sha256:123c3f9cc87218562490c63b36f497bf3a722faf174a515d1443f31ababa6264", size = 17048, upload-time = "2026-06-24T15:19:41.264Z" },
1717
1690
  ]
1718
1691
 
1719
1692
  [[package]]
1720
1693
  name = "opentelemetry-exporter-otlp-proto-http"
1721
- version = "1.45.1"
1694
+ version = "1.43.0"
1722
1695
  source = { registry = "https://pypi.org/simple" }
1723
1696
  dependencies = [
1724
1697
  { name = "googleapis-common-protos" },
1725
1698
  { name = "opentelemetry-api" },
1726
- { name = "opentelemetry-exporter-http-transport", extra = ["requests"] },
1727
- { name = "opentelemetry-exporter-otlp-common" },
1728
1699
  { name = "opentelemetry-exporter-otlp-proto-common" },
1729
1700
  { name = "opentelemetry-proto" },
1730
1701
  { name = "opentelemetry-sdk" },
1731
1702
  { name = "requests" },
1732
1703
  { name = "typing-extensions" },
1733
1704
  ]
1734
- sdist = { url = "https://files.pythonhosted.org/packages/1b/17/26487707ea4caa97b17e6e4b5fa72133a53512ffa2f5cf7a49ef284b29cb/opentelemetry_exporter_otlp_proto_http-1.45.1.tar.gz", hash = "sha256:45c218405ce3fd879596924b1874bf9a8f6880206d61065c5a912c8e5c297fb7", size = 28839, upload-time = "2026-10-06T17:33:05.713Z" }
1705
+ sdist = { url = "https://files.pythonhosted.org/packages/fc/92/0b9f56412483a8891d4843890294796c9df8ab42417bd9bad8035d840cb3/opentelemetry_exporter_otlp_proto_http-1.43.0.tar.gz", hash = "sha256:fa8a42bb7d00ee5391f4c0b04d8e6a46c03caa437903296ab73a81dc11ba118f", size = 25406, upload-time = "2026-06-24T15:20:01.515Z" }
1735
1706
  wheels = [
1736
- { url = "https://files.pythonhosted.org/packages/aa/1f/517eaa0187ba106a9da97160ce2add3a371812681dc440930b267f714e42/opentelemetry_exporter_otlp_proto_http-1.45.1-py3-none-any.whl", hash = "sha256:24a97cf3753c7fb52fad44a696e452ff371686339e2acf3309e2eda3d0230700", size = 22180, upload-time = "2026-10-06T17:32:43.946Z" },
1707
+ { url = "https://files.pythonhosted.org/packages/b3/20/b685ed7af2e17c29ffc8af56f1fa8bc2033258fc30fb0d2b722f49d13ba0/opentelemetry_exporter_otlp_proto_http-1.43.0-py3-none-any.whl", hash = "sha256:647f603aa8efdbdb4dbff842e0729d0406a6fff26b295a72d3d60e7d963b2610", size = 21795, upload-time = "2026-06-24T15:19:43.164Z" },
1737
1708
  ]
1738
1709
 
1739
1710
  [[package]]
1740
1711
  name = "opentelemetry-proto"
1741
- version = "1.45.1"
1712
+ version = "1.43.0"
1742
1713
  source = { registry = "https://pypi.org/simple" }
1743
1714
  dependencies = [
1744
1715
  { name = "protobuf" },
1745
1716
  ]
1746
- sdist = { url = "https://files.pythonhosted.org/packages/4b/7f/15f014fb195da6c2dbb6c71399b8e76824878718e94de6454038488eed28/opentelemetry_proto-1.45.1.tar.gz", hash = "sha256:79e0fb95e4616691a469439238aa9224d75779b3e108e895d1aa125ab29ca77c", size = 46488, upload-time = "2026-10-06T17:33:11.49Z" }
1717
+ sdist = { url = "https://files.pythonhosted.org/packages/e0/b9/d357faefb40bda1d4799913e6af611171ff22a2dedcb93576bc92242d056/opentelemetry_proto-1.43.0.tar.gz", hash = "sha256:224778df17e1f3fafeaaa21d874236ca5f6ffc2f86e0899298ec7351aac27924", size = 46481, upload-time = "2026-06-24T15:20:07.625Z" }
1747
1718
  wheels = [
1748
- { url = "https://files.pythonhosted.org/packages/ab/9a/42ec8180a769516ae757e893b69736826efceac7332553915b4528a91c6d/opentelemetry_proto-1.45.1-py3-none-any.whl", hash = "sha256:f38e2a8413053c180cd3d2637fbb279673ec2f6a6e09c995aafa2f452c52b46e", size = 72488, upload-time = "2026-10-06T17:32:53.057Z" },
1719
+ { url = "https://files.pythonhosted.org/packages/ed/a7/3e5308cf548b8f72529c7db1afdb3a404211982376a12927fd7759f77bf3/opentelemetry_proto-1.43.0-py3-none-any.whl", hash = "sha256:c58f1f7ef84bc7dc2834016c0c37fe0081dde7ca9f6339be1970fbf9cdaaa90d", size = 72489, upload-time = "2026-06-24T15:19:51.164Z" },
1749
1720
  ]
1750
1721
 
1751
1722
  [[package]]
1752
1723
  name = "opentelemetry-sdk"
1753
- version = "1.45.1"
1724
+ version = "1.43.0"
1754
1725
  source = { registry = "https://pypi.org/simple" }
1755
1726
  dependencies = [
1756
1727
  { name = "opentelemetry-api" },
1757
1728
  { name = "opentelemetry-semantic-conventions" },
1758
1729
  { name = "typing-extensions" },
1759
1730
  ]
1760
- sdist = { url = "https://files.pythonhosted.org/packages/a1/79/7392e21a1c8f0c61d90b223e31c7e48cb9d452e91a6b820ad24cca5f23c4/opentelemetry_sdk-1.45.1.tar.gz", hash = "sha256:63d24a6ca645019a631e6a51999c73e93adcac1196ca640b8ae78a7cc4762bf3", size = 218324, upload-time = "2026-10-06T17:33:13.26Z" }
1731
+ sdist = { url = "https://files.pythonhosted.org/packages/3e/eb/5041074274ac0956b03637cc039d434569112468e875eddfcc9a0674ce06/opentelemetry_sdk-1.43.0.tar.gz", hash = "sha256:d8187c81c162df9913e4003dd6485f7390d9a24fc17026ec7387b8b8218b08e9", size = 254744, upload-time = "2026-06-24T15:20:08.467Z" }
1761
1732
  wheels = [
1762
- { url = "https://files.pythonhosted.org/packages/95/3c/87c42b4bd6dd297536f04cd9383d212ac557ecd49f2cbdcd46da1c9ef5c8/opentelemetry_sdk-1.45.1-py3-none-any.whl", hash = "sha256:c604c11dc429810812348989115fa44bd558772a3d7442afc43d024f2c250ca4", size = 140063, upload-time = "2026-10-06T17:32:55.04Z" },
1733
+ { url = "https://files.pythonhosted.org/packages/49/e3/b17be23af124201c9f52eececd4cc8ddfed1597d37b4ee771895d325805c/opentelemetry_sdk-1.43.0-py3-none-any.whl", hash = "sha256:d1323a547c1ce69d6a069a17a44b7da82bb8b332051ecb074041f87642c86823", size = 178852, upload-time = "2026-06-24T15:19:52.169Z" },
1763
1734
  ]
1764
1735
 
1765
1736
  [[package]]
1766
1737
  name = "opentelemetry-semantic-conventions"
1767
- version = "0.66b1"
1738
+ version = "0.64b0"
1768
1739
  source = { registry = "https://pypi.org/simple" }
1769
1740
  dependencies = [
1770
1741
  { name = "opentelemetry-api" },
1771
1742
  { name = "typing-extensions" },
1772
1743
  ]
1773
- sdist = { url = "https://files.pythonhosted.org/packages/46/e4/dbbfb2a010c4db2224a5114638acede6fe563d33cc20fb1752cebcbe6298/opentelemetry_semantic_conventions-0.66b1.tar.gz", hash = "sha256:497ca63bf383723411e8eaf60c8779e9877633c936bb641080adab59d0eb6ec8", size = 150250, upload-time = "2026-10-06T17:33:14.073Z" }
1744
+ sdist = { url = "https://files.pythonhosted.org/packages/5a/30/5f26df29509eccd86b99b481ac9ffa39da49ba9577cc69071c552ae30447/opentelemetry_semantic_conventions-0.64b0.tar.gz", hash = "sha256:72f76fb2d1582d9d033dd1fcd84532e961e6ff3d90d24ba6fabc72975a83864c", size = 148340, upload-time = "2026-06-24T15:20:09.267Z" }
1774
1745
  wheels = [
1775
- { url = "https://files.pythonhosted.org/packages/bc/14/67f8aa798857f8cf686f515bf93d9bb877ce952ddc8efae0fa25b45ce0d6/opentelemetry_semantic_conventions-0.66b1-py3-none-any.whl", hash = "sha256:d4cddeb4315490b35213f55e2bdc9ac54bb1e4d318927475bed62b35545e581b", size = 206279, upload-time = "2026-10-06T17:32:56.103Z" },
1746
+ { url = "https://files.pythonhosted.org/packages/f2/ca/23ba87a221b574a7c5a99d48849d80bfe8b047624681357e2b002e566187/opentelemetry_semantic_conventions-0.64b0-py3-none-any.whl", hash = "sha256:ea77e85e354b8f604ddbe5f3d9135216f982fa4d77e5859ac30f6d8a50505aa6", size = 203713, upload-time = "2026-06-24T15:19:53.339Z" },
1776
1747
  ]
1777
1748
 
1778
1749
  [[package]]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes