faster-eth-utils 5.3.12__cp310-cp310-macosx_11_0_arm64.whl → 5.3.13__cp310-cp310-macosx_11_0_arm64.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.
Files changed (27) hide show
  1. faster_eth_utils/abi.cpython-310-darwin.so +0 -0
  2. faster_eth_utils/address.cpython-310-darwin.so +0 -0
  3. faster_eth_utils/applicators.cpython-310-darwin.so +0 -0
  4. faster_eth_utils/applicators.py +6 -9
  5. faster_eth_utils/conversions.cpython-310-darwin.so +0 -0
  6. faster_eth_utils/crypto.cpython-310-darwin.so +0 -0
  7. faster_eth_utils/currency.cpython-310-darwin.so +0 -0
  8. faster_eth_utils/debug.cpython-310-darwin.so +0 -0
  9. faster_eth_utils/decorators.cpython-310-darwin.so +0 -0
  10. faster_eth_utils/encoding.cpython-310-darwin.so +0 -0
  11. faster_eth_utils/exceptions.cpython-310-darwin.so +0 -0
  12. faster_eth_utils/functional.cpython-310-darwin.so +0 -0
  13. faster_eth_utils/hexadecimal.cpython-310-darwin.so +0 -0
  14. faster_eth_utils/humanize.cpython-310-darwin.so +0 -0
  15. faster_eth_utils/module_loading.cpython-310-darwin.so +0 -0
  16. faster_eth_utils/network.cpython-310-darwin.so +0 -0
  17. faster_eth_utils/numeric.cpython-310-darwin.so +0 -0
  18. faster_eth_utils/toolz.cpython-310-darwin.so +0 -0
  19. faster_eth_utils/types.cpython-310-darwin.so +0 -0
  20. faster_eth_utils/units.cpython-310-darwin.so +0 -0
  21. {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/METADATA +8 -2
  22. faster_eth_utils-5.3.13.dist-info/RECORD +53 -0
  23. faster_eth_utils__mypyc.cpython-310-darwin.so +0 -0
  24. faster_eth_utils-5.3.12.dist-info/RECORD +0 -53
  25. {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/WHEEL +0 -0
  26. {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/licenses/LICENSE +0 -0
  27. {faster_eth_utils-5.3.12.dist-info → faster_eth_utils-5.3.13.dist-info}/top_level.txt +0 -0
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)
@@ -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
@@ -0,0 +1,53 @@
1
+ faster_eth_utils__mypyc.cpython-310-darwin.so,sha256=PLchN_WYxo1RT7vzYMD9PZDQU6e-t4Sm_7_POGViOzg,1220208
2
+ faster_eth_utils/module_loading.cpython-310-darwin.so,sha256=9PlDJkuDynRJjXvTBoru8NyV6fwc6sOirPU8kTTBiQI,50696
3
+ faster_eth_utils/hexadecimal.py,sha256=bPxUdJse6A3j3vF6KpnvSM2h3eRhgWSWeyicwnLdvHY,2082
4
+ faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
5
+ faster_eth_utils/logging.py,sha256=Gm0B2D7oDPByi-mNCEwLnl3lAU4_TJ4yc6EsOOJA8Rc,4590
6
+ faster_eth_utils/types.cpython-310-darwin.so,sha256=7qAhdvovV4HjfgekqaZJxjTcqBCa0Dp-tODZh8tAX4E,50648
7
+ faster_eth_utils/humanize.cpython-310-darwin.so,sha256=o7K4R851vn69vPH7OCRKuG-uP_4h6M6kV-rGMzWLZc0,50656
8
+ faster_eth_utils/applicators.py,sha256=61XBoTjROcwRslkPyCExOOYb5v7FbVVIIOYfmwgJIBk,5774
9
+ faster_eth_utils/units.py,sha256=jRo8p6trxwuISBnT8kfxTNVyd_TSd5vVY5aiKDefB1U,1757
10
+ faster_eth_utils/encoding.py,sha256=1qfDeuinLZ01XjYgknpm_p9LuWwaYvicYkYI8mS1iMc,199
11
+ faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
12
+ faster_eth_utils/currency.cpython-310-darwin.so,sha256=ijRTT1IObJ5ytM8Zd8piznlzuulzFHxgFPdRrdpAi-w,50656
13
+ faster_eth_utils/__init__.py,sha256=hW-A_fjyQ76crTKwuxxSbvNzvPfW27dSlzhtOkseymg,2762
14
+ faster_eth_utils/address.cpython-310-darwin.so,sha256=1yYyWmYg5N-jjV1LEm-i-kI3BEFW-07Kht0JlFgKjA4,50656
15
+ faster_eth_utils/types.py,sha256=-RDPzkoNhkp3dpDNK9iKzGmSQawwZ6wJ4exur0E_BuY,1519
16
+ faster_eth_utils/humanize.py,sha256=bCxXyx73NuVIDjRnpPZs7lybfrun-llC3ITy-0zZSns,4682
17
+ faster_eth_utils/pydantic.py,sha256=za0WJGWkjYQkRnMbEke7ueyhDt-kuqFmCq0Utaji46g,3393
18
+ faster_eth_utils/hexadecimal.cpython-310-darwin.so,sha256=xDO-KoCrlQFCGerkAkhN5mG5GTWXzIszGyv2FkGx0Kc,50672
19
+ faster_eth_utils/exceptions.cpython-310-darwin.so,sha256=au4eoaRNhazbhi1ke4jZ8zYGRXwF7j84fF6kNvIX-yg,50672
20
+ faster_eth_utils/network.cpython-310-darwin.so,sha256=5ZSxNESfJ-msR7rk0Bpx-FfzYsa8xqrti6AXhvUjens,50656
21
+ faster_eth_utils/crypto.cpython-310-darwin.so,sha256=Fe_BpA5s6dUK40WqpIsaMuExJjHScJpKU4S88N3lt1E,50656
22
+ faster_eth_utils/debug.cpython-310-darwin.so,sha256=NwMMfD5wFpnztuVky06yThlJJn1JGftB3__EV41ErSw,50648
23
+ faster_eth_utils/numeric.cpython-310-darwin.so,sha256=gxh6FeUs_zexaMCQKcPXIUsgGULjC88B0Lsiz8bszQA,50656
24
+ faster_eth_utils/functional.py,sha256=nJTxE4_HDci0chos5mQdy05pJ8o7n0wx_o7_WCro2gI,2449
25
+ faster_eth_utils/applicators.cpython-310-darwin.so,sha256=IuYLrURVFnrCnoQehHz-vEUYCx4B_uCTZqEJ1v85vd0,50672
26
+ faster_eth_utils/crypto.py,sha256=EQgupom_TnURbLNXodwbJoKB-mHyxgOTvo8EjnSzdxw,395
27
+ faster_eth_utils/encoding.cpython-310-darwin.so,sha256=c3Dk42YU4c0oBAOeeVkK8LvvNxLVC_cWsr-3HpHrqSA,50656
28
+ faster_eth_utils/debug.py,sha256=0Z-tNOqgQJunS4uHeSCCH1LWLoijlH34MBh6NRrrDrk,499
29
+ faster_eth_utils/numeric.py,sha256=RrXdXI-bhhkEsz3aBtxHuGlc_2ZJvUGpvMc47wx408Y,1190
30
+ faster_eth_utils/network.py,sha256=O3yTtA93YyyZ6Obkusr_IbbcZ6upkCewN6EsAcF0Npc,2278
31
+ faster_eth_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
+ faster_eth_utils/abi.py,sha256=3pAqpKXMOcOLCD4uUUVfxBcM9H1K311dpd1Zj0Qi21g,26404
33
+ faster_eth_utils/exceptions.py,sha256=7Cjxewj4g95RxNvjNqaB2w3HGk6068V82ppCHS_S-Y0,369
34
+ faster_eth_utils/toolz.cpython-310-darwin.so,sha256=j16dI45WPoLgZRjVmcMIoQS1NZJZd9XK6zFNEH1al1g,50648
35
+ faster_eth_utils/functional.cpython-310-darwin.so,sha256=k-_8U5Lp6Nq0XY6TC1hBNRwC5l5sFv0y0WY8QjgYuw4,50672
36
+ faster_eth_utils/abi.cpython-310-darwin.so,sha256=Tbd835RnUmEzAqeFB5GOMjml4WedfFy5gTF7MUnTDa4,50632
37
+ faster_eth_utils/conversions.cpython-310-darwin.so,sha256=H329ETbpC580jVOwyIizN5Q3c2GdFiVgBMILjF6oPTw,50672
38
+ faster_eth_utils/decorators.cpython-310-darwin.so,sha256=p5wn6WPBxlQuip4aquxnr68LBxZBJ9MhMkarIA7mRGI,50672
39
+ faster_eth_utils/currency.py,sha256=01YVV2f2GL4830jfSjnC4XhLQjTNQB-5y7vbGzaMWbM,4150
40
+ faster_eth_utils/module_loading.py,sha256=DCLM4dEh1gqr8Ny-FWwD-_pINqeHzbLSupz4ZIpCCAw,842
41
+ faster_eth_utils/units.cpython-310-darwin.so,sha256=ROvmX3o0IhLVRqrns2BkePifXdIOQquwLTjB4npjSR4,50648
42
+ faster_eth_utils/__main__.py,sha256=mH37e49q7_A0-q1ymqkq1QyYABbQHVmXeuSKIBSahO8,86
43
+ faster_eth_utils/toolz.py,sha256=1QQY-aMbZrEgJsuqR0Ajsa32C_cXrQquzViw7OkxNLU,4410
44
+ faster_eth_utils/decorators.py,sha256=BdAz-imQIf0TlBm7Di7T05o3IC6ei-xJc7FgIOqqAyE,2145
45
+ faster_eth_utils/curried/__init__.py,sha256=x_nPjvTwmXeEl5jV86RRUvudu6ks1kMUxZfbjNuGx8Y,7407
46
+ faster_eth_utils/typing/misc.py,sha256=4N5raYXFAeRGpmch6qgHrtYNCDxCJM5XtAAsJ1FSzzU,190
47
+ faster_eth_utils/typing/__init__.py,sha256=84PxIxCvEHtBb-Ik6qnGvXH4alaWbamr_zDbtlbJh3A,325
48
+ faster_eth_utils/__json/eth_networks.json,sha256=0S8HoWD6RTR6Hc0uQdQl2VHtopytIYl5NiDAzpuskBs,414773
49
+ faster_eth_utils-5.3.13.dist-info/RECORD,,
50
+ faster_eth_utils-5.3.13.dist-info/WHEEL,sha256=11kMdE9gzbsaQG30fRcsAYxBLEVRsqJo098Y5iL60Xo,136
51
+ faster_eth_utils-5.3.13.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
52
+ faster_eth_utils-5.3.13.dist-info/METADATA,sha256=s6MKNWkp8Bo9yKciC5RajtnB6uiZCwTJmcvTVT2Ci9I,8197
53
+ faster_eth_utils-5.3.13.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095
@@ -1,53 +0,0 @@
1
- faster_eth_utils__mypyc.cpython-310-darwin.so,sha256=Oc3YKQ0egzABGGIX66ji-0JFHfz5lHk6c84FCiJpk4k,1219616
2
- faster_eth_utils/module_loading.cpython-310-darwin.so,sha256=tHtLcisfGeIb4-H0_3wqugV4qp90EoRZCfzpSGvC9_c,50696
3
- faster_eth_utils/hexadecimal.py,sha256=bPxUdJse6A3j3vF6KpnvSM2h3eRhgWSWeyicwnLdvHY,2082
4
- faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
5
- faster_eth_utils/logging.py,sha256=Gm0B2D7oDPByi-mNCEwLnl3lAU4_TJ4yc6EsOOJA8Rc,4590
6
- faster_eth_utils/types.cpython-310-darwin.so,sha256=25U7xpwFdUTqtY-TdebdS0FDIQKlNp3dGCs7QgPSvTU,50648
7
- faster_eth_utils/humanize.cpython-310-darwin.so,sha256=5qJ4-TZrlXRusb0PVHjMAt5o8zCWpi6ekbiej38gops,50656
8
- faster_eth_utils/applicators.py,sha256=ExFoKpS3Y09AXhth15QaKfr7CRQrW-ikE1thXDwTx0k,5849
9
- faster_eth_utils/units.py,sha256=jRo8p6trxwuISBnT8kfxTNVyd_TSd5vVY5aiKDefB1U,1757
10
- faster_eth_utils/encoding.py,sha256=1qfDeuinLZ01XjYgknpm_p9LuWwaYvicYkYI8mS1iMc,199
11
- faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
12
- faster_eth_utils/currency.cpython-310-darwin.so,sha256=gdbU5l1UljoJYUzmSJWk-4pAh5r8Ve4o63HJSfcWSNA,50656
13
- faster_eth_utils/__init__.py,sha256=hW-A_fjyQ76crTKwuxxSbvNzvPfW27dSlzhtOkseymg,2762
14
- faster_eth_utils/address.cpython-310-darwin.so,sha256=398aYkaNAxEynj9DfY-bmIGEc6rcuqXyJZP4AQguUWk,50656
15
- faster_eth_utils/types.py,sha256=-RDPzkoNhkp3dpDNK9iKzGmSQawwZ6wJ4exur0E_BuY,1519
16
- faster_eth_utils/humanize.py,sha256=bCxXyx73NuVIDjRnpPZs7lybfrun-llC3ITy-0zZSns,4682
17
- faster_eth_utils/pydantic.py,sha256=za0WJGWkjYQkRnMbEke7ueyhDt-kuqFmCq0Utaji46g,3393
18
- faster_eth_utils/hexadecimal.cpython-310-darwin.so,sha256=qUXQ877iOKRn9Im7J5yg-kTwK2nbE-dL4H1j0K-Z0J0,50672
19
- faster_eth_utils/exceptions.cpython-310-darwin.so,sha256=z7FDGPB5xsdj-wTIDvqrGh0X0IAeFUIMDggl4rJY1lQ,50672
20
- faster_eth_utils/network.cpython-310-darwin.so,sha256=0UYEJhgy1p3VqGgJ-_G3QvCWs_I2LkH5NvcKfRcrVt8,50656
21
- faster_eth_utils/crypto.cpython-310-darwin.so,sha256=UyD_fWxxc9QpeJb-MBPcxGzdiBRzDorK3a3kz0fucl0,50656
22
- faster_eth_utils/debug.cpython-310-darwin.so,sha256=_T6gi6DAndjZ4Nmjhpo_y4_-sJwCu5qCXpub95QjfT0,50648
23
- faster_eth_utils/numeric.cpython-310-darwin.so,sha256=oMpfM4wImGZym4nnCkWwPa89c0HZ8qrv7OGLyx_W18s,50656
24
- faster_eth_utils/functional.py,sha256=nJTxE4_HDci0chos5mQdy05pJ8o7n0wx_o7_WCro2gI,2449
25
- faster_eth_utils/applicators.cpython-310-darwin.so,sha256=RWla4hZucl-ehfkLDdnBDpUK0Aipst7lpjQGHdErDu8,50672
26
- faster_eth_utils/crypto.py,sha256=EQgupom_TnURbLNXodwbJoKB-mHyxgOTvo8EjnSzdxw,395
27
- faster_eth_utils/encoding.cpython-310-darwin.so,sha256=WHfEp7L5rYY8kqb6F1jiwqfRgLlzhk4THIAXRclXn0w,50656
28
- faster_eth_utils/debug.py,sha256=0Z-tNOqgQJunS4uHeSCCH1LWLoijlH34MBh6NRrrDrk,499
29
- faster_eth_utils/numeric.py,sha256=RrXdXI-bhhkEsz3aBtxHuGlc_2ZJvUGpvMc47wx408Y,1190
30
- faster_eth_utils/network.py,sha256=O3yTtA93YyyZ6Obkusr_IbbcZ6upkCewN6EsAcF0Npc,2278
31
- faster_eth_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- faster_eth_utils/abi.py,sha256=3pAqpKXMOcOLCD4uUUVfxBcM9H1K311dpd1Zj0Qi21g,26404
33
- faster_eth_utils/exceptions.py,sha256=7Cjxewj4g95RxNvjNqaB2w3HGk6068V82ppCHS_S-Y0,369
34
- faster_eth_utils/toolz.cpython-310-darwin.so,sha256=IP2j33sD11uEGODJ0S6S-gviScCrv_k99znbBJHbRkQ,50648
35
- faster_eth_utils/functional.cpython-310-darwin.so,sha256=xK2KFYBdctEzPk62GvRVSC8w0UlYFIxvSrCsewZ6PCc,50672
36
- faster_eth_utils/abi.cpython-310-darwin.so,sha256=YqJgiMy-VLa-hbCyw3COxub2mWM69sRHQDbUAo2nEbA,50632
37
- faster_eth_utils/conversions.cpython-310-darwin.so,sha256=nFxGaXK3A4zQJB4TK3lRGqAPsFr6I8XYm-C-Efc305M,50672
38
- faster_eth_utils/decorators.cpython-310-darwin.so,sha256=g_-ljfq_OqTBm_1OZDs-N6HYCwz19-5_O5KeYS3i2Rk,50672
39
- faster_eth_utils/currency.py,sha256=01YVV2f2GL4830jfSjnC4XhLQjTNQB-5y7vbGzaMWbM,4150
40
- faster_eth_utils/module_loading.py,sha256=DCLM4dEh1gqr8Ny-FWwD-_pINqeHzbLSupz4ZIpCCAw,842
41
- faster_eth_utils/units.cpython-310-darwin.so,sha256=p_bFRoeztEA-dWANc6dDaRDGjwHdarbzNMhZpFwSFfU,50648
42
- faster_eth_utils/__main__.py,sha256=mH37e49q7_A0-q1ymqkq1QyYABbQHVmXeuSKIBSahO8,86
43
- faster_eth_utils/toolz.py,sha256=1QQY-aMbZrEgJsuqR0Ajsa32C_cXrQquzViw7OkxNLU,4410
44
- faster_eth_utils/decorators.py,sha256=BdAz-imQIf0TlBm7Di7T05o3IC6ei-xJc7FgIOqqAyE,2145
45
- faster_eth_utils/curried/__init__.py,sha256=x_nPjvTwmXeEl5jV86RRUvudu6ks1kMUxZfbjNuGx8Y,7407
46
- faster_eth_utils/typing/misc.py,sha256=4N5raYXFAeRGpmch6qgHrtYNCDxCJM5XtAAsJ1FSzzU,190
47
- faster_eth_utils/typing/__init__.py,sha256=84PxIxCvEHtBb-Ik6qnGvXH4alaWbamr_zDbtlbJh3A,325
48
- faster_eth_utils/__json/eth_networks.json,sha256=0S8HoWD6RTR6Hc0uQdQl2VHtopytIYl5NiDAzpuskBs,414773
49
- faster_eth_utils-5.3.12.dist-info/RECORD,,
50
- faster_eth_utils-5.3.12.dist-info/WHEEL,sha256=11kMdE9gzbsaQG30fRcsAYxBLEVRsqJo098Y5iL60Xo,136
51
- faster_eth_utils-5.3.12.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
52
- faster_eth_utils-5.3.12.dist-info/METADATA,sha256=WY-bib_GXbHWpDXrSq0qyJiUs0Au4dI33z210Shnejg,7800
53
- faster_eth_utils-5.3.12.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095