tigerbeetle 0.16.34__py3-none-any.whl → 0.16.36__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
@@ -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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tigerbeetle
3
- Version: 0.16.34
3
+ Version: 0.16.36
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. The client does not do this automatically for
368
- you. So, for example, you *can* insert 1 million transfers
369
- one at a time like so:
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
- But the insert rate will be a *fraction* of
379
- potential. Instead, **always batch what you can**.
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 = 8190 #FIXME
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=EAm2K1-F946kOX6LxKQuL1X6WEdhVot0ad52dqIpYcI,3895152
6
+ tigerbeetle/lib/aarch64-linux-musl/libtb_client.so,sha256=aJnrVC6nHa9BtgkkjpBRFXtMoSM7CDuBi0YivHtXw8w,3871880
7
+ tigerbeetle/lib/aarch64-macos/libtb_client.dylib,sha256=xB0-KiM6yncXenQg1G9FO06x93DVXAfyk7mUFBv0yK4,537584
8
+ tigerbeetle/lib/x86_64-linux-gnu.2.27/libtb_client.so,sha256=x9fv5jnWSDjiFEiLqt07yMRqRfFvjwJ9grYPXvNvcVI,3836352
9
+ tigerbeetle/lib/x86_64-linux-musl/libtb_client.so,sha256=Fds8ZOUzR5MFXzkoIE1Xv-h6A4n-wG7_BLfrTOTTZF0,3833352
10
+ tigerbeetle/lib/x86_64-macos/libtb_client.dylib,sha256=8fi6J4769ipFn0mFo_gErjAV1htQO6pktFiUWEQCTBo,749902
11
+ tigerbeetle/lib/x86_64-windows/tb_client.dll,sha256=H65tn7km9Asn8Ps_CHdnC3v5DWHPrSh1KeP3rWXqa9g,834048
12
+ tigerbeetle-0.16.36.dist-info/METADATA,sha256=OjWTTC6VbeUgCeh3w-N6lzv2XBBPsby3VxIZtiNws18,23154
13
+ tigerbeetle-0.16.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ tigerbeetle-0.16.36.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,,