faster-eth-utils 5.3.11__cp312-cp312-win32.whl → 5.3.13__cp312-cp312-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.
- faster_eth_utils/abi.cp312-win32.pyd +0 -0
- faster_eth_utils/address.cp312-win32.pyd +0 -0
- faster_eth_utils/applicators.cp312-win32.pyd +0 -0
- faster_eth_utils/applicators.py +8 -10
- faster_eth_utils/conversions.cp312-win32.pyd +0 -0
- faster_eth_utils/crypto.cp312-win32.pyd +0 -0
- faster_eth_utils/currency.cp312-win32.pyd +0 -0
- faster_eth_utils/debug.cp312-win32.pyd +0 -0
- faster_eth_utils/decorators.cp312-win32.pyd +0 -0
- faster_eth_utils/encoding.cp312-win32.pyd +0 -0
- faster_eth_utils/exceptions.cp312-win32.pyd +0 -0
- faster_eth_utils/functional.cp312-win32.pyd +0 -0
- faster_eth_utils/hexadecimal.cp312-win32.pyd +0 -0
- faster_eth_utils/humanize.cp312-win32.pyd +0 -0
- faster_eth_utils/module_loading.cp312-win32.pyd +0 -0
- faster_eth_utils/network.cp312-win32.pyd +0 -0
- faster_eth_utils/numeric.cp312-win32.pyd +0 -0
- faster_eth_utils/toolz.cp312-win32.pyd +0 -0
- faster_eth_utils/types.cp312-win32.pyd +0 -0
- faster_eth_utils/units.cp312-win32.pyd +0 -0
- {faster_eth_utils-5.3.11.dist-info → faster_eth_utils-5.3.13.dist-info}/METADATA +9 -3
- {faster_eth_utils-5.3.11.dist-info → faster_eth_utils-5.3.13.dist-info}/RECORD +26 -26
- faster_eth_utils__mypyc.cp312-win32.pyd +0 -0
- {faster_eth_utils-5.3.11.dist-info → faster_eth_utils-5.3.13.dist-info}/WHEEL +0 -0
- {faster_eth_utils-5.3.11.dist-info → faster_eth_utils-5.3.13.dist-info}/licenses/LICENSE +0 -0
- {faster_eth_utils-5.3.11.dist-info → faster_eth_utils-5.3.13.dist-info}/top_level.txt +0 -0
Binary file
|
Binary file
|
Binary file
|
faster_eth_utils/applicators.py
CHANGED
@@ -4,6 +4,7 @@ from typing import (
|
|
4
4
|
Dict,
|
5
5
|
Generator,
|
6
6
|
List,
|
7
|
+
Mapping,
|
7
8
|
Sequence,
|
8
9
|
Tuple,
|
9
10
|
TypeVar,
|
@@ -137,24 +138,21 @@ def apply_formatters_to_dict(
|
|
137
138
|
if isinstance(value, CamelModel):
|
138
139
|
value = value.model_dump(by_alias=not unaliased)
|
139
140
|
|
140
|
-
def get_value(key: Any,
|
141
|
+
def get_value(key: Any, val: Any) -> Any:
|
141
142
|
if key not in formatters:
|
142
|
-
return
|
143
|
+
return val
|
143
144
|
try:
|
144
|
-
return formatters[key](
|
145
|
+
return formatters[key](val)
|
145
146
|
except ValueError as exc:
|
146
147
|
raise ValueError(
|
147
|
-
f"Could not format invalid value {
|
148
|
+
f"Could not format invalid value {val!r} as field {key!r}"
|
148
149
|
) from exc
|
149
150
|
except TypeError as exc:
|
150
151
|
raise TypeError(
|
151
|
-
f"Could not format invalid type {
|
152
|
+
f"Could not format invalid type {val!r} as field {key!r}"
|
152
153
|
) from exc
|
153
154
|
|
154
|
-
return {
|
155
|
-
key: get_value(key, item) if key in formatters else key
|
156
|
-
for key, item in value.items()
|
157
|
-
}
|
155
|
+
return {key: get_value(key, val) for key, val in value.items()}
|
158
156
|
|
159
157
|
|
160
158
|
@return_arg_type(1)
|
@@ -179,7 +177,7 @@ def apply_one_of_formatters(
|
|
179
177
|
|
180
178
|
|
181
179
|
def apply_key_map(
|
182
|
-
key_mappings: Dict[Any, Any], value:
|
180
|
+
key_mappings: Dict[Any, Any], value: Mapping[Any, Any]
|
183
181
|
) -> Dict[Any, Any]:
|
184
182
|
key_conflicts = (
|
185
183
|
set(value.keys())
|
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
|
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.
|
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
|
@@ -84,7 +90,7 @@ Dynamic: summary
|
|
84
90
|
|
85
91
|
##### We benchmark `faster-eth-utils` against the original `eth-utils` for your convenience. [See results](https://github.com/BobTheBuidler/faster-eth-utils/tree/master/benchmarks/results).
|
86
92
|
|
87
|
-
##### You can find the compiled C code
|
93
|
+
##### You can find the compiled C code and header files in the [build](https://github.com/BobTheBuidler/eth-utils/tree/master/build) directory.
|
88
94
|
|
89
95
|
###### You may also be interested in: [faster-web3.py](https://github.com/BobTheBuidler/faster-web3.py/), [faster-eth-abi](https://github.com/BobTheBuidler/faster-eth-abi/), and [faster-hexbytes](https://github.com/BobTheBuidler/faster-hexbytes/)
|
90
96
|
|
@@ -1,53 +1,53 @@
|
|
1
|
-
faster_eth_utils__mypyc.cp312-win32.pyd,sha256=
|
1
|
+
faster_eth_utils__mypyc.cp312-win32.pyd,sha256=74Pfxa1VcvYGgkhgxroIvJVnxMGPd9hwZwfi3Xjp2EU,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.cp312-win32.pyd,sha256=
|
4
|
+
faster_eth_utils/abi.cp312-win32.pyd,sha256=2JtiISQKwJSUH-NB0jOeiS2KzImJUl4zjatZu0e0j1k,9216
|
5
5
|
faster_eth_utils/abi.py,sha256=Zbp4hMfcsEs9_g2BbTdvfebQXvOgW5XTeuWPrmZmmXk,27251
|
6
|
-
faster_eth_utils/address.cp312-win32.pyd,sha256=
|
6
|
+
faster_eth_utils/address.cp312-win32.pyd,sha256=t8clgeVrGWxc4NdS5LH1AyCRuo5aXX86rnPH50iMI7A,9216
|
7
7
|
faster_eth_utils/address.py,sha256=G9HKC4rFnPFF94Dyae5NmOICgjubl0ZPlNJWZGEOCNg,3825
|
8
|
-
faster_eth_utils/applicators.cp312-win32.pyd,sha256=
|
9
|
-
faster_eth_utils/applicators.py,sha256=
|
10
|
-
faster_eth_utils/conversions.cp312-win32.pyd,sha256=
|
8
|
+
faster_eth_utils/applicators.cp312-win32.pyd,sha256=MCuDjFPq72faizBlmgsS6-0gDtkD5vAcoVEl9qqH7AM,9216
|
9
|
+
faster_eth_utils/applicators.py,sha256=u2Zt67GXqcv71liOeQKsvfxsn-co8oM5LyZWdA-Y6Og,5969
|
10
|
+
faster_eth_utils/conversions.cp312-win32.pyd,sha256=oFpD71SWEN6kiS2Iy9P_g8VVHztan5L59zTBSz74jE0,9216
|
11
11
|
faster_eth_utils/conversions.py,sha256=IPUPtXHUyzBYc13c2IY8ZhM4MmA2BBaVnDihvDIApSY,5856
|
12
|
-
faster_eth_utils/crypto.cp312-win32.pyd,sha256=
|
12
|
+
faster_eth_utils/crypto.cp312-win32.pyd,sha256=YCBeB-B5jBGJ5L9pcyE13MxS6mkDshTOmUH67nycG40,9216
|
13
13
|
faster_eth_utils/crypto.py,sha256=X_l4B_ZBNHaulcInSVpdBG24xqjQ1_W9t4wYvi9Btw0,416
|
14
|
-
faster_eth_utils/currency.cp312-win32.pyd,sha256=
|
14
|
+
faster_eth_utils/currency.cp312-win32.pyd,sha256=miB-hnGKWho-woxK6DMwYMg5d6j6DY9QlrFf0brpdVo,9216
|
15
15
|
faster_eth_utils/currency.py,sha256=8oLxDv52IDJ2SK5q8C1zBdPXKHHBi7v_44sdbv3VJVw,4291
|
16
|
-
faster_eth_utils/debug.cp312-win32.pyd,sha256=
|
16
|
+
faster_eth_utils/debug.cp312-win32.pyd,sha256=tbFxBG0sNq7wAkWDbivIp1rJUkYvJS8H7uREhzaeTTw,9216
|
17
17
|
faster_eth_utils/debug.py,sha256=V3fN7-gz246Tcf_Zp99QK3uDzW22odPpAl_bShIZhZs,519
|
18
|
-
faster_eth_utils/decorators.cp312-win32.pyd,sha256
|
18
|
+
faster_eth_utils/decorators.cp312-win32.pyd,sha256=kP3OAscSFE9UNWJgUlHHPUIiNufr8YYSCY5iuPH9Io4,9216
|
19
19
|
faster_eth_utils/decorators.py,sha256=h9v97vwtqgtPVkcBMtTk1MNYk4BY7QH53GC3c_Wc-OQ,2224
|
20
|
-
faster_eth_utils/encoding.cp312-win32.pyd,sha256=
|
20
|
+
faster_eth_utils/encoding.cp312-win32.pyd,sha256=3rqJUqPAQ_c_PNX5t0qKycBxB4WUDLPv70hTXWxGxa8,9216
|
21
21
|
faster_eth_utils/encoding.py,sha256=8_mWHVwdNL4Y1R-7N6q-N9R3N-yKtZ0arHaq8CuuCMM,205
|
22
|
-
faster_eth_utils/exceptions.cp312-win32.pyd,sha256=
|
22
|
+
faster_eth_utils/exceptions.cp312-win32.pyd,sha256=_OQVnjW4vgx4tdeabGVwmnsEPkkriUs4kOiJeWvd64k,9216
|
23
23
|
faster_eth_utils/exceptions.py,sha256=denVYkJGaikAbaHY62qcIJTFCQS9T55s60XKklihyLA,380
|
24
|
-
faster_eth_utils/functional.cp312-win32.pyd,sha256=
|
24
|
+
faster_eth_utils/functional.cp312-win32.pyd,sha256=_u7Z_1gPPqWqo4aP0wLtnAZDhdlodeZAeX0cYI0vzQE,9216
|
25
25
|
faster_eth_utils/functional.py,sha256=MWexxiZH6yqg1MMGsTRHuC0SxLVi3kZQKBAgtq6wrqo,2538
|
26
|
-
faster_eth_utils/hexadecimal.cp312-win32.pyd,sha256=
|
26
|
+
faster_eth_utils/hexadecimal.cp312-win32.pyd,sha256=s02X4u_72j-UTnH3G3Zypz6iS-QnOXRuhQCuGWDXaP8,9216
|
27
27
|
faster_eth_utils/hexadecimal.py,sha256=bnWHo68ajygzhbLJfVOmqBlgifXfkBX8QvlHbigk9KU,2162
|
28
|
-
faster_eth_utils/humanize.cp312-win32.pyd,sha256=
|
28
|
+
faster_eth_utils/humanize.cp312-win32.pyd,sha256=rGC0CzS_8-_GS7I2RoGdDcZ_mQ4pN2ZliJ8XRDIUSxA,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.cp312-win32.pyd,sha256=
|
31
|
+
faster_eth_utils/module_loading.cp312-win32.pyd,sha256=RY5e2c65UzKAjfAFsecVnE0DlHnieh3Np6Jzy5XZuYY,9216
|
32
32
|
faster_eth_utils/module_loading.py,sha256=gGZ0n4zezi2zxMRuEU0cf7EYW1lXpS_a1aPvP1KFkXA,873
|
33
|
-
faster_eth_utils/network.cp312-win32.pyd,sha256=
|
33
|
+
faster_eth_utils/network.cp312-win32.pyd,sha256=wfS-feg_sol2RhHeG8JoBbkbBL8lB30FbyMDLe9zSPY,9216
|
34
34
|
faster_eth_utils/network.py,sha256=MVyNw-DQGoaMvKXedWbOzESSfT2x5HPtsxaImWLhXd4,2370
|
35
|
-
faster_eth_utils/numeric.cp312-win32.pyd,sha256=
|
35
|
+
faster_eth_utils/numeric.cp312-win32.pyd,sha256=E8uBdtfkrDMuSGCnINkGHfZfmiIjEei8Lpuv4y71WQw,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.cp312-win32.pyd,sha256=
|
39
|
+
faster_eth_utils/toolz.cp312-win32.pyd,sha256=mg8OWjNa51YCo786C30U4bOfHWJR239oDv5JjX0YswM,9216
|
40
40
|
faster_eth_utils/toolz.py,sha256=P3s23LOEFRY6XQ8i_ChnA9hf-PSi-Oe-pv0jzsj7DjY,4494
|
41
|
-
faster_eth_utils/types.cp312-win32.pyd,sha256=
|
41
|
+
faster_eth_utils/types.cp312-win32.pyd,sha256=OHvX9rtEfPCbhx5ksBspSrKI_Hs2L279_Z4nB_RW_P0,9216
|
42
42
|
faster_eth_utils/types.py,sha256=93qhgOdd3t9oVYptsgddUV42LEbic80wfqpevLwrIWI,1587
|
43
|
-
faster_eth_utils/units.cp312-win32.pyd,sha256=
|
43
|
+
faster_eth_utils/units.cp312-win32.pyd,sha256=M6xv8w6MyLqPn9oJmpOz6Qj9KE-FXeQJJEJbTnb0XaY,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.
|
50
|
-
faster_eth_utils-5.3.
|
51
|
-
faster_eth_utils-5.3.
|
52
|
-
faster_eth_utils-5.3.
|
53
|
-
faster_eth_utils-5.3.
|
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=LwxTQZ0gyDP_uaeNCLm-ZIktY9hv6x0e22Q-hgFd-po,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
|
File without changes
|
File without changes
|
File without changes
|