taipanstack 0.2.4__py3-none-any.whl → 0.2.6__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.
@@ -234,7 +234,7 @@ def _timeout_with_signal(
234
234
  ) -> R:
235
235
  """Implement timeout using Unix signals."""
236
236
 
237
- def handler(signum: int, frame: Any) -> None:
237
+ def handler(_signum: int, _frame: Any) -> None:
238
238
  raise OperationTimeoutError(seconds, func.__name__)
239
239
 
240
240
  # Set up signal handler
@@ -87,6 +87,8 @@ def calculate_delay(
87
87
  delay = min(delay, config.max_delay)
88
88
 
89
89
  # Add jitter if enabled
90
+ # Note: Using random for jitter is intentionally non-cryptographic.
91
+ # Jitter is for load distribution, not security. Using secrets would be overkill.
90
92
  if config.jitter:
91
93
  jitter_amount = delay * config.jitter_factor
92
94
  delay += random.uniform(-jitter_amount, jitter_amount)
@@ -274,7 +276,7 @@ class Retrier:
274
276
  self,
275
277
  exc_type: type[Exception] | None,
276
278
  exc_val: Exception | None,
277
- exc_tb: Any,
279
+ _exc_tb: Any,
278
280
  ) -> bool:
279
281
  """Exit the retry context.
280
282
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taipanstack
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: TaipanStack - Modular, secure, and scalable Python stack for robust development
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -8,7 +8,7 @@ taipanstack/core/compat.py,sha256=k7a-VccKCZ2F1pw0Aj9gaZ3_4YnpibZ4c1e2dRjMxB0,10
8
8
  taipanstack/core/optimizations.py,sha256=rPcxavFwxelp8XEEoGfbUZpWmDpEYBWY6kBCbXZkzic,11511
9
9
  taipanstack/core/result.py,sha256=4_2pSduLKTbmw5_HGPMmrzWoZkCOCh20CvMqraEgtlI,4758
10
10
  taipanstack/security/__init__.py,sha256=FGsS2zyI3QWCekTtaZn3hog0TUeGClLqPo1qcEEMwTo,1191
11
- taipanstack/security/decorators.py,sha256=c3xpjwCpGZNIpGwCF-9vPFShAz6AzoVuhMTd49mKYVo,11024
11
+ taipanstack/security/decorators.py,sha256=JIo0nlZ_r87TKpSKJacyEI_67NHylKbB0FSTSYHHfmo,11026
12
12
  taipanstack/security/guards.py,sha256=JsTNBv-pG1LZ5XL9ApUXz02pCe2lSygRdz6NmMOVK4A,10115
13
13
  taipanstack/security/sanitizers.py,sha256=Njjvoi-fURcJ-yAW7AO3SmlZCVXEzsRg7-O8ACbgSFQ,8302
14
14
  taipanstack/security/validators.py,sha256=E3jRhV23Hn9YgVcqqYshOX_WA4NwW_bdLap3v1PbSSA,8808
@@ -17,9 +17,9 @@ taipanstack/utils/circuit_breaker.py,sha256=4sWXHmDfhOU3vWfJo3-RVtVPMwybEkezAR4-
17
17
  taipanstack/utils/filesystem.py,sha256=vjl7cFWDoTf5XZNoxCHpaGe72pY0Lulo_NsaWfA621A,10792
18
18
  taipanstack/utils/logging.py,sha256=8-N_xgYfl1tgM93rYjtJLyT0OPYFDONJW-EnHRLp2so,8966
19
19
  taipanstack/utils/metrics.py,sha256=ZjyTePtHJ-Sj7FuSsebODDQG1fi7knmOcCicHQ5vNMw,7851
20
- taipanstack/utils/retry.py,sha256=gW7K0KLD8KH1Dz8lEwDgdSp_sDRstw9dfrA7nGFB8sU,8697
20
+ taipanstack/utils/retry.py,sha256=PnYMnD6n9mboKOdiAVU8uFaE8W4vpJcHVTohRua7QmY,8856
21
21
  taipanstack/utils/subprocess.py,sha256=Ll0Mo2La2JOZvG60LgkU8uCcmH9NqEBrHWzY9NCi2Og,8765
22
- taipanstack-0.2.4.dist-info/METADATA,sha256=VJRgNU0vxvuUHNOL0HWurmDyfEc6FZLAuBZ6813bW3Q,10285
23
- taipanstack-0.2.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
24
- taipanstack-0.2.4.dist-info/licenses/LICENSE,sha256=O3qm8VBmhhebtRAD3T8W4QBxgLLGEEI6vl4faNCi9ws,1069
25
- taipanstack-0.2.4.dist-info/RECORD,,
22
+ taipanstack-0.2.6.dist-info/METADATA,sha256=pBgKFYDNjwiaDF_g5TWj8OfFcYlN70EUd9HCNWAgFno,10285
23
+ taipanstack-0.2.6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
24
+ taipanstack-0.2.6.dist-info/licenses/LICENSE,sha256=O3qm8VBmhhebtRAD3T8W4QBxgLLGEEI6vl4faNCi9ws,1069
25
+ taipanstack-0.2.6.dist-info/RECORD,,