tigerbeetle 0.16.16__py3-none-any.whl → 0.16.18__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
@@ -28,9 +28,11 @@ class PacketStatus(enum.IntEnum):
28
28
  OK = 0
29
29
  TOO_MUCH_DATA = 1
30
30
  CLIENT_EVICTED = 2
31
- CLIENT_SHUTDOWN = 3
32
- INVALID_OPERATION = 4
33
- INVALID_DATA_SIZE = 5
31
+ CLIENT_RELEASE_TOO_LOW = 3
32
+ CLIENT_RELEASE_TOO_HIGH = 4
33
+ CLIENT_SHUTDOWN = 5
34
+ INVALID_OPERATION = 6
35
+ INVALID_DATA_SIZE = 7
34
36
 
35
37
 
36
38
  Client = ctypes.c_void_p
@@ -615,14 +617,16 @@ OnCompletion = ctypes.CFUNCTYPE(None, ctypes.c_void_p, Client, ctypes.POINTER(CP
615
617
  # completes submitted packets by invoking the callback with the given context.
616
618
  tb_client_init = tbclient.tb_client_init
617
619
  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]
620
+ tb_client_init.argtypes = [ctypes.POINTER(Client), ctypes.POINTER(ctypes.c_uint8 * 16),
621
+ ctypes.c_char_p, ctypes.c_uint32, ctypes.c_void_p,
622
+ OnCompletion]
620
623
 
621
624
  # Initialize a new TigerBeetle client which echos back any data submitted.
622
625
  tb_client_init_echo = tbclient.tb_client_init_echo
623
626
  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]
627
+ tb_client_init_echo.argtypes = [ctypes.POINTER(Client), ctypes.POINTER(ctypes.c_uint8 * 16),
628
+ ctypes.c_char_p, ctypes.c_uint32, ctypes.c_void_p,
629
+ OnCompletion]
626
630
 
627
631
  # Closes the client, causing any previously submitted packets to be completed with
628
632
  # `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
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: tigerbeetle
3
- Version: 0.16.16
3
+ Version: 0.16.18
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=-pxQLQZyJUd8Ym3Gq9ssWb-zaSdFnG0_6XD6_BrXiaY,25852
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=AfQTo2OAEB2giVwBw-fd_Fp_IJa9GKwLAazOCIDTGtM,3676336
6
+ tigerbeetle/lib/aarch64-linux-musl/libtb_client.so,sha256=ePMRmEw7_iXw4uDPmWbxBSWXbzeUw4kivZYGGFkgM_g,3653136
7
+ tigerbeetle/lib/aarch64-macos/libtb_client.dylib,sha256=Je5BNXpQn1C8gKMwEtlBmeeb-Q_1TnA1PkT-NaypXs4,516336
8
+ tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so,sha256=PFigzsxo1wbCYi-7Rzwj7RYqhyRDiA5XfY8E-SvBGIo,3591608
9
+ tigerbeetle/lib/x86_64-linux-musl/libtb_client.so,sha256=WbwuthMOp6N_NIcOdNlnF0ZN672_gsWuXRfjJZ0bjRQ,3588648
10
+ tigerbeetle/lib/x86_64-macos/libtb_client.dylib,sha256=wDi4ved2vGtL2qAoyt9DJCdqrILGzIkhodT7dQh2nzY,716357
11
+ tigerbeetle/lib/x86_64-windows/tb_client.dll,sha256=YCtVxz0kevVRsD4zdInugVMFIAY-qevRRKtt3mrkOks,819712
12
+ tigerbeetle-0.16.18.dist-info/METADATA,sha256=6cIXmu3YRO2mDhwjrq4-pJ42hPHBb2DsclwIEr_0zWE,22836
13
+ tigerbeetle-0.16.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ tigerbeetle-0.16.18.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.26.3
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -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,,