cchecksum 0.2.1__tar.gz → 0.2.2__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 (41) hide show
  1. {cchecksum-0.2.1/cchecksum.egg-info → cchecksum-0.2.2}/PKG-INFO +1 -1
  2. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum/_checksum.c +12 -6
  3. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum/_checksum.pyx +1 -1
  4. {cchecksum-0.2.1 → cchecksum-0.2.2/cchecksum.egg-info}/PKG-INFO +1 -1
  5. {cchecksum-0.2.1 → cchecksum-0.2.2}/.github/workflows/black.yaml +0 -0
  6. {cchecksum-0.2.1 → cchecksum-0.2.2}/.github/workflows/deploy-docs.yaml +0 -0
  7. {cchecksum-0.2.1 → cchecksum-0.2.2}/.github/workflows/pytest.yaml +0 -0
  8. {cchecksum-0.2.1 → cchecksum-0.2.2}/.github/workflows/release.yaml +0 -0
  9. {cchecksum-0.2.1 → cchecksum-0.2.2}/.gitignore +0 -0
  10. {cchecksum-0.2.1 → cchecksum-0.2.2}/LICENSE +0 -0
  11. {cchecksum-0.2.1 → cchecksum-0.2.2}/Makefile +0 -0
  12. {cchecksum-0.2.1 → cchecksum-0.2.2}/README.md +0 -0
  13. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum/__init__.py +0 -0
  14. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum/_checksum.pyi +0 -0
  15. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum/py.typed +0 -0
  16. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum.egg-info/SOURCES.txt +0 -0
  17. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum.egg-info/dependency_links.txt +0 -0
  18. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum.egg-info/not-zip-safe +0 -0
  19. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum.egg-info/requires.txt +0 -0
  20. {cchecksum-0.2.1 → cchecksum-0.2.2}/cchecksum.egg-info/top_level.txt +0 -0
  21. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/Makefile +0 -0
  22. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/alabaster.css +0 -0
  23. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/basic.css +0 -0
  24. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/custom.css +0 -0
  25. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/doctools.js +0 -0
  26. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/documentation_options.js +0 -0
  27. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/file.png +0 -0
  28. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/language_data.js +0 -0
  29. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/minus.png +0 -0
  30. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/plus.png +0 -0
  31. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/pygments.css +0 -0
  32. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/searchtools.js +0 -0
  33. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/_build/html/_static/sphinx_highlight.js +0 -0
  34. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/conf.py +0 -0
  35. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/index.rst +0 -0
  36. {cchecksum-0.2.1 → cchecksum-0.2.2}/docs/make.bat +0 -0
  37. {cchecksum-0.2.1 → cchecksum-0.2.2}/pyproject.toml +0 -0
  38. {cchecksum-0.2.1 → cchecksum-0.2.2}/requirements.txt +0 -0
  39. {cchecksum-0.2.1 → cchecksum-0.2.2}/setup.cfg +0 -0
  40. {cchecksum-0.2.1 → cchecksum-0.2.2}/setup.py +0 -0
  41. {cchecksum-0.2.1 → cchecksum-0.2.2}/test_checksum.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cchecksum
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: A ~8x 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
@@ -2908,6 +2908,7 @@ static const char __pyx_k_step[] = "step";
2908
2908
  static const char __pyx_k_stop[] = "stop";
2909
2909
  static const char __pyx_k_test[] = "__test__";
2910
2910
  static const char __pyx_k_ASCII[] = "ASCII";
2911
+ static const char __pyx_k_ascii[] = "ascii";
2911
2912
  static const char __pyx_k_class[] = "__class__";
2912
2913
  static const char __pyx_k_count[] = "count";
2913
2914
  static const char __pyx_k_error[] = "error";
@@ -3152,6 +3153,7 @@ typedef struct {
3152
3153
  PyObject *__pyx_n_s_abc;
3153
3154
  PyObject *__pyx_n_s_allocate_buffer;
3154
3155
  PyObject *__pyx_kp_u_and;
3156
+ PyObject *__pyx_n_u_ascii;
3155
3157
  PyObject *__pyx_n_s_asyncio_coroutines;
3156
3158
  PyObject *__pyx_kp_u_attempted_to_normalize_to_0x;
3157
3159
  PyObject *__pyx_n_s_base;
@@ -3371,6 +3373,7 @@ static int __pyx_m_clear(PyObject *m) {
3371
3373
  Py_CLEAR(clear_module_state->__pyx_n_s_abc);
3372
3374
  Py_CLEAR(clear_module_state->__pyx_n_s_allocate_buffer);
3373
3375
  Py_CLEAR(clear_module_state->__pyx_kp_u_and);
3376
+ Py_CLEAR(clear_module_state->__pyx_n_u_ascii);
3374
3377
  Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines);
3375
3378
  Py_CLEAR(clear_module_state->__pyx_kp_u_attempted_to_normalize_to_0x);
3376
3379
  Py_CLEAR(clear_module_state->__pyx_n_s_base);
@@ -3568,6 +3571,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3568
3571
  Py_VISIT(traverse_module_state->__pyx_n_s_abc);
3569
3572
  Py_VISIT(traverse_module_state->__pyx_n_s_allocate_buffer);
3570
3573
  Py_VISIT(traverse_module_state->__pyx_kp_u_and);
3574
+ Py_VISIT(traverse_module_state->__pyx_n_u_ascii);
3571
3575
  Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines);
3572
3576
  Py_VISIT(traverse_module_state->__pyx_kp_u_attempted_to_normalize_to_0x);
3573
3577
  Py_VISIT(traverse_module_state->__pyx_n_s_base);
@@ -3775,6 +3779,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3775
3779
  #define __pyx_n_s_abc __pyx_mstate_global->__pyx_n_s_abc
3776
3780
  #define __pyx_n_s_allocate_buffer __pyx_mstate_global->__pyx_n_s_allocate_buffer
3777
3781
  #define __pyx_kp_u_and __pyx_mstate_global->__pyx_kp_u_and
3782
+ #define __pyx_n_u_ascii __pyx_mstate_global->__pyx_n_u_ascii
3778
3783
  #define __pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines
3779
3784
  #define __pyx_kp_u_attempted_to_normalize_to_0x __pyx_mstate_global->__pyx_kp_u_attempted_to_normalize_to_0x
3780
3785
  #define __pyx_n_s_base __pyx_mstate_global->__pyx_n_s_base
@@ -17908,7 +17913,7 @@ static PyObject *__pyx_f_9cchecksum_9_checksum_to_checksum_address(PyObject *__p
17908
17913
  * cdef unsigned char c
17909
17914
  *
17910
17915
  * if isinstance(value, str): # <<<<<<<<<<<<<<
17911
- * hex_address_no_0x = value.encode()
17916
+ * hex_address_no_0x = value.encode("ascii")
17912
17917
  * hex_address_no_0x = hex_address_no_0x.lower()
17913
17918
  */
17914
17919
  __pyx_t_1 = PyUnicode_Check(__pyx_v_value);
@@ -17917,7 +17922,7 @@ static PyObject *__pyx_f_9cchecksum_9_checksum_to_checksum_address(PyObject *__p
17917
17922
  /* "cchecksum/_checksum.pyx":56
17918
17923
  *
17919
17924
  * if isinstance(value, str):
17920
- * hex_address_no_0x = value.encode() # <<<<<<<<<<<<<<
17925
+ * hex_address_no_0x = value.encode("ascii") # <<<<<<<<<<<<<<
17921
17926
  * hex_address_no_0x = hex_address_no_0x.lower()
17922
17927
  *
17923
17928
  */
@@ -17938,8 +17943,8 @@ static PyObject *__pyx_f_9cchecksum_9_checksum_to_checksum_address(PyObject *__p
17938
17943
  }
17939
17944
  #endif
17940
17945
  {
17941
- PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
17942
- __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
17946
+ PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_n_u_ascii};
17947
+ __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
17943
17948
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
17944
17949
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error)
17945
17950
  __Pyx_GOTREF(__pyx_t_2);
@@ -17951,7 +17956,7 @@ static PyObject *__pyx_f_9cchecksum_9_checksum_to_checksum_address(PyObject *__p
17951
17956
 
17952
17957
  /* "cchecksum/_checksum.pyx":57
17953
17958
  * if isinstance(value, str):
17954
- * hex_address_no_0x = value.encode()
17959
+ * hex_address_no_0x = value.encode("ascii")
17955
17960
  * hex_address_no_0x = hex_address_no_0x.lower() # <<<<<<<<<<<<<<
17956
17961
  *
17957
17962
  * if hex_address_no_0x.startswith(b"0x"):
@@ -18289,7 +18294,7 @@ static PyObject *__pyx_f_9cchecksum_9_checksum_to_checksum_address(PyObject *__p
18289
18294
  * cdef unsigned char c
18290
18295
  *
18291
18296
  * if isinstance(value, str): # <<<<<<<<<<<<<<
18292
- * hex_address_no_0x = value.encode()
18297
+ * hex_address_no_0x = value.encode("ascii")
18293
18298
  * hex_address_no_0x = hex_address_no_0x.lower()
18294
18299
  */
18295
18300
  goto __pyx_L3;
@@ -22088,6 +22093,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
22088
22093
  {&__pyx_n_s_abc, __pyx_k_abc, sizeof(__pyx_k_abc), 0, 0, 1, 1},
22089
22094
  {&__pyx_n_s_allocate_buffer, __pyx_k_allocate_buffer, sizeof(__pyx_k_allocate_buffer), 0, 0, 1, 1},
22090
22095
  {&__pyx_kp_u_and, __pyx_k_and, sizeof(__pyx_k_and), 0, 1, 0, 0},
22096
+ {&__pyx_n_u_ascii, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 1, 0, 1},
22091
22097
  {&__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1},
22092
22098
  {&__pyx_kp_u_attempted_to_normalize_to_0x, __pyx_k_attempted_to_normalize_to_0x, sizeof(__pyx_k_attempted_to_normalize_to_0x), 0, 1, 0, 0},
22093
22099
  {&__pyx_n_s_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 0, 1, 1},
@@ -53,7 +53,7 @@ cpdef unicode to_checksum_address(value: Union[AnyAddress, str, bytes]):
53
53
  cdef unsigned char c
54
54
 
55
55
  if isinstance(value, str):
56
- hex_address_no_0x = value.encode()
56
+ hex_address_no_0x = value.encode("ascii")
57
57
  hex_address_no_0x = hex_address_no_0x.lower()
58
58
 
59
59
  if hex_address_no_0x.startswith(b"0x"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cchecksum
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: A ~8x 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
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