PyPI / phonenumbers / 9.0.44

phonenumbers 9.0.44

Source
https://github.com/daviddrysdale/python-phonenumbers
Artifact scanned
phonenumbers-9.0.44-py2.py3-none-any.whl (wheel · 2.5 MB · SHA-256 8fddbbf98e6b…)
Compared with
phonenumbers-9.0.43-py2.py3-none-any.whl (0 signals introduced since)
Files
615 scanned, 5 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 47 info
Scan time
15.0 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 2 of 2 warn and critical signals; 2 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-11-21 15:42

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info identifier-low-length phonenumbers/carrierdata/data0.py:1:1

    mean non-conventional identifier length 1.09 over 148 names (token pass, confidence 0.50)

  2. info identifier-low-length phonenumbers/carrierdata/data1.py:1:1

    mean non-conventional identifier length 1.36 over 39 names (token pass, confidence 0.50)

  3. info identifier-low-length phonenumbers/carrierdata/data2.py:1:1

    mean non-conventional identifier length 1.01 over 1695 names (token pass, confidence 0.50)

  4. line length 1252 characters (raw pass, confidence 0.50)

    _AVAILABLE_REGION_CODES = ['AC','AD','AE','AF','AG','AI','AL','AM','AO','AR','AS','AT','AU','AW','AX','AZ','BA','BB','BD','BE','BF','BG','BH','BI','BJ','BL','BM','BN','BO','BQ','BR','BS','BT','BW','BY','BZ','CA','CC','CD','CF','CG','CH','CI','CK','CL','CM','CN','CO','CR','CU','CV','CW','CX','CY','CZ','DE','DJ','DK','DM
  5. info critical → info by review dynamic-import phonenumbers/data/__init__.py:22:5

    `__import__` called on a non-literal expression (ast pass, confidence 0.70)

    def _load_region(code):
        __import__("region_%s" % code, globals(), locals(),
                   fromlist=["PHONE_METADATA_%s" % code], level=1)
    likely benign LLM, confidence 0.93 Package-internal lazy loader that imports the bundled per-region metadata module for a given country code.
    Reasoning

    This is the lazy-loading mechanism of the phonenumbers library: the region code is a formatted string from a fixed set of country codes, and level=1 imports a sibling module region_XX from the package itself. The dynamic import is restricted to the package's own bundled data modules, not attacker-supplied code or network-fetched payloads. Flagged only because the module name is non-literal.

  6. line length 1214 characters (raw pass, confidence 0.50)

    _ALT_NUMBER_FORMATS = {255: PHONE_ALT_FORMAT_255, 27: PHONE_ALT_FORMAT_27, 30: PHONE_ALT_FORMAT_30, 31: PHONE_ALT_FORMAT_31, 34: PHONE_ALT_FORMAT_34, 350: PHONE_ALT_FORMAT_350, 351: PHONE_ALT_FORMAT_351, 352: PHONE_ALT_FORMAT_352, 358: PHONE_ALT_FORMAT_358, 359: PHONE_ALT_FORMAT_359, 36: PHONE_ALT_FORMAT_36, 372: PHONE
  7. line length 1705 characters (raw pass, confidence 0.50)

    PHONE_ALT_FORMAT_43 = [NumberFormat(pattern='(\\d)(\\d{3})(\\d{2})(\\d{2,3})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['1']), NumberFormat(pattern='(\\d)(\\d{4,6})', format='\\1 \\2', leading_digits_pattern=['5[079]']), NumberFormat(pattern='(\\d)(\\d{7,8})', format='\\1 \\2', leading_digits_pattern=['5[079]'
  8. line length 627 characters (raw pass, confidence 0.50)

    PHONE_ALT_FORMAT_44 = [NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['20']), NumberFormat(pattern='(\\d{3})(\\d{4})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['1(?:1|[2-69]1)|20|[389]|7(?:[1-57-9]|624)']), NumberFormat(pattern='(\\d{2})(\\d{4})(\\d{2})(\\d{2
  9. line length 521 characters (raw pass, confidence 0.50)

    PHONE_ALT_FORMAT_54 = [NumberFormat(pattern='(\\d{4})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04-79]|3[5-8]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)']
  10. line length 703 characters (raw pass, confidence 0.50)

    PHONE_ALT_FORMAT_62 = [NumberFormat(pattern='(\\d{2})(\\d{3,4})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['2[124]|[36]1']), NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{5})', format='\\1 \\2 \\3', leading_digits_pattern=['2[124]|[36]1']), NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{3})(\\d{3})', format='\\1 
  11. line length 973 characters (raw pass, confidence 0.50)

    PHONE_ALT_FORMAT_7 = [NumberFormat(pattern='(\\d{4})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[3489]|7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))']), NumberFormat(pattern='(\\d{5})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['[3489]|72(?:6|7[457])|7(?:12|2[49])[35]|7(?:1[13-58]|2[1
  12. line length 680 characters (raw pass, confidence 0.50)

    PHONE_ALT_FORMAT_995 = [NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['32']), NumberFormat(pattern='(\\d{2})(\\d)(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4 \\5', leading_digits_pattern=['32']), NumberFormat(pattern='(\\d{3})(\\d{6})', format='\\1 \\2'
  13. line length 542 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='1(?:11\\d|[2-9]\\d{3,11})|(?:316|463)\\d{3,10}|648[34]\\d{3,9}|(?:51|66|73)2\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[1
  14. line length 588 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?
  15. line length 668 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]
  16. line length 604 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[2
  17. line length 572 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:
  18. line length 614 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:
  19. line length 577 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346]
  20. line length 567 characters (raw pass, confidence 0.50)

        mobile=PhoneNumberDesc(national_number_pattern='(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]
  21. line length 528 characters (raw pass, confidence 0.50)

        fixed_line=PhoneNumberDesc(national_number_pattern='427[01]\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]
  22. info identifier-low-length phonenumbers/geodata/data1.py:1:1

    mean non-conventional identifier length 1.26 over 53 names (token pass, confidence 0.50)

  23. info identifier-low-length phonenumbers/geodata/data14.py:1:1

    mean non-conventional identifier length 1.00 over 6688 names (token pass, confidence 0.50)

  24. info identifier-low-length phonenumbers/geodata/data15.py:1:1

    mean non-conventional identifier length 1.00 over 10024 names (token pass, confidence 0.50)

  25. info identifier-low-length phonenumbers/geodata/data16.py:1:1

    mean non-conventional identifier length 1.00 over 10024 names (token pass, confidence 0.50)

  26. info identifier-low-length phonenumbers/geodata/data17.py:1:1

    mean non-conventional identifier length 1.00 over 10035 names (token pass, confidence 0.50)

  27. info identifier-low-length phonenumbers/geodata/data18.py:1:1

    mean non-conventional identifier length 1.00 over 10029 names (token pass, confidence 0.50)

  28. info identifier-low-length phonenumbers/geodata/data19.py:1:1

    mean non-conventional identifier length 1.00 over 10036 names (token pass, confidence 0.50)

  29. info identifier-low-length phonenumbers/geodata/data2.py:1:1

    mean non-conventional identifier length 1.50 over 28 names (token pass, confidence 0.50)

  30. info identifier-low-length phonenumbers/geodata/data20.py:1:1

    mean non-conventional identifier length 1.00 over 10026 names (token pass, confidence 0.50)

  31. info identifier-low-length phonenumbers/geodata/data21.py:1:1

    mean non-conventional identifier length 1.00 over 10045 names (token pass, confidence 0.50)

  32. info identifier-low-length phonenumbers/geodata/data22.py:1:1

    mean non-conventional identifier length 1.00 over 10035 names (token pass, confidence 0.50)

  33. info identifier-low-length phonenumbers/geodata/data23.py:1:1

    mean non-conventional identifier length 1.00 over 10021 names (token pass, confidence 0.50)

  34. info identifier-low-length phonenumbers/geodata/data24.py:1:1

    mean non-conventional identifier length 1.00 over 10014 names (token pass, confidence 0.50)

  35. info identifier-low-length phonenumbers/geodata/data25.py:1:1

    mean non-conventional identifier length 1.00 over 10030 names (token pass, confidence 0.50)

  36. info identifier-low-length phonenumbers/geodata/data26.py:1:1

    mean non-conventional identifier length 1.00 over 10027 names (token pass, confidence 0.50)

  37. info identifier-low-length phonenumbers/geodata/data27.py:1:1

    mean non-conventional identifier length 1.00 over 6077 names (token pass, confidence 0.50)

  38. info identifier-low-length phonenumbers/geodata/data28.py:1:1

    mean non-conventional identifier length 1.15 over 96 names (token pass, confidence 0.50)

  39. info identifier-low-length phonenumbers/geodata/data3.py:1:1

    mean non-conventional identifier length 1.01 over 1575 names (token pass, confidence 0.50)

  40. info identifier-low-length phonenumbers/geodata/data4.py:1:1

    mean non-conventional identifier length 1.01 over 2543 names (token pass, confidence 0.50)

  41. info identifier-low-length phonenumbers/geodata/data5.py:1:1

    mean non-conventional identifier length 1.00 over 6377 names (token pass, confidence 0.50)

  42. info identifier-low-length phonenumbers/geodata/data6.py:1:1

    mean non-conventional identifier length 1.00 over 6674 names (token pass, confidence 0.50)

  43. info identifier-low-length phonenumbers/geodata/data7.py:1:1

    mean non-conventional identifier length 1.00 over 4775 names (token pass, confidence 0.50)

  44. compression ratio 0.839 is >2σ above file mean 0.720 (raw pass, confidence 0.50)

     '612514':{'en': 'Canberra/Gearys Gap/Gundaroo/Michelago/Rye Park/The Mullion/Uriarra Forest/Yass/Anembo/Binalong/Bungendore/Burrinjuck/Captains Flat/Cavan'},
     '612515':{'en': 'Canberra'},
     '612516':{'en': 'Canberra'},
  45. info identifier-low-length phonenumbers/geodata/locale.py:1:1

    mean non-conventional identifier length 1.01 over 2348 names (token pass, confidence 0.50)

  46. line length 1232 characters (raw pass, confidence 0.50)

    _AVAILABLE_REGION_CODES = ['AC','AD','AE','AF','AG','AI','AL','AM','AO','AR','AS','AT','AU','AW','AX','AZ','BA','BB','BD','BE','BF','BG','BH','BI','BJ','BL','BM','BN','BO','BQ','BR','BS','BT','BW','BY','BZ','CA','CC','CD','CF','CG','CH','CI','CK','CL','CM','CN','CO','CR','CU','CV','CW','CX','CY','CZ','DE','DJ','DK','DM
  47. info critical → info by review dynamic-import phonenumbers/shortdata/__init__.py:21:5

    `__import__` called on a non-literal expression (ast pass, confidence 0.70)

    def _load_region(code):
        __import__("region_%s" % code, globals(), locals(),
                   fromlist=["PHONE_METADATA_%s" % code], level=1)
    likely benign LLM, confidence 0.93 Package-internal lazy loader for per-region short-number metadata modules.
    Reasoning

    Identical lazy-loading pattern to the data package: a relative import of a sibling region_XX metadata module built from a country code. It is the library's standard data loading and does not execute external or decoded content.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o phonenumbers-9.0.44-py2.py3-none-any.whl https://files.pythonhosted.org/packages/d2/90/84558cf9f1be59a04f3e76788d65e2c68c980ac0895ec9438fae2ebf2c6c/phonenumbers-9.0.44-py2.py3-none-any.whl
printf '%s  %s\n' 8fddbbf98e6b7c4be02f96c132df6b9b1ff6a6976e6a338155bc79c04e5a509e phonenumbers-9.0.44-py2.py3-none-any.whl | shasum -a 256 -c -
unzip -q phonenumbers-9.0.44-py2.py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg