faster-eth-utils 5.3.12__tar.gz → 5.3.13__tar.gz
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.
- {faster_eth_utils-5.3.12/faster_eth_utils.egg-info → faster_eth_utils-5.3.13}/PKG-INFO +8 -2
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/applicators.py +6 -9
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13/faster_eth_utils.egg-info}/PKG-INFO +8 -2
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/pyproject.toml +1 -1
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/setup.py +9 -2
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/LICENSE +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/MANIFEST.in +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/README.md +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__init__.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__json/eth_networks.json +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__main__.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/abi.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/address.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/conversions.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/crypto.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/currency.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/curried/__init__.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/debug.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/decorators.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/encoding.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/exceptions.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/functional.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/hexadecimal.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/humanize.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/logging.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/module_loading.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/network.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/numeric.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/py.typed +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/pydantic.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/toolz.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/types.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/typing/__init__.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/typing/misc.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/units.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/SOURCES.txt +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/dependency_links.txt +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/not-zip-safe +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/requires.txt +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/top_level.txt +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/compare_benchmark_results.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/generate_benchmark_markdown.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/parse_benchmark_output.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/release/test_package.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/setup.cfg +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/abi-utils/test_abi_utils.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/address-utils/test_address_utils.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/applicator-utils/test_applicators.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/conversion-utils/test_conversions.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/currency-utils/test_currency_tools.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/currency-utils/test_denoms_obj.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/curried-utils/test_curried.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/decorator-utils/test_combomethod.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/decorator-utils/test_replace_exceptions.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/encoding-utils/test_big_endian_integer.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/functional-utils/test_return_value_decorators.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/functional-utils/test_type_inference.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_0x_prefix_addition_and_removal.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_0x_prefixed.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_hex.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_hexstr.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_bytes.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_hash.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_hexstr.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_integer_sequence.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_ipfs_uri.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_seconds.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_wei.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_DEBUG2_logging.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_compat_with_abc_ABC.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_get_logger.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_has_logger_metaclass.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/module-loading-utils/test_import_string.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/network-utils/test_network_utils.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/numeric-utils/test_clamp.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/pydantic-utils/test_camel_model.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/test_import_and_version.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/type-checks/mypy_typing_of_curried_utils.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/type-checks/mypy_typing_of_functional_utils.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/type-checks/mypy_typing_of_has_logger.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/types-utils/test_types_utils.py +0 -0
- {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/mypy/abi_types.py +0 -0
|
@@ -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
|
|
@@ -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,
|
|
141
|
+
def get_value(key: Any, val: Any) -> Any:
|
|
142
142
|
if key not in formatters:
|
|
143
|
-
return
|
|
143
|
+
return val
|
|
144
144
|
try:
|
|
145
|
-
return formatters[key](
|
|
145
|
+
return formatters[key](val)
|
|
146
146
|
except ValueError as exc:
|
|
147
147
|
raise ValueError(
|
|
148
|
-
f"Could not format invalid value {
|
|
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 {
|
|
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.
|
|
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
|
|
@@ -95,7 +95,7 @@ with open("./README.md") as readme:
|
|
|
95
95
|
setup(
|
|
96
96
|
name="faster-eth-utils",
|
|
97
97
|
# *IMPORTANT*: Don't manually change the version here. Use `make bump`, as described in readme
|
|
98
|
-
version="5.3.
|
|
98
|
+
version="5.3.13",
|
|
99
99
|
description=(
|
|
100
100
|
"""A fork of eth-utils: Common utility functions for python code that interacts with Ethereum, implemented in C"""
|
|
101
101
|
),
|
|
@@ -103,7 +103,14 @@ setup(
|
|
|
103
103
|
long_description_content_type="text/markdown",
|
|
104
104
|
author="The Ethereum Foundation",
|
|
105
105
|
author_email="snakecharmers@ethereum.org",
|
|
106
|
-
url="https://github.com/BobTheBuidler/eth-utils",
|
|
106
|
+
url="https://github.com/BobTheBuidler/faster-eth-utils",
|
|
107
|
+
project_urls={
|
|
108
|
+
"Documentation": "https://eth-utils.readthedocs.io/en/stable/",
|
|
109
|
+
"Release Notes": "https://github.com/BobTheBuidler/faster-eth-utils/releases",
|
|
110
|
+
"Issues": "https://github.com/BobTheBuidler/faster-eth-utils/issues",
|
|
111
|
+
"Source": "https://github.com/BobTheBuidler/faster-eth-utils",
|
|
112
|
+
"Original": "https://github.com/ethereum/eth-utils",
|
|
113
|
+
},
|
|
107
114
|
include_package_data=True,
|
|
108
115
|
install_requires=[
|
|
109
116
|
"cchecksum>=0.0.3",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__json/eth_networks.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/compare_benchmark_results.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/generate_benchmark_markdown.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/parse_benchmark_output.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/address-utils/test_address_utils.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/applicator-utils/test_applicators.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/conversion-utils/test_conversions.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/currency-utils/test_currency_tools.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/currency-utils/test_denoms_obj.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/curried-utils/test_curried.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/decorator-utils/test_combomethod.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_hex.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_hexstr.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_bytes.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_hash.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_wei.py
RENAMED
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_DEBUG2_logging.py
RENAMED
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_get_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/network-utils/test_network_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/pydantic-utils/test_camel_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/types-utils/test_types_utils.py
RENAMED
|
File without changes
|
|
File without changes
|