trodo-python 2.18.1__py3-none-any.whl → 2.18.2__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.
trodo/__init__.py CHANGED
@@ -322,7 +322,7 @@ def reset(distinct_id: str) -> ResetResult:
322
322
  def get_prompt(
323
323
  name: str,
324
324
  label: Optional[str] = None,
325
- version: Optional[int] = None,
325
+ version: Optional[Union[int, str]] = None,
326
326
  cache_ttl_seconds: Optional[float] = None,
327
327
  fallback: Optional[Dict[str, Any]] = None,
328
328
  max_retries: int = 2,
@@ -330,7 +330,9 @@ def get_prompt(
330
330
  """Fetch a managed prompt by name.
331
331
 
332
332
  Follows the ``production`` label by default; pass ``label`` for a different
333
- one or ``version`` to pin exactly.
333
+ one or ``version`` to pin exactly. ``version`` may be the integer
334
+ ``version_no`` or a ``version_hash`` (full, or an unambiguous short prefix
335
+ like ``a3f9c2``) — the hash is the stable identity, so prefer it.
334
336
 
335
337
  Cached for 60s with stale-while-revalidate, so a Trodo outage degrades
336
338
  instead of taking your app down. Pass ``fallback`` to cover cold start::
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trodo-python
3
- Version: 2.18.1
3
+ Version: 2.18.2
4
4
  Summary: Trodo Analytics SDK for Python — server-side event tracking
5
5
  License: ISC
6
6
  Keywords: analytics,tracking,trodo,server-side
@@ -1,4 +1,4 @@
1
- trodo/__init__.py,sha256=ZDRoY4LQW3mIN0G7YmfdF_KGoYwUBWIY-T7Dji-7-yQ,26734
1
+ trodo/__init__.py,sha256=LxN-qzeCDU_SpYs0gsZQxvdj5PuWd8cOBUqYGk9viLc,26928
2
2
  trodo/client.py,sha256=9UYaHZtWPMYdlG2xWVf77PQJ9DfFgN-zobTh60i8_Cc,22453
3
3
  trodo/types.py,sha256=eySgUvCXROG2TxtxgiU0MNr5iH0DEcduK8bmYtTKG44,3138
4
4
  trodo/user_context.py,sha256=uHCI2WYoOI3cNwdIUEuZdX4VYSu14pzm348ksn6hn_c,8195
@@ -36,7 +36,7 @@ trodo/session/server_session.py,sha256=McsudEiq33XDq3nqxgzBcUvIjQxCMscwEuAPnYXrT
36
36
  trodo/session/session_manager.py,sha256=7ht5LeeZX1HLLfPeNV_a8NkXGbHl3up0CRtCGr3EzjQ,2995
37
37
  trodo/util/__init__.py,sha256=Z9c4rPPdKg06Kk3byKheDqksSgR4WNvS475oQ5sNljc,54
38
38
  trodo/util/lru.py,sha256=QIsM7s6J_E9ZjiXatSyReZIEeGypTAcgrPWWy8YsRa4,2465
39
- trodo_python-2.18.1.dist-info/METADATA,sha256=_pIbEb_guFZ6iH5xI0AyhiPuvVoGTlwgLVKsSqNub5E,25308
40
- trodo_python-2.18.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
41
- trodo_python-2.18.1.dist-info/top_level.txt,sha256=VCQu1CJWFmNsqTs1YxMcw4Mq35Tc3z3uI9RwHEXAayQ,6
42
- trodo_python-2.18.1.dist-info/RECORD,,
39
+ trodo_python-2.18.2.dist-info/METADATA,sha256=UnFh9i8kRSmo6JfdHcRWy7dYGm7vGW714FgDC_5ckM8,25308
40
+ trodo_python-2.18.2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
41
+ trodo_python-2.18.2.dist-info/top_level.txt,sha256=VCQu1CJWFmNsqTs1YxMcw4Mq35Tc3z3uI9RwHEXAayQ,6
42
+ trodo_python-2.18.2.dist-info/RECORD,,