cchecksum 0.0.4__tar.gz → 0.0.5__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 cchecksum might be problematic. Click here for more details.

Files changed (42) hide show
  1. {cchecksum-0.0.4/cchecksum.egg-info → cchecksum-0.0.5}/PKG-INFO +9 -2
  2. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum/_checksum.c +6 -6
  3. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum/checksum.py +3 -2
  4. {cchecksum-0.0.4 → cchecksum-0.0.5/cchecksum.egg-info}/PKG-INFO +9 -2
  5. {cchecksum-0.0.4 → cchecksum-0.0.5}/.github/workflows/black.yaml +0 -0
  6. {cchecksum-0.0.4 → cchecksum-0.0.5}/.github/workflows/deploy-docs.yaml +0 -0
  7. {cchecksum-0.0.4 → cchecksum-0.0.5}/.github/workflows/pytest.yaml +0 -0
  8. {cchecksum-0.0.4 → cchecksum-0.0.5}/.github/workflows/release.yaml +0 -0
  9. {cchecksum-0.0.4 → cchecksum-0.0.5}/.gitignore +0 -0
  10. {cchecksum-0.0.4 → cchecksum-0.0.5}/LICENSE +0 -0
  11. {cchecksum-0.0.4 → cchecksum-0.0.5}/Makefile +0 -0
  12. {cchecksum-0.0.4 → cchecksum-0.0.5}/README.md +0 -0
  13. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum/__init__.py +0 -0
  14. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum/_cchecksum.pyi +0 -0
  15. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum/_checksum.pyx +0 -0
  16. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum/py.typed +0 -0
  17. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum.egg-info/SOURCES.txt +0 -0
  18. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum.egg-info/dependency_links.txt +0 -0
  19. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum.egg-info/not-zip-safe +0 -0
  20. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum.egg-info/requires.txt +0 -0
  21. {cchecksum-0.0.4 → cchecksum-0.0.5}/cchecksum.egg-info/top_level.txt +0 -0
  22. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/Makefile +0 -0
  23. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/alabaster.css +0 -0
  24. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/basic.css +0 -0
  25. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/custom.css +0 -0
  26. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/doctools.js +0 -0
  27. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/documentation_options.js +0 -0
  28. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/file.png +0 -0
  29. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/language_data.js +0 -0
  30. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/minus.png +0 -0
  31. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/plus.png +0 -0
  32. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/pygments.css +0 -0
  33. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/searchtools.js +0 -0
  34. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/_build/html/_static/sphinx_highlight.js +0 -0
  35. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/conf.py +0 -0
  36. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/index.rst +0 -0
  37. {cchecksum-0.0.4 → cchecksum-0.0.5}/docs/make.bat +0 -0
  38. {cchecksum-0.0.4 → cchecksum-0.0.5}/pyproject.toml +0 -0
  39. {cchecksum-0.0.4 → cchecksum-0.0.5}/requirements.txt +0 -0
  40. {cchecksum-0.0.4 → cchecksum-0.0.5}/setup.cfg +0 -0
  41. {cchecksum-0.0.4 → cchecksum-0.0.5}/setup.py +0 -0
  42. {cchecksum-0.0.4 → cchecksum-0.0.5}/test_checksum.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: cchecksum
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: A ~2x faster drop-in replacement for eth_utils.to_checksum_address. Raises the exact same Exceptions. Implemented in C.
5
5
  Home-page: https://github.com/BobTheBuidler/cchecksum
6
6
  Author: BobTheBuidler
@@ -11,3 +11,10 @@ License-File: LICENSE
11
11
  Requires-Dist: eth-typing
12
12
  Requires-Dist: eth-utils
13
13
  Requires-Dist: pysha3<2.0.0,>=1.0.0; python_version < "3.9"
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: home-page
17
+ Dynamic: license
18
+ Dynamic: requires-dist
19
+ Dynamic: requires-python
20
+ Dynamic: summary
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.0.11 */
1
+ /* Generated by Cython 3.0.12 */
2
2
 
3
3
  /* BEGIN: Cython Metadata
4
4
  {
@@ -36,10 +36,10 @@ END: Cython Metadata */
36
36
  #else
37
37
  #define __PYX_EXTRA_ABI_MODULE_NAME ""
38
38
  #endif
39
- #define CYTHON_ABI "3_0_11" __PYX_EXTRA_ABI_MODULE_NAME
39
+ #define CYTHON_ABI "3_0_12" __PYX_EXTRA_ABI_MODULE_NAME
40
40
  #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
41
41
  #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
42
- #define CYTHON_HEX_VERSION 0x03000BF0
42
+ #define CYTHON_HEX_VERSION 0x03000CF0
43
43
  #define CYTHON_FUTURE_DIVISION 1
44
44
  #include <stddef.h>
45
45
  #ifndef offsetof
@@ -1935,7 +1935,7 @@ static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1935
1935
  #include "compile.h"
1936
1936
  #include "frameobject.h"
1937
1937
  #include "traceback.h"
1938
- #if PY_VERSION_HEX >= 0x030b00a6
1938
+ #if PY_VERSION_HEX >= 0x030b00a6 && !defined(PYPY_VERSION)
1939
1939
  #ifndef Py_BUILD_CORE
1940
1940
  #define Py_BUILD_CORE 1
1941
1941
  #endif
@@ -2279,7 +2279,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
2279
2279
  #if !CYTHON_VECTORCALL
2280
2280
  #if PY_VERSION_HEX >= 0x03080000
2281
2281
  #include "frameobject.h"
2282
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
2282
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
2283
2283
  #ifndef Py_BUILD_CORE
2284
2284
  #define Py_BUILD_CORE 1
2285
2285
  #endif
@@ -25253,7 +25253,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
25253
25253
  #include "compile.h"
25254
25254
  #include "frameobject.h"
25255
25255
  #include "traceback.h"
25256
- #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API
25256
+ #if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
25257
25257
  #ifndef Py_BUILD_CORE
25258
25258
  #define Py_BUILD_CORE 1
25259
25259
  #endif
@@ -1,8 +1,9 @@
1
1
  import binascii
2
2
  from typing import Union
3
3
 
4
+ from eth_hash.auto import keccak
4
5
  from eth_typing import AnyAddress, ChecksumAddress, HexAddress
5
- from eth_utils import hexstr_if_str, keccak, to_hex
6
+ from eth_utils import hexstr_if_str, to_hex
6
7
  from eth_utils.address import _HEX_ADDRESS_REGEXP
7
8
 
8
9
  from cchecksum._checksum import cchecksum
@@ -39,7 +40,7 @@ def to_checksum_address(value: Union[AnyAddress, str, bytes]) -> ChecksumAddress
39
40
  - :func:`to_normalized_address` for converting to a normalized address before checksumming.
40
41
  """
41
42
  norm_address_no_0x = to_normalized_address(value)[2:]
42
- address_hash = keccak(text=norm_address_no_0x)
43
+ address_hash = bytes(keccak(norm_address_no_0x.encode("utf-8")))
43
44
  address_hash_hex_no_0x = binascii.hexlify(address_hash).decode("ascii")
44
45
  return cchecksum(norm_address_no_0x, address_hash_hex_no_0x)
45
46
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: cchecksum
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: A ~2x faster drop-in replacement for eth_utils.to_checksum_address. Raises the exact same Exceptions. Implemented in C.
5
5
  Home-page: https://github.com/BobTheBuidler/cchecksum
6
6
  Author: BobTheBuidler
@@ -11,3 +11,10 @@ License-File: LICENSE
11
11
  Requires-Dist: eth-typing
12
12
  Requires-Dist: eth-utils
13
13
  Requires-Dist: pysha3<2.0.0,>=1.0.0; python_version < "3.9"
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: home-page
17
+ Dynamic: license
18
+ Dynamic: requires-dist
19
+ Dynamic: requires-python
20
+ Dynamic: summary
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