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.

Files changed (82) hide show
  1. {faster_eth_utils-5.3.12/faster_eth_utils.egg-info → faster_eth_utils-5.3.13}/PKG-INFO +8 -2
  2. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/applicators.py +6 -9
  3. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13/faster_eth_utils.egg-info}/PKG-INFO +8 -2
  4. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/pyproject.toml +1 -1
  5. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/setup.py +9 -2
  6. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/LICENSE +0 -0
  7. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/MANIFEST.in +0 -0
  8. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/README.md +0 -0
  9. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__init__.py +0 -0
  10. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__json/eth_networks.json +0 -0
  11. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/__main__.py +0 -0
  12. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/abi.py +0 -0
  13. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/address.py +0 -0
  14. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/conversions.py +0 -0
  15. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/crypto.py +0 -0
  16. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/currency.py +0 -0
  17. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/curried/__init__.py +0 -0
  18. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/debug.py +0 -0
  19. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/decorators.py +0 -0
  20. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/encoding.py +0 -0
  21. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/exceptions.py +0 -0
  22. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/functional.py +0 -0
  23. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/hexadecimal.py +0 -0
  24. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/humanize.py +0 -0
  25. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/logging.py +0 -0
  26. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/module_loading.py +0 -0
  27. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/network.py +0 -0
  28. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/numeric.py +0 -0
  29. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/py.typed +0 -0
  30. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/pydantic.py +0 -0
  31. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/toolz.py +0 -0
  32. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/types.py +0 -0
  33. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/typing/__init__.py +0 -0
  34. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/typing/misc.py +0 -0
  35. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils/units.py +0 -0
  36. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/SOURCES.txt +0 -0
  37. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/dependency_links.txt +0 -0
  38. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/not-zip-safe +0 -0
  39. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/requires.txt +0 -0
  40. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/faster_eth_utils.egg-info/top_level.txt +0 -0
  41. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/compare_benchmark_results.py +0 -0
  42. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/generate_benchmark_markdown.py +0 -0
  43. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/benchmark/parse_benchmark_output.py +0 -0
  44. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/scripts/release/test_package.py +0 -0
  45. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/setup.cfg +0 -0
  46. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/abi-utils/test_abi_utils.py +0 -0
  47. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/address-utils/test_address_utils.py +0 -0
  48. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/applicator-utils/test_applicators.py +0 -0
  49. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/conversion-utils/test_conversions.py +0 -0
  50. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/currency-utils/test_currency_tools.py +0 -0
  51. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/currency-utils/test_denoms_obj.py +0 -0
  52. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/curried-utils/test_curried.py +0 -0
  53. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/decorator-utils/test_combomethod.py +0 -0
  54. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/decorator-utils/test_replace_exceptions.py +0 -0
  55. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/encoding-utils/test_big_endian_integer.py +0 -0
  56. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/functional-utils/test_return_value_decorators.py +0 -0
  57. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/functional-utils/test_type_inference.py +0 -0
  58. {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
  59. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_0x_prefixed.py +0 -0
  60. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_hex.py +0 -0
  61. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/hexadecimal-utils/test_is_hexstr.py +0 -0
  62. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_bytes.py +0 -0
  63. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_hash.py +0 -0
  64. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_hexstr.py +0 -0
  65. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_integer_sequence.py +0 -0
  66. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_ipfs_uri.py +0 -0
  67. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_seconds.py +0 -0
  68. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/humanize-utils/test_humanize_wei.py +0 -0
  69. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_DEBUG2_logging.py +0 -0
  70. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_compat_with_abc_ABC.py +0 -0
  71. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_get_logger.py +0 -0
  72. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/logging-utils/test_has_logger_metaclass.py +0 -0
  73. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/module-loading-utils/test_import_string.py +0 -0
  74. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/network-utils/test_network_utils.py +0 -0
  75. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/numeric-utils/test_clamp.py +0 -0
  76. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/pydantic-utils/test_camel_model.py +0 -0
  77. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/test_import_and_version.py +0 -0
  78. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/type-checks/mypy_typing_of_curried_utils.py +0 -0
  79. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/type-checks/mypy_typing_of_functional_utils.py +0 -0
  80. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/type-checks/mypy_typing_of_has_logger.py +0 -0
  81. {faster_eth_utils-5.3.12 → faster_eth_utils-5.3.13}/tests/core/types-utils/test_types_utils.py +0 -0
  82. {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.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
@@ -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
@@ -139,7 +139,7 @@ name = "Removals"
139
139
  showcontent = true
140
140
 
141
141
  [tool.bumpversion]
142
- current_version = "5.3.12"
142
+ current_version = "5.3.13"
143
143
  parse = """
144
144
  (?P<major>\\d+)
145
145
  \\.(?P<minor>\\d+)
@@ -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.12",
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",