tigerbeetle 0.16.16__py3-none-any.whl → 0.16.17__py3-none-any.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 tigerbeetle might be problematic. Click here for more details.

tigerbeetle/bindings.py CHANGED
@@ -615,14 +615,16 @@ OnCompletion = ctypes.CFUNCTYPE(None, ctypes.c_void_p, Client, ctypes.POINTER(CP
615
615
  # completes submitted packets by invoking the callback with the given context.
616
616
  tb_client_init = tbclient.tb_client_init
617
617
  tb_client_init.restype = Status
618
- tb_client_init.argtypes = [ctypes.POINTER(Client), c_uint128, ctypes.c_char_p,
619
- ctypes.c_uint32, ctypes.c_void_p, OnCompletion]
618
+ tb_client_init.argtypes = [ctypes.POINTER(Client), ctypes.POINTER(ctypes.c_uint8 * 16),
619
+ ctypes.c_char_p, ctypes.c_uint32, ctypes.c_void_p,
620
+ OnCompletion]
620
621
 
621
622
  # Initialize a new TigerBeetle client which echos back any data submitted.
622
623
  tb_client_init_echo = tbclient.tb_client_init_echo
623
624
  tb_client_init_echo.restype = Status
624
- tb_client_init.argtypes = [ctypes.POINTER(Client), c_uint128, ctypes.c_char_p,
625
- ctypes.c_uint32, ctypes.c_void_p, OnCompletion]
625
+ tb_client_init_echo.argtypes = [ctypes.POINTER(Client), ctypes.POINTER(ctypes.c_uint8 * 16),
626
+ ctypes.c_char_p, ctypes.c_uint32, ctypes.c_void_p,
627
+ OnCompletion]
626
628
 
627
629
  # Closes the client, causing any previously submitted packets to be completed with
628
630
  # `TB_PACKET_CLIENT_SHUTDOWN` before freeing any allocated client resources from init.
tigerbeetle/client.py CHANGED
@@ -11,7 +11,7 @@ from dataclasses import dataclass
11
11
  from typing import Any
12
12
 
13
13
  from . import bindings
14
- from .lib import tb_assert
14
+ from .lib import tb_assert, c_uint128
15
15
 
16
16
  logger = logging.getLogger("tigerbeetle")
17
17
 
@@ -93,7 +93,9 @@ class Client:
93
93
 
94
94
  init_status = bindings.tb_client_init(
95
95
  ctypes.byref(self._client),
96
- cluster_id,
96
+ ctypes.cast(
97
+ ctypes.byref(c_uint128.from_param(cluster_id)), ctypes.POINTER(ctypes.c_uint8 * 16)
98
+ ),
97
99
  replica_addresses.encode("ascii"),
98
100
  len(replica_addresses),
99
101
  self._client_key,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tigerbeetle
3
- Version: 0.16.16
3
+ Version: 0.16.17
4
4
  Summary: The TigerBeetle client for Python.
5
5
  Project-URL: Homepage, https://github.com/tigerbeetle/tigerbeetle
6
6
  Project-URL: Issues, https://github.com/tigerbeetle/tigerbeetle/issues
@@ -0,0 +1,14 @@
1
+ tigerbeetle/__init__.py,sha256=3B2UoTndlx7dViX1_TU4qM98pDzFjB6SujEsEdV4As8,149
2
+ tigerbeetle/bindings.py,sha256=TGVdrS-00_tVv-1EsbLx3FLYcSBqPn0tMvWNPJPx2oc,25789
3
+ tigerbeetle/client.py,sha256=eRrbTcAKN4n0mRvQNYn1i3C7-JNr-UHYiwLzIWvsyG0,7769
4
+ tigerbeetle/lib.py,sha256=JKreDxdw_YejtH7F135_m6I6mNBSwjokaI6QicKm7cc,2425
5
+ tigerbeetle/lib/aarch64-linux-gnu.2.27/libtb_client.so,sha256=9UECxzXVgN1nf-ooZnF6zdYCPQ2LCwQEQwKOt1G5zXE,3670776
6
+ tigerbeetle/lib/aarch64-linux-musl/libtb_client.so,sha256=cee7qh_3b9tIyWjPL0HhXTVid-sdt0QflXSDMCUNq4M,3647584
7
+ tigerbeetle/lib/aarch64-macos/libtb_client.dylib,sha256=t0uTPueUMPRbYbHJ7_AR74i52V6kfa3OBmhbd00NxbM,499600
8
+ tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so,sha256=JMqbIOjVJbZhob5v2iHbC4FmhpdxyA1RphecFuFAevs,3591208
9
+ tigerbeetle/lib/x86_64-linux-musl/libtb_client.so,sha256=ckX1bB8SmI_cNKzXSNBg59M4ZyH1MrRhQxIgHRk_Xo4,3588208
10
+ tigerbeetle/lib/x86_64-macos/libtb_client.dylib,sha256=Vm2OKbFZae1HznJ34tgbAMjQaeF-YSvZQevDBKePdoQ,711941
11
+ tigerbeetle/lib/x86_64-windows/tb_client.dll,sha256=vCx6Jjxb_jU3xldi-n_h6owO8eM4U8IKwh7ZJB1HntQ,816128
12
+ tigerbeetle-0.16.17.dist-info/METADATA,sha256=efsQTgwXtfa4SzxvjJAwM_nenqy5HMzzKo4VK-sFLWU,22836
13
+ tigerbeetle-0.16.17.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
14
+ tigerbeetle-0.16.17.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- tigerbeetle/__init__.py,sha256=3B2UoTndlx7dViX1_TU4qM98pDzFjB6SujEsEdV4As8,149
2
- tigerbeetle/bindings.py,sha256=82AbJjuXlVoQGaozuC2xzg0jri3dQhlcxvC_OfcFMMU,25668
3
- tigerbeetle/client.py,sha256=08heIBTQkdrcAOq5NcblILOmD-QZJwfjutLhKuoroeg,7642
4
- tigerbeetle/lib.py,sha256=JKreDxdw_YejtH7F135_m6I6mNBSwjokaI6QicKm7cc,2425
5
- tigerbeetle/lib/aarch64-linux-gnu.2.27/libtb_client.so,sha256=xQ-2R59ZqvgIi1ZI3GhRcKCgQFpKSo54CvTEmSZ5Zc4,2700896
6
- tigerbeetle/lib/aarch64-linux-musl/libtb_client.so,sha256=iXwZN7qncAKwNawwROMO_CoVPTB8CHMDjk3RlEK7um0,2763992
7
- tigerbeetle/lib/aarch64-macos/libtb_client.dylib,sha256=j9aeGernAmA-FWBrZEId0iPTKA_HJHN0oktcOewXHFk,356016
8
- tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so,sha256=ulE0o8xwTBUkrQvC2ewEWdl7IRiHdprhXs3aGm6HL8Y,2717704
9
- tigerbeetle/lib/x86_64-linux-musl/libtb_client.so,sha256=BMzRTcYBjyYkNvdN2KRKMsH8y6Q2vPYeQ-XJjhdNoi8,2714696
10
- tigerbeetle/lib/x86_64-macos/libtb_client.dylib,sha256=-K_MZSDg6Aize_qi-SWRF28ZmPGMUY5wg2jCLkDv4CA,548103
11
- tigerbeetle/lib/x86_64-windows/tb_client.dll,sha256=A45uxTByPT-TmGetrPU-Mi6wR1Pne6CI7EcmxxsIHTI,655872
12
- tigerbeetle-0.16.16.dist-info/METADATA,sha256=k5Y93IfYO5dEahmDZBTptIz6eZqzTLbhC9uQjwm-sJ8,22836
13
- tigerbeetle-0.16.16.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
14
- tigerbeetle-0.16.16.dist-info/RECORD,,