tigerbeetle 0.16.34__py3-none-any.whl → 0.16.35__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 +8 -8
- tigerbeetle/lib/aarch64-linux-gnu.2.27/libtb_client.so +0 -0
- tigerbeetle/lib/aarch64-linux-musl/libtb_client.so +0 -0
- tigerbeetle/lib/aarch64-macos/libtb_client.dylib +0 -0
- tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so +0 -0
- tigerbeetle/lib/x86_64-linux-musl/libtb_client.so +0 -0
- tigerbeetle/lib/x86_64-macos/libtb_client.dylib +0 -0
- tigerbeetle/lib/x86_64-windows/tb_client.dll +0 -0
- {tigerbeetle-0.16.34.dist-info → tigerbeetle-0.16.35.dist-info}/METADATA +11 -10
- tigerbeetle-0.16.35.dist-info/RECORD +14 -0
- tigerbeetle-0.16.34.dist-info/RECORD +0 -14
- {tigerbeetle-0.16.34.dist-info → tigerbeetle-0.16.35.dist-info}/WHEEL +0 -0
tigerbeetle/bindings.py
CHANGED
|
@@ -14,15 +14,15 @@ from .lib import c_uint128, dataclass, tbclient, validate_uint
|
|
|
14
14
|
|
|
15
15
|
class Operation(enum.IntEnum):
|
|
16
16
|
PULSE = 128
|
|
17
|
-
CREATE_ACCOUNTS = 129
|
|
18
|
-
CREATE_TRANSFERS = 130
|
|
19
|
-
LOOKUP_ACCOUNTS = 131
|
|
20
|
-
LOOKUP_TRANSFERS = 132
|
|
21
|
-
GET_ACCOUNT_TRANSFERS = 133
|
|
22
|
-
GET_ACCOUNT_BALANCES = 134
|
|
23
|
-
QUERY_ACCOUNTS = 135
|
|
24
|
-
QUERY_TRANSFERS = 136
|
|
25
17
|
GET_EVENTS = 137
|
|
18
|
+
CREATE_ACCOUNTS = 138
|
|
19
|
+
CREATE_TRANSFERS = 139
|
|
20
|
+
LOOKUP_ACCOUNTS = 140
|
|
21
|
+
LOOKUP_TRANSFERS = 141
|
|
22
|
+
GET_ACCOUNT_TRANSFERS = 142
|
|
23
|
+
GET_ACCOUNT_BALANCES = 143
|
|
24
|
+
QUERY_ACCOUNTS = 144
|
|
25
|
+
QUERY_TRANSFERS = 145
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class PacketStatus(enum.IntEnum):
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tigerbeetle
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.35
|
|
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
|
|
@@ -364,9 +364,13 @@ from `client.create_transfers` with enum values in the
|
|
|
364
364
|
## Batching
|
|
365
365
|
|
|
366
366
|
TigerBeetle performance is maximized when you batch
|
|
367
|
-
API requests.
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
API requests.
|
|
368
|
+
A client instance shared across multiple threads/tasks can automatically
|
|
369
|
+
batch concurrent requests, but the application must still send as many events
|
|
370
|
+
as possible in a single call.
|
|
371
|
+
For example, if you insert 1 million transfers sequentially, one at a time,
|
|
372
|
+
the insert rate will be a *fraction* of the potential, because the client will
|
|
373
|
+
wait for a reply between each one.
|
|
370
374
|
|
|
371
375
|
```python
|
|
372
376
|
batch = [] # Array of transfer to create.
|
|
@@ -375,15 +379,12 @@ for transfer in batch:
|
|
|
375
379
|
# Error handling omitted.
|
|
376
380
|
```
|
|
377
381
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
The maximum batch size is set in the TigerBeetle server. The default
|
|
382
|
-
is 8190.
|
|
382
|
+
Instead, **always batch as much as you can**.
|
|
383
|
+
The maximum batch size is set in the TigerBeetle server. The default is 8189.
|
|
383
384
|
|
|
384
385
|
```python
|
|
385
386
|
batch = [] # Array of transfer to create.
|
|
386
|
-
BATCH_SIZE =
|
|
387
|
+
BATCH_SIZE = 8189 #FIXME
|
|
387
388
|
for i in range(0, len(batch), BATCH_SIZE):
|
|
388
389
|
transfer_errors = client.create_transfers(
|
|
389
390
|
batch[i:min(len(batch), i + BATCH_SIZE)],
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
tigerbeetle/__init__.py,sha256=3cmov0HPkByJw1znLKoTqIuZUEeEQMEg1fflWY3ty9A,168
|
|
2
|
+
tigerbeetle/bindings.py,sha256=SYdpVc8-8hk9SLoPFquNfh1qMNzPHOLtNWW1WOBN7UE,26427
|
|
3
|
+
tigerbeetle/client.py,sha256=oGg1vAFqI8UZ5awI3sshZfxUdBsroUKwgp2rUa75lFc,9255
|
|
4
|
+
tigerbeetle/lib.py,sha256=JKreDxdw_YejtH7F135_m6I6mNBSwjokaI6QicKm7cc,2425
|
|
5
|
+
tigerbeetle/lib/aarch64-linux-gnu.2.27/libtb_client.so,sha256=Xq7_roVSVZbX_rL43Vl0-_0AQSfaLygb2mnNJbs0TDI,3895112
|
|
6
|
+
tigerbeetle/lib/aarch64-linux-musl/libtb_client.so,sha256=LDuttBf_6LlDIRg6eeP1LXNdyzIRmEqSXK8hFSnalCM,3871848
|
|
7
|
+
tigerbeetle/lib/aarch64-macos/libtb_client.dylib,sha256=83go_p6gkJ4q25xP6D1ogq5yubk3bnZp3OZHLG08l54,537584
|
|
8
|
+
tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so,sha256=Rl1OXGxtqufcDKziu-uvGA8lFTQFxXDfhGxYjQivN4g,3836312
|
|
9
|
+
tigerbeetle/lib/x86_64-linux-musl/libtb_client.so,sha256=kDrt6WaoWJmyry_lAgiwfePx2SWYm2g6ahtZW3xSPuI,3833328
|
|
10
|
+
tigerbeetle/lib/x86_64-macos/libtb_client.dylib,sha256=MqKKJ30IZ2K0pdfMKxrj63n0Ff24q-8b1s6OGdkAwA4,749898
|
|
11
|
+
tigerbeetle/lib/x86_64-windows/tb_client.dll,sha256=mq0NWFZ1-xSkK3b5amD6A9jZSQdZJ5V5uArd_eIOgVs,834048
|
|
12
|
+
tigerbeetle-0.16.35.dist-info/METADATA,sha256=snSmYI8ndEiuhEg3tXodwM6PO2O6mZJuVsEgAPVTEQQ,23154
|
|
13
|
+
tigerbeetle-0.16.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
+
tigerbeetle-0.16.35.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
tigerbeetle/__init__.py,sha256=3cmov0HPkByJw1znLKoTqIuZUEeEQMEg1fflWY3ty9A,168
|
|
2
|
-
tigerbeetle/bindings.py,sha256=5P3tE0uIpho3gpgYH4upy3MaygY_d-GJoTWDVsTrrwo,26427
|
|
3
|
-
tigerbeetle/client.py,sha256=oGg1vAFqI8UZ5awI3sshZfxUdBsroUKwgp2rUa75lFc,9255
|
|
4
|
-
tigerbeetle/lib.py,sha256=JKreDxdw_YejtH7F135_m6I6mNBSwjokaI6QicKm7cc,2425
|
|
5
|
-
tigerbeetle/lib/aarch64-linux-gnu.2.27/libtb_client.so,sha256=xAJIjoxegbX-h6KB5WVLyBFfjfdNqjZD2woXHzAfKSc,3930424
|
|
6
|
-
tigerbeetle/lib/aarch64-linux-musl/libtb_client.so,sha256=NUKIzNq7xAzCjwF0i5_JEfxM-HPWwikdhLF69kisxWM,3907128
|
|
7
|
-
tigerbeetle/lib/aarch64-macos/libtb_client.dylib,sha256=OpkKf-XgSjQiFYFE3UkaJXQB37Adpo6GMCeyz_jKSuY,535760
|
|
8
|
-
tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so,sha256=_sMlfpnl5dr_ptwhekf45d1Z9blpmlrZiobxkmM8F6M,3872760
|
|
9
|
-
tigerbeetle/lib/x86_64-linux-musl/libtb_client.so,sha256=ISlZSoCtVtc6Cw4lKx33M7v5fGuEEYRUCFgJ92FiTo8,3869784
|
|
10
|
-
tigerbeetle/lib/x86_64-macos/libtb_client.dylib,sha256=LIDDRYAlZBUiNNZxe7_9-MkRaanJ164WQNO30-Hk0hU,748101
|
|
11
|
-
tigerbeetle/lib/x86_64-windows/tb_client.dll,sha256=jdRlJJtRN_XVImNViW5wT6-GBqbPrBfqsiIRNyOg-pk,835072
|
|
12
|
-
tigerbeetle-0.16.34.dist-info/METADATA,sha256=_io3D7-FmhYOR09M3zVaDNdaEfe-276EjZ8nyk0n9kw,22961
|
|
13
|
-
tigerbeetle-0.16.34.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
-
tigerbeetle-0.16.34.dist-info/RECORD,,
|
|
File without changes
|