faster-eth-utils 5.3.11__cp310-cp310-musllinux_1_2_i686.whl → 5.3.13__cp310-cp310-musllinux_1_2_i686.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.

Potentially problematic release.


This version of faster-eth-utils might be problematic. Click here for more details.

@@ -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, item: Any) -> Any:
141
+ def get_value(key: Any, val: Any) -> Any:
141
142
  if key not in formatters:
142
- return item
143
+ return val
143
144
  try:
144
- return formatters[key](item)
145
+ return formatters[key](val)
145
146
  except ValueError as exc:
146
147
  raise ValueError(
147
- 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}"
148
149
  ) from exc
149
150
  except TypeError as exc:
150
151
  raise TypeError(
151
- 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}"
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: Dict[Any, Any]
180
+ key_mappings: Dict[Any, Any], value: Mapping[Any, Any]
183
181
  ) -> Dict[Any, Any]:
184
182
  key_conflicts = (
185
183
  set(value.keys())
@@ -1,11 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster-eth-utils
3
- Version: 5.3.11
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 on faster-eth-utils [master](https://github.com/BobTheBuidler/eth-utils/tree/master) branch.
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,4 +1,4 @@
1
- faster_eth_utils__mypyc.cpython-310-i386-linux-gnu.so,sha256=__XBucUXNTtg-etFdAh1mX_bNytPzhQLAbffzSxhScg,1405708
1
+ faster_eth_utils__mypyc.cpython-310-i386-linux-gnu.so,sha256=yAj4mnfaqgYO7sdNk9JCTGjMPKK6BNSKJmN4tbbYCC0,1405904
2
2
  faster_eth_utils/__init__.py,sha256=hW-A_fjyQ76crTKwuxxSbvNzvPfW27dSlzhtOkseymg,2762
3
3
  faster_eth_utils/__main__.py,sha256=mH37e49q7_A0-q1ymqkq1QyYABbQHVmXeuSKIBSahO8,86
4
4
  faster_eth_utils/abi.cpython-310-i386-linux-gnu.so,sha256=TYLQ-dFd79ddr5BQlvr-1Ydx-vNB4bESkpYmVwFZ1aY,16564
@@ -6,7 +6,7 @@ faster_eth_utils/abi.py,sha256=3pAqpKXMOcOLCD4uUUVfxBcM9H1K311dpd1Zj0Qi21g,26404
6
6
  faster_eth_utils/address.cpython-310-i386-linux-gnu.so,sha256=vPRag50IGaTgaIvmYw-q6pyBV-tqamEog9HCNAkafa4,16580
7
7
  faster_eth_utils/address.py,sha256=IIHlYuIz-F6-mAnRWdsD4uH5l56yVRFMokFQINao9lE,3680
8
8
  faster_eth_utils/applicators.cpython-310-i386-linux-gnu.so,sha256=3PrMagkpJ627FjPTgI3ZQ15kYU3qaTVlXLGJvA6F5oc,16596
9
- faster_eth_utils/applicators.py,sha256=LEffyul-ZdsAhNB7H7E6e-J4fXw7bUt0NxrkjZWMHkA,5833
9
+ faster_eth_utils/applicators.py,sha256=61XBoTjROcwRslkPyCExOOYb5v7FbVVIIOYfmwgJIBk,5774
10
10
  faster_eth_utils/conversions.cpython-310-i386-linux-gnu.so,sha256=lwjIaQHbgGxFB-eblqEgFRi91LXlleT2OQr0zLQiBuU,16596
11
11
  faster_eth_utils/conversions.py,sha256=t2TEe0WsffqOFDbyQcERTSbHJYpDBWHKd8XPArhLoEE,5665
12
12
  faster_eth_utils/crypto.cpython-310-i386-linux-gnu.so,sha256=OUnDcDqfO43zZW5Ka3NCdBLuGg5knJwbYj38axhLV0Q,16572
@@ -46,8 +46,8 @@ faster_eth_utils/__json/eth_networks.json,sha256=0S8HoWD6RTR6Hc0uQdQl2VHtopytIYl
46
46
  faster_eth_utils/curried/__init__.py,sha256=x_nPjvTwmXeEl5jV86RRUvudu6ks1kMUxZfbjNuGx8Y,7407
47
47
  faster_eth_utils/typing/__init__.py,sha256=84PxIxCvEHtBb-Ik6qnGvXH4alaWbamr_zDbtlbJh3A,325
48
48
  faster_eth_utils/typing/misc.py,sha256=4N5raYXFAeRGpmch6qgHrtYNCDxCJM5XtAAsJ1FSzzU,190
49
- faster_eth_utils-5.3.11.dist-info/METADATA,sha256=mWz6FEZ0Mh9sRbTKYAx0Lgohpb_fpXSIB6IzYmwd0GA,7788
50
- faster_eth_utils-5.3.11.dist-info/WHEEL,sha256=U4i16otdlfBhNVHGS7XHFbWxUW-DEunqf9S09fwcX-w,110
51
- faster_eth_utils-5.3.11.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
52
- faster_eth_utils-5.3.11.dist-info/RECORD,,
53
- faster_eth_utils-5.3.11.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095
49
+ faster_eth_utils-5.3.13.dist-info/METADATA,sha256=s6MKNWkp8Bo9yKciC5RajtnB6uiZCwTJmcvTVT2Ci9I,8197
50
+ faster_eth_utils-5.3.13.dist-info/WHEEL,sha256=U4i16otdlfBhNVHGS7XHFbWxUW-DEunqf9S09fwcX-w,110
51
+ faster_eth_utils-5.3.13.dist-info/top_level.txt,sha256=wTH6UCItCCvEEiJ9EiOrm0Kn4p4xhB7VdmmTHktoo9Y,51
52
+ faster_eth_utils-5.3.13.dist-info/RECORD,,
53
+ faster_eth_utils-5.3.13.dist-info/licenses/LICENSE,sha256=STqznQ6A8OeJylPrTA7dlsMtH0isQQybRlnDZOKGVrM,1095