faster-eth-utils 5.3.12__cp313-cp313-win32.whl → 5.3.13__cp313-cp313-win32.whl

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.
Binary file
Binary file
@@ -138,24 +138,21 @@ def apply_formatters_to_dict(
138
138
  if isinstance(value, CamelModel):
139
139
  value = value.model_dump(by_alias=not unaliased)
140
140
 
141
- def get_value(key: Any, item: Any) -> Any:
141
+ def get_value(key: Any, val: Any) -> Any:
142
142
  if key not in formatters:
143
- return item
143
+ return val
144
144
  try:
145
- return formatters[key](item)
145
+ return formatters[key](val)
146
146
  except ValueError as exc:
147
147
  raise ValueError(
148
- f"Could not format invalid value {repr(item)} as field {repr(key)}"
148
+ f"Could not format invalid value {val!r} as field {key!r}"
149
149
  ) from exc
150
150
  except TypeError as exc:
151
151
  raise TypeError(
152
- f"Could not format invalid type {repr(item)} as field {repr(key)}"
152
+ f"Could not format invalid type {val!r} as field {key!r}"
153
153
  ) from exc
154
154
 
155
- return {
156
- key: get_value(key, item) if key in formatters else key
157
- for key, item in value.items()
158
- }
155
+ return {key: get_value(key, val) for key, val in value.items()}
159
156
 
160
157
 
161
158
  @return_arg_type(1)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,11 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster-eth-utils
3
- Version: 5.3.12
3
+ Version: 5.3.13
4
4
  Summary: A fork of eth-utils: Common utility functions for python code that interacts with Ethereum, implemented in C
5
- Home-page: https://github.com/BobTheBuidler/eth-utils
5
+ Home-page: https://github.com/BobTheBuidler/faster-eth-utils
6
6
  Author: The Ethereum Foundation
7
7
  Author-email: snakecharmers@ethereum.org
8
8
  License: MIT
9
+ Project-URL: Documentation, https://eth-utils.readthedocs.io/en/stable/
10
+ Project-URL: Release Notes, https://github.com/BobTheBuidler/faster-eth-utils/releases
11
+ Project-URL: Issues, https://github.com/BobTheBuidler/faster-eth-utils/issues
12
+ Project-URL: Source, https://github.com/BobTheBuidler/faster-eth-utils
13
+ Project-URL: Original, https://github.com/ethereum/eth-utils
9
14
  Keywords: ethereum
10
15
  Classifier: Intended Audience :: Developers
11
16
  Classifier: License :: OSI Approved :: MIT License
@@ -67,6 +72,7 @@ Dynamic: home-page
67
72
  Dynamic: keywords
68
73
  Dynamic: license
69
74
  Dynamic: license-file
75
+ Dynamic: project-url
70
76
  Dynamic: provides-extra
71
77
  Dynamic: requires-dist
72
78
  Dynamic: requires-python
@@ -1,53 +1,53 @@
1
- faster_eth_utils__mypyc.cp313-win32.pyd,sha256=tpXeSYXe6zT9dZAzTquV2Y73V9stx-fO4RDPCS0Sqhg,395264
1
+ faster_eth_utils__mypyc.cp313-win32.pyd,sha256=k3rbm9uAPSRVkJB0RSLIBlNAIUETFXhsEs-Qx1IRzE8,395776
2
2
  faster_eth_utils/__init__.py,sha256=Hk6hT3RXB-ednEtyC4QgGeRVby9xSwUsK5I38NxnqBg,2906
3
3
  faster_eth_utils/__main__.py,sha256=_ZPSIKET0Rym_kVRE6xmvmbZVqYTMuTeyRdwduo2e48,91
4
- faster_eth_utils/abi.cp313-win32.pyd,sha256=3cCqFyIRUAtEru5-iSXet4TdhaKCNh_z1GXIqbJx-Ko,9216
4
+ faster_eth_utils/abi.cp313-win32.pyd,sha256=nAqs10XKRtnMv2rNwUU80KT9hqWFh2ckvBHcGV6dlHk,9216
5
5
  faster_eth_utils/abi.py,sha256=Zbp4hMfcsEs9_g2BbTdvfebQXvOgW5XTeuWPrmZmmXk,27251
6
- faster_eth_utils/address.cp313-win32.pyd,sha256=rEe033zn1yNu0XGc-JIeVEtE8P22X9OmRSmZOZfctlM,9216
6
+ faster_eth_utils/address.cp313-win32.pyd,sha256=kW6NcttUeYWnOCuEYpTrR2wHYpGj8mwe1bIlXksS7wY,9216
7
7
  faster_eth_utils/address.py,sha256=G9HKC4rFnPFF94Dyae5NmOICgjubl0ZPlNJWZGEOCNg,3825
8
- faster_eth_utils/applicators.cp313-win32.pyd,sha256=E09cZhbvL0YfreFshXRmZFvaSYVBsC-iDjPQYK9SBqI,9216
9
- faster_eth_utils/applicators.py,sha256=3g7t-8Fzy4flmzKN5w6joLhCpZfQlgcuX-VtIJMbJ8o,6047
10
- faster_eth_utils/conversions.cp313-win32.pyd,sha256=5ktc1B88S75UlmxB3LO2AIZAuMmLP8BJUYKXI2URmoY,9216
8
+ faster_eth_utils/applicators.cp313-win32.pyd,sha256=g5XXpKIWxcNHMLb974TXg0RPZtyGNIkIy4Lwwt3C8TY,9216
9
+ faster_eth_utils/applicators.py,sha256=u2Zt67GXqcv71liOeQKsvfxsn-co8oM5LyZWdA-Y6Og,5969
10
+ faster_eth_utils/conversions.cp313-win32.pyd,sha256=u_UWCQMlclNPcCBb-h90oUgwiN9212rwWK13jyMIQ0o,9216
11
11
  faster_eth_utils/conversions.py,sha256=IPUPtXHUyzBYc13c2IY8ZhM4MmA2BBaVnDihvDIApSY,5856
12
- faster_eth_utils/crypto.cp313-win32.pyd,sha256=zSAX2bbXcWhoFqL8v_XtzwuA3bBV0RTr0NURVa9IzNo,9216
12
+ faster_eth_utils/crypto.cp313-win32.pyd,sha256=O6LWNYiKiGRHd3yM_aSNkiR30JvhOyqSFEdnL0-FMNo,9216
13
13
  faster_eth_utils/crypto.py,sha256=X_l4B_ZBNHaulcInSVpdBG24xqjQ1_W9t4wYvi9Btw0,416
14
- faster_eth_utils/currency.cp313-win32.pyd,sha256=KwwsUKt9Wwl2usH4tzcCP07hwmIFkT1BTUBuDzHIYeM,9216
14
+ faster_eth_utils/currency.cp313-win32.pyd,sha256=1pHmwAZPNVanh7JT3_VNA8aT0c8ZLF1sAISKxzPdTU4,9216
15
15
  faster_eth_utils/currency.py,sha256=8oLxDv52IDJ2SK5q8C1zBdPXKHHBi7v_44sdbv3VJVw,4291
16
- faster_eth_utils/debug.cp313-win32.pyd,sha256=hGsHnu9tATdDGyOCflzjiXMb4ygKsPkMT8h6kVRJ1dI,9216
16
+ faster_eth_utils/debug.cp313-win32.pyd,sha256=MChnP8QIvMS7blB__xlhbcBn41R9tIQdlQzhXw6tcAQ,9216
17
17
  faster_eth_utils/debug.py,sha256=V3fN7-gz246Tcf_Zp99QK3uDzW22odPpAl_bShIZhZs,519
18
- faster_eth_utils/decorators.cp313-win32.pyd,sha256=yLdoPjNJb0tMTNrGcW0fpc1mQBM2wpBpGm4e54hV3rM,9216
18
+ faster_eth_utils/decorators.cp313-win32.pyd,sha256=GUIf2iG4Dg9F-W6nnfLZ-0xvQusqzAhFquUnN60WFYk,9216
19
19
  faster_eth_utils/decorators.py,sha256=h9v97vwtqgtPVkcBMtTk1MNYk4BY7QH53GC3c_Wc-OQ,2224
20
- faster_eth_utils/encoding.cp313-win32.pyd,sha256=Hc933M1Bn8lzPyP4ZJUWalsGE4XlEJsDTPRoFyL-w4E,9216
20
+ faster_eth_utils/encoding.cp313-win32.pyd,sha256=QtjcCnkuXzaq2RcS_QbJGKNzfP95jPn37pJR4OLLazM,9216
21
21
  faster_eth_utils/encoding.py,sha256=8_mWHVwdNL4Y1R-7N6q-N9R3N-yKtZ0arHaq8CuuCMM,205
22
- faster_eth_utils/exceptions.cp313-win32.pyd,sha256=18XGmMRPva5jZG9bleWu06BtFKk6gpnJfd5stUX3Ma4,9216
22
+ faster_eth_utils/exceptions.cp313-win32.pyd,sha256=XR3k3b-biGzyHO0BxVsr_aNkVcgeeTRt6HLuTOeWw6A,9216
23
23
  faster_eth_utils/exceptions.py,sha256=denVYkJGaikAbaHY62qcIJTFCQS9T55s60XKklihyLA,380
24
- faster_eth_utils/functional.cp313-win32.pyd,sha256=GNwfAmLnxQVtAN-tTsT8iuWbUQbGLZtQb9P70fgYY4A,9216
24
+ faster_eth_utils/functional.cp313-win32.pyd,sha256=bxk9YBDhEiEeSIDYjwsTXjIaFg5Bq-7z8tv1jU-QWsI,9216
25
25
  faster_eth_utils/functional.py,sha256=MWexxiZH6yqg1MMGsTRHuC0SxLVi3kZQKBAgtq6wrqo,2538
26
- faster_eth_utils/hexadecimal.cp313-win32.pyd,sha256=kNresJ-1IYlEDZ3SmGMQDzDiqrbP9RFVQ9CktYOYf2k,9216
26
+ faster_eth_utils/hexadecimal.cp313-win32.pyd,sha256=SHLaLTNBYAkIZCCXDdqJrHWC9Om7CZATNtOZa4C4jqE,9216
27
27
  faster_eth_utils/hexadecimal.py,sha256=bnWHo68ajygzhbLJfVOmqBlgifXfkBX8QvlHbigk9KU,2162
28
- faster_eth_utils/humanize.cp313-win32.pyd,sha256=TMrbhy0ECoEqtBp_Y8zU_YxHXyLRPReA3wtl1ocDjuY,9216
28
+ faster_eth_utils/humanize.cp313-win32.pyd,sha256=P40pg8o0xiLz-BHThwSt5vTdx20xz2KCeqwe7OVqTiE,9216
29
29
  faster_eth_utils/humanize.py,sha256=GA0N9yfbnQiYuP3CnT6nO6YLFs4GT1e6EskRsH9xL4s,4883
30
30
  faster_eth_utils/logging.py,sha256=fYULygZhlrLaXr5-Ao589w7wiNLLsvC7JWblR5E9oy0,4735
31
- faster_eth_utils/module_loading.cp313-win32.pyd,sha256=TIqNfFVnU9HmKPHNGeltbcgKA_yQcAeWKWlqan802aI,9216
31
+ faster_eth_utils/module_loading.cp313-win32.pyd,sha256=JF8vTBuv9X44p85aFC3HwqBUGtXNuehisCFMu7NTqmA,9216
32
32
  faster_eth_utils/module_loading.py,sha256=gGZ0n4zezi2zxMRuEU0cf7EYW1lXpS_a1aPvP1KFkXA,873
33
- faster_eth_utils/network.cp313-win32.pyd,sha256=R77EXHERamzJu3Wmb7HuP8MnAx53FVbLz-Nz0PXLU1Q,9216
33
+ faster_eth_utils/network.cp313-win32.pyd,sha256=vXsteYucrGTXDeKyiNZ54rnit_uWSxUjdnXXpC6Q3hc,9216
34
34
  faster_eth_utils/network.py,sha256=MVyNw-DQGoaMvKXedWbOzESSfT2x5HPtsxaImWLhXd4,2370
35
- faster_eth_utils/numeric.cp313-win32.pyd,sha256=CLuxmcPU8FGf_Fb9e_lD9SjkY_drTxB6nqQGzOAqQpY,9216
35
+ faster_eth_utils/numeric.cp313-win32.pyd,sha256=HyjeYdwedfxr7vO9l-KM2O8zYciw6NeQ27csjp5XWXA,9216
36
36
  faster_eth_utils/numeric.py,sha256=Mqc6dzs-aK84cBFxsZtXJhpb7_S-TDug-FuFqlR6vHg,1233
37
37
  faster_eth_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  faster_eth_utils/pydantic.py,sha256=Vx8Y_CB_3u5h9CHchwFyTQw-HUdADdTxD5NJN-CIf3I,3494
39
- faster_eth_utils/toolz.cp313-win32.pyd,sha256=D79jPv9Xt2QOffyTeIGi237LritM9zVMnaYNRSau_wA,9216
39
+ faster_eth_utils/toolz.cp313-win32.pyd,sha256=8vBfNee6gf2PwfrSk8lyOdIjSQKOlrhxwggUp-mCfCY,9216
40
40
  faster_eth_utils/toolz.py,sha256=P3s23LOEFRY6XQ8i_ChnA9hf-PSi-Oe-pv0jzsj7DjY,4494
41
- faster_eth_utils/types.cp313-win32.pyd,sha256=Ob3vL0euDXYbj7Zm0VztvWp47Wha_udIslIlUMAbNWQ,9216
41
+ faster_eth_utils/types.cp313-win32.pyd,sha256=Rg9Qrf8Vmxh_YcblRnk8YHuzl27p-HVRUKDmBZoHzWU,9216
42
42
  faster_eth_utils/types.py,sha256=93qhgOdd3t9oVYptsgddUV42LEbic80wfqpevLwrIWI,1587
43
- faster_eth_utils/units.cp313-win32.pyd,sha256=-uWNWwuzcymgzstqFvorqagCgC9DaVE9HUXpJcDWEwU,9216
43
+ faster_eth_utils/units.cp313-win32.pyd,sha256=4C0atOfoFtTnWLtgtvGZqhAL81sJCQWfo5vokevbkbs,9216
44
44
  faster_eth_utils/units.py,sha256=QQyNHx2umgN5LtOmptc_2-XKf3A-5YfVcTwaEcVrev8,1788
45
45
  faster_eth_utils/__json/eth_networks.json,sha256=Zvb92ir0B_xKfqAraQtQLSf7J1zrfl_lwbYYrtP-hms,414774
46
46
  faster_eth_utils/curried/__init__.py,sha256=l6kKdgMwrK4nqMz9r6AoNMIPJKfSI5bNxKuQzgq2sRQ,7707
47
47
  faster_eth_utils/typing/__init__.py,sha256=mCjbC5-GULGyLCr-LHccbW_aKPkzN2w1ejW3EBfy6mU,343
48
48
  faster_eth_utils/typing/misc.py,sha256=rokTYylOyX_Uok6rb8L1JsH_7fAydRmDWLzL5xc6Bao,204
49
- faster_eth_utils-5.3.12.dist-info/licenses/LICENSE,sha256=VSsrPEmF7tY2P84NOLM4ZsJDoEIjpf16GFwU5-py2n0,1116
50
- faster_eth_utils-5.3.12.dist-info/METADATA,sha256=T5Deq7_RncPKDKqsV1Wsm7brc-89GBl7uTZFAIBdD30,7977
51
- faster_eth_utils-5.3.12.dist-info/WHEEL,sha256=0ABLuJ37exXk5N_efmYNs2NU9NK1K2Qlod_6bYkofEA,97
52
- faster_eth_utils-5.3.12.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
53
- faster_eth_utils-5.3.12.dist-info/RECORD,,
49
+ faster_eth_utils-5.3.13.dist-info/licenses/LICENSE,sha256=VSsrPEmF7tY2P84NOLM4ZsJDoEIjpf16GFwU5-py2n0,1116
50
+ faster_eth_utils-5.3.13.dist-info/METADATA,sha256=MbiZZTnmpzZ0gGE8Ld5GH9JSvbm2TBoazkWxuWPbmRY,8380
51
+ faster_eth_utils-5.3.13.dist-info/WHEEL,sha256=0ABLuJ37exXk5N_efmYNs2NU9NK1K2Qlod_6bYkofEA,97
52
+ faster_eth_utils-5.3.13.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
53
+ faster_eth_utils-5.3.13.dist-info/RECORD,,
Binary file