python-wrap 0.2.1__py3-none-any.whl → 0.4.0__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.
Files changed (88) hide show
  1. python_wrap/__init__.py +348 -1
  2. python_wrap/__main__.py +57 -0
  3. python_wrap/_backend.py +133 -0
  4. python_wrap/_buckets.py +162 -0
  5. python_wrap/_core.py +12 -3
  6. python_wrap/_data/agent_guide.md +103 -0
  7. python_wrap/_data/recipes.json +703 -0
  8. python_wrap/_fork.py +113 -0
  9. python_wrap/_integration.py +29 -0
  10. python_wrap/_runtime.py +157 -0
  11. python_wrap/adapters/__init__.py +101 -0
  12. python_wrap/adapters/_frameworks.py +251 -0
  13. python_wrap/adapters/_sdk.py +1978 -0
  14. python_wrap/adapters/anthropic.py +139 -0
  15. python_wrap/adapters/langchain.py +288 -0
  16. python_wrap/adapters/openai.py +169 -0
  17. python_wrap/adapters/openai_agents.py +468 -0
  18. python_wrap/adapters/pydantic_ai.py +459 -0
  19. python_wrap/adaptive.py +605 -0
  20. python_wrap/agents.py +2503 -0
  21. python_wrap/alerts.py +293 -0
  22. python_wrap/async_cache.py +745 -0
  23. python_wrap/batching.py +17 -4
  24. python_wrap/buffering.py +952 -0
  25. python_wrap/bulkhead.py +58 -6
  26. python_wrap/caching.py +425 -56
  27. python_wrap/celery.py +528 -0
  28. python_wrap/chaos.py +519 -0
  29. python_wrap/circuit.py +454 -23
  30. python_wrap/compat.py +267 -0
  31. python_wrap/concurrency.py +82 -1746
  32. python_wrap/config.py +25 -4
  33. python_wrap/coordination.py +638 -0
  34. python_wrap/credentials.py +126 -0
  35. python_wrap/dashboard.py +358 -0
  36. python_wrap/debounce.py +538 -0
  37. python_wrap/django.py +100 -0
  38. python_wrap/doctor.py +599 -0
  39. python_wrap/events.py +145 -4
  40. python_wrap/exporters.py +663 -0
  41. python_wrap/fastapi.py +81 -0
  42. python_wrap/flask.py +61 -0
  43. python_wrap/genai.py +1101 -0
  44. python_wrap/health.py +187 -0
  45. python_wrap/http.py +940 -0
  46. python_wrap/idempotency.py +446 -0
  47. python_wrap/introspect.py +738 -0
  48. python_wrap/lifecycle.py +620 -0
  49. python_wrap/llm.py +2574 -0
  50. python_wrap/llm_cassette.py +948 -0
  51. python_wrap/llm_http_chaos.py +326 -0
  52. python_wrap/llm_shared.py +772 -0
  53. python_wrap/llm_testing.py +990 -0
  54. python_wrap/llm_validate.py +383 -0
  55. python_wrap/local_state.py +395 -0
  56. python_wrap/logs.py +82 -26
  57. python_wrap/mcp.py +490 -0
  58. python_wrap/mcp_guard.py +357 -0
  59. python_wrap/metrics.py +6 -3
  60. python_wrap/migrate.py +1452 -0
  61. python_wrap/observability.py +484 -0
  62. python_wrap/periodic.py +24 -2
  63. python_wrap/policies.py +396 -0
  64. python_wrap/policy.py +14 -0
  65. python_wrap/predicates.py +276 -0
  66. python_wrap/presets.py +378 -0
  67. python_wrap/processing.py +227 -0
  68. python_wrap/propagation.py +62 -0
  69. python_wrap/pytest_plugin.py +85 -0
  70. python_wrap/quotas.py +319 -0
  71. python_wrap/ratelimit.py +560 -0
  72. python_wrap/redaction.py +228 -0
  73. python_wrap/retry.py +448 -70
  74. python_wrap/shared.py +653 -0
  75. python_wrap/singleflight.py +255 -0
  76. python_wrap/slow.py +72 -0
  77. python_wrap/stores.py +168 -0
  78. python_wrap/switches.py +164 -0
  79. python_wrap/testing.py +34 -8
  80. python_wrap/timeouts.py +874 -0
  81. python_wrap/timing.py +239 -17
  82. python_wrap/validation.py +187 -12
  83. python_wrap/web.py +723 -0
  84. {python_wrap-0.2.1.dist-info → python_wrap-0.4.0.dist-info}/METADATA +117 -7
  85. python_wrap-0.4.0.dist-info/RECORD +95 -0
  86. python_wrap-0.2.1.dist-info/RECORD +0 -29
  87. {python_wrap-0.2.1.dist-info → python_wrap-0.4.0.dist-info}/WHEEL +0 -0
  88. {python_wrap-0.2.1.dist-info → python_wrap-0.4.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: python-wrap
3
- Version: 0.2.1
4
- Summary: Everyday Python decorators that just work: retry, memoize, timeout, rate limiting, circuit breakers and more. Typed, async-aware, zero dependencies.
3
+ Version: 0.4.0
4
+ Summary: A typed, zero-dependency resilience toolkit: retry, circuit breakers, timeouts, rate limits, caching, bulkheads and policies, with sync and async parity.
5
5
  Project-URL: Homepage, https://github.com/LitePy/PythonWrap
6
6
  Project-URL: Documentation, https://pythonwrap.readthedocs.io
7
7
  Project-URL: Source, https://github.com/LitePy/PythonWrap
@@ -11,7 +11,7 @@ Author-email: Mahmoud Ahmed <pythondeveloper6@gmail.com>
11
11
  Maintainer-email: Mahmoud Ahmed <pythondeveloper6@gmail.com>
12
12
  License-Expression: MIT
13
13
  License-File: LICENSE
14
- Keywords: asyncio,cache,circuit-breaker,debounce,decorators,memoize,rate-limit,retry,throttle,timeout,utilities
14
+ Keywords: asyncio,cache,circuit-breaker,debounce,decorators,memoize,rate-limit,resilience,retry,throttle,timeout,utilities
15
15
  Classifier: Development Status :: 4 - Beta
16
16
  Classifier: Framework :: AsyncIO
17
17
  Classifier: Intended Audience :: Developers
@@ -27,6 +27,16 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
27
  Classifier: Topic :: Utilities
28
28
  Classifier: Typing :: Typed
29
29
  Requires-Python: >=3.10
30
+ Provides-Extra: anthropic
31
+ Requires-Dist: anthropic>=0.40; extra == 'anthropic'
32
+ Provides-Extra: langchain
33
+ Requires-Dist: langchain-core<2,>=0.3; extra == 'langchain'
34
+ Provides-Extra: openai
35
+ Requires-Dist: openai>=1.40; extra == 'openai'
36
+ Provides-Extra: openai-agents
37
+ Requires-Dist: openai-agents>=0.24; extra == 'openai-agents'
38
+ Provides-Extra: pydantic-ai
39
+ Requires-Dist: pydantic-ai-slim>=2.0; extra == 'pydantic-ai'
30
40
  Description-Content-Type: text/markdown
31
41
 
32
42
  <div align="center">
@@ -43,6 +53,7 @@ Retry (with `Retry-After`), circuit breaker, timeout, cache, rate limit, bulkhea
43
53
 
44
54
  [![CI](https://github.com/LitePy/PythonWrap/actions/workflows/ci.yml/badge.svg)](https://github.com/LitePy/PythonWrap/actions/workflows/ci.yml)
45
55
  [![PyPI](https://img.shields.io/pypi/v/python-wrap?logo=pypi&logoColor=white)](https://pypi.org/project/python-wrap/)
56
+ [![Downloads](https://api.pepy.tech/personalized-badge/python-wrap?period=TOTAL&units=NONE&left_text=Downloads&right_color=BLUE)](https://pepy.tech/projects/python-wrap)
46
57
  [![Python](https://img.shields.io/pypi/pyversions/python-wrap?logo=python&logoColor=white)](https://pypi.org/project/python-wrap/)
47
58
  [![License: MIT](https://img.shields.io/pypi/l/python-wrap)](https://github.com/LitePy/PythonWrap/blob/main/LICENSE)
48
59
  [![Docs](https://readthedocs.org/projects/pythonwrap/badge/?version=latest)](https://pythonwrap.readthedocs.io)
@@ -63,7 +74,7 @@ Retry (with `Retry-After`), circuit breaker, timeout, cache, rate limit, bulkhea
63
74
  - **Resilience that behaves.** `retry` honours `Retry-After`, a time budget and cancellation; a shared `deadline()` caps a whole request; `policy(...)` stacks the protections in the right order for you.
64
75
  - **Zero dependencies.** Pure Python, nothing to audit or pin.
65
76
  - **Typed.** Decorators preserve the wrapped signature (`ParamSpec`), and stacking keeps the exact type (`@retry` over `@memoize` still has `.cache_info()`). Ships `py.typed`, checked with `mypy --strict`.
66
- - **Sync and async, one API.** Works on `def`, `async def` and methods. Async wrappers stay coroutine functions and never block the event loop.
77
+ - **Sync and async, one API.** Works on `def`, `async def` and methods. Async wrappers stay coroutine functions; built-in async paths avoid blocking the event loop. Synchronous external cache stores need the [documented I/O care](https://pythonwrap.readthedocs.io/en/latest/features/caching/stores-and-credentials/#synchronous-store-io).
67
78
  - **Fast.** Cache hits and validation skip signature binding on the hot path ([numbers](https://pythonwrap.readthedocs.io/en/latest/project/performance/)).
68
79
  - **Observable and testable.** One event stream for retries, cache, circuit, limiters and timeouts; `python_wrap.testing` makes tests instant and deterministic.
69
80
  - **Never configures your logging**, is thread-safe, and is tested on Python 3.10 to 3.14 on Linux, macOS and Windows.
@@ -78,6 +89,92 @@ uv add python-wrap
78
89
 
79
90
  Python 3.10 or newer.
80
91
 
92
+ ## Coming in the next release
93
+
94
+ Unreleased on `main`; see the [CHANGELOG](https://github.com/LitePy/PythonWrap/blob/main/CHANGELOG.md#unreleased).
95
+
96
+ | Need | API |
97
+ | --- | --- |
98
+ | Sensible numbers without guessing | `presets.http_client()`, `presets.db_call()`, `presets.third_party_api()` |
99
+ | Catch unsafe stacks before production | `Policy.explain()`, `python -m python_wrap doctor` (unbounded or non-idempotent retries, missing timeouts/budgets, misordering) |
100
+ | HTTP clients | `python_wrap.http`: method-safe retrying transports for httpx, a `requests` adapter, `http_retry` for aiohttp; `HttpPolicy(propagate=True)` carries request ids and deadlines |
101
+ | Database errors worth retrying | `db_transient`, `postgres_transient`, `mysql_transient`, `sqlserver_transient` |
102
+ | Async caches that never block the loop | `amemoize` with `AsyncRedisStore` (`redis.asyncio`) |
103
+ | Metrics and dashboards | `PrometheusExporter`, `StatsDExporter`, live `Dashboard`, Grafana sample, `health.summary()` endpoints |
104
+ | Safe POST retries end to end | `IdempotencyMiddleware` (ASGI/WSGI), RateLimit headers and problem+json helpers |
105
+ | Multi-process and Celery deployments | `SQLiteBreakerState`, `celery.shared_breaker`, `celery.retry_task` |
106
+ | Overload and shutdown | `AdaptiveLimiter`, `per_key`, graceful `shutdown.drain()` |
107
+ | Postmortems and testing | `attempt_history(exc)`, Sentry breadcrumbs, `python_wrap.chaos` fault injection, breaker alerts to Slack/Teams |
108
+ | Coming from tenacity/backoff | `python -m python_wrap migrate` codemod and migration guides |
109
+
110
+ The [stable core](https://pythonwrap.readthedocs.io/en/latest/project/stability/) (retry,
111
+ circuit breaker, timeout, policies, presets) is now frozen ahead of 1.0.
112
+
113
+ ## New in 0.4 (beta)
114
+
115
+ | Need | API |
116
+ | --- | --- |
117
+ | Stop sync work cooperatively when `timeout` fires | `checkpoint()`, `cancel_requested()`, `CancelToken` |
118
+ | State per instance or per key on methods | `throttle`/`debounce`/`rate_limit` with `key=`, `per_instance=` |
119
+ | One computation per cache miss across threads | `memoize(..., singleflight=True)` |
120
+ | Catch risky stacks before production | `doctor` checks PW009 to PW012, `doctor --multiprocess` |
121
+ | Redis windows from async code | `AsyncRedisWindow`, `ThreadedStore` |
122
+ | Buffered writes that survive a crash | `buffered(..., journal=SQLiteJournal(...))`, `replay()` |
123
+ | Reject annotations that cannot be checked | `enforce_types(strict=True)`, TypedDict and Protocol checks |
124
+
125
+ ### Built for AI agents and LLM apps
126
+
127
+ | Need | API |
128
+ | --- | --- |
129
+ | Retry LLM calls the right way (429/529, Retry-After, never 4xx) | `llm_retry`, `presets.llm_client()` |
130
+ | Cap tokens and dollars per call, user or run | `Budget`, `@budget`, `token_rate_limit` |
131
+ | Fall back across models, cache answers, time out streams | `fallback_models`, `llm_cache`, `stream_timeout` |
132
+ | Make agent tools safe to retry and replay | `@tool`, `ToolPolicy`, approval hook, dry-run |
133
+ | Stop runaway loops | `agent_run(max_steps=, max_seconds=, max_repeats=)` |
134
+ | Trace, redact and replay LLM and tool calls | `traced_llm`, `traced_tool`, `Redactor`, `AuditTape`, `replay` |
135
+ | Test agents in milliseconds | `fake_llm`, `chaos.llm` faults, `fake_clock` |
136
+ | Let coding agents use python-wrap correctly | `llms.txt`, `python -m python_wrap api / recipe / guide / mcp` |
137
+
138
+ ### Works with the SDKs you already use
139
+
140
+ | SDK | What python-wrap adds |
141
+ | --- | --- |
142
+ | OpenAI and Anthropic Python SDKs | `guard_openai`, `guard_anthropic`: coordinated retries (`no_sdk_retries`), budgets, header-seeded rate limits, `resume_safe` streams, `CacheGuard` |
143
+ | OpenAI Agents SDK | `AgentsGuard`: tool timeouts, idempotency, approval, loop detection that also covers sub-agents |
144
+ | pydantic-ai | `PythonWrapCapability`, `guard_tool`: idempotent tools, a usage bridge into `Budget`, audit hooks |
145
+ | Any agent or MCP host | `EffectLedger` (no double-fired side effects after a crash), `mcp_guard`, `validated()` repair cap, `Cassette` record/replay, `SharedTokenWindow` across workers |
146
+
147
+ Adapters read the SDKs by shape and are optional; install extras such as
148
+ `pip install --pre "python-wrap[openai]"` only to run the contract tests. Runnable projects
149
+ live in `examples/projects/` and `examples/sdk_adapters/`.
150
+
151
+ No provider SDK is imported: responses and errors are read by duck typing, so it works with
152
+ any client. See [AI and agents](https://pythonwrap.readthedocs.io/en/latest/features/ai/llm-calls/)
153
+ and the `examples/` folder.
154
+
155
+ Install the beta with `pip install --pre python-wrap`. See the
156
+ [changelog](https://pythonwrap.readthedocs.io/en/latest/project/changelog/) for details.
157
+
158
+ ## New in 0.3
159
+
160
+ The toolkit now includes production integration helpers alongside the existing decorators:
161
+
162
+ | Need | API |
163
+ | --- | --- |
164
+ | Context on app logs and request/task lifecycle | `ContextFilter`, `bind`, `unbind`; optional Flask/FastAPI/Django/Celery adapters |
165
+ | Shared result caching and credential refresh | `RedisStore`, `expiring` |
166
+ | One configuration per dependency | `policies.register(...)`, `@resilient("name")`, composable error predicates |
167
+ | Coordinate workers and duplicate deliveries | `single_instance`, owner-checked leases, `idempotent` |
168
+ | Shared capacity and budgets | `RedisWindow`, `Quota`, `RedisBreakerState`, `Bulkhead(backend=...)` |
169
+ | Background writes and resumable input processing | `buffered`, `process_batches`, `aprocess_batches` |
170
+ | Operate integrations safely | Dynamic `switch`, `timed`, explicit health registry and optional OpenTelemetry adapter |
171
+
172
+ The package still has **no runtime dependencies**. Optional adapters use your application's
173
+ existing Redis client, SQLAlchemy engine, framework or OpenTelemetry providers. Distributed
174
+ leases and stored results do not promise exactly-once external side effects after a crash
175
+ or lease expiry. Read the [0.3 migration guide](https://pythonwrap.readthedocs.io/en/latest/project/migration-0.3/)
176
+ for redaction matching changes, unknown cache counts and worker lifecycle.
177
+
81
178
  ## 30-second tour
82
179
 
83
180
  ```python
@@ -178,7 +275,7 @@ Everything below is importable from `python_wrap` unless a module is shown. [Cho
178
275
  | **Validation** | `enforce_types`, `validate_args`, `check_type` | Check from annotations, with predicates, or with explicit types |
179
276
  | **State** | `transactional`, `Transaction`, `current_transaction` | Commit and rollback callbacks, usable as a (async) context manager |
180
277
  | | `revert_on_failure` | Restore an object's attributes if the call raises |
181
- | **Configuration** | `configure`, `configured`, `get_config`, `reset_config` | Project-wide defaults for logger, retry options and redaction |
278
+ | **Configuration** | `configure`, `configured`, `get_config`, `reset_config` | Project-wide defaults for logger, retry options, cache codec and redaction |
182
279
  | | `policy`, `Policy` | Named, immutable decorator bundles applied in the recommended order |
183
280
  | **Testing** (`python_wrap.testing`) | `fast_mode`, `disable_retries`, `disable_rate_limits`, `disable_caching`, `overrides` | Skip waits, cap retries, switch limiters and caches off |
184
281
  | | `FakeClock`, `fake_clock`, `spy`, `spy_on`, `eventually` | Control time, record calls, wait for background work; pytest fixtures `pw_fake_clock`, `pw_fast_mode` |
@@ -206,7 +303,7 @@ calls = 0
206
303
  delay=0.01, # wait before the 2nd attempt
207
304
  backoff=2.0, # then 2x longer each time
208
305
  max_delay=0.1, # but never more than this
209
- jitter=0.01, # plus up to this many random seconds
306
+ jitter="full", # spread workers across the entire backoff interval
210
307
  max_time=5, # and never spend longer than this in total
211
308
  on=(ConnectionError, TimeoutError),
212
309
  retry_if=lambda exc: "temporary" in str(exc),
@@ -459,7 +556,7 @@ python-wrap is a broad toolkit; the others are deeper in one area. Use them when
459
556
  | [cachetools](https://github.com/tkem/cachetools) | You need other eviction policies (LFU, FIFO, RR), explicit cache objects or custom locks | `memoize` gives LRU + TTL, `cache_info()`, async in-flight dedupe, signature-bound keys and `cached_property(ttl=)` |
460
557
  | [async-lru](https://github.com/aio-libs/async-lru) | You only cache coroutines and want a tiny dependency | Same async dedupe, also for sync code, with TTL, per-item TTL and exception caching |
461
558
  | [aiolimiter](https://github.com/mjpieters/aiolimiter) | You only need an asyncio leaky-bucket limiter | Sliding window for sync and async, per-key buckets, shared `RateLimiter`, `block=True`, plus `Bulkhead` for concurrency |
462
- | [pybreaker](https://github.com/danielfm/pybreaker) | You need listeners or circuit state shared across processes (Redis storage) | A typed `CircuitBreaker` with async, `exclude=`, `success_threshold` and `.stats`, no dependency |
559
+ | [pybreaker](https://github.com/danielfm/pybreaker) | You already depend on its listener and storage APIs | A typed `CircuitBreaker` with async, `exclude=`, `success_threshold`, `.stats`, and shared state through Redis or SQLite, no dependency |
463
560
  | [functools](https://docs.python.org/3/library/functools.html) | A plain `lru_cache` or `cache` on a sync function with hashable arguments is enough. Prefer it for that | Adds TTL, async, unhashable arguments and `cache_delete` |
464
561
 
465
562
  None of them cover bounded `gather`, bulkheads, batching, hedging, policies or test helpers; python-wrap trades per-area depth for one consistent, typed, dependency-free API.
@@ -476,6 +573,19 @@ None of them cover bounded `gather`, bulkheads, batching, hedging, policies or t
476
573
 
477
574
  0.2.0 fixes decorators that did not do what their names promised (`transactional`, `revert_on_failure`, async `timing`) and makes a few breaking changes: `run_in_thread` returns a `Future`, `benchmark` is a function, `retry_on_exception` is deprecated and bounded, `rate_limit` raises `RateLimitExceeded`, and the logging decorators default to `DEBUG`. Python 3.8 and 3.9 are no longer supported. `from python_wrap.decorators import ...` still works. See the [migration guide](https://pythonwrap.readthedocs.io/en/latest/project/migration/).
478
575
 
576
+ ## Security
577
+
578
+ python-wrap has no runtime dependencies and makes no network calls of its own. Optional stores (Redis, SQLite) and exporters only talk to services you configure. Logging helpers redact secrets by default (`password`, `token`, `api_key`, ...), and cache keys and idempotency keys are never logged raw. Read the [threat model](https://pythonwrap.readthedocs.io/en/latest/project/threat-model/) before sharing caches or breaker state across trust boundaries, and report vulnerabilities privately as described in [SECURITY.md](https://github.com/LitePy/PythonWrap/blob/main/SECURITY.md).
579
+
580
+ ## Limits
581
+
582
+ - In-process by default: caches, rate limits and circuit breakers are per process unless you opt into a shared store (`RedisStore`, `SQLiteBreakerState`).
583
+ - Retries are only safe for idempotent work; `python -m python_wrap doctor` flags risky stacks.
584
+ - Sync timeouts use `SIGALRM` on the Unix main thread; elsewhere a worker thread is used and cannot be stopped, so make long work cooperative.
585
+ - The API of the stable core is frozen ahead of 1.0; other modules may still change between minor releases.
586
+
587
+ See the full list of [known limitations](https://pythonwrap.readthedocs.io/en/latest/project/limitations/).
588
+
479
589
  ## Contributing
480
590
 
481
591
  Bug reports, ideas and pull requests are welcome. Read [CONTRIBUTING.md](https://github.com/LitePy/PythonWrap/blob/main/CONTRIBUTING.md) for the development setup and checks, and [SECURITY.md](https://github.com/LitePy/PythonWrap/blob/main/SECURITY.md) for reporting vulnerabilities.
@@ -0,0 +1,95 @@
1
+ python_wrap/__init__.py,sha256=jLLzcz1fneEBbZEhrdHF-2aLQDje4HwmTHIrz7_OqiA,13785
2
+ python_wrap/__main__.py,sha256=wDVONm6QZCS7Ol9U3LmI2424Z66wDtjTX5cvZ9CPZzI,1864
3
+ python_wrap/_backend.py,sha256=oo0tUSWdeescRyvuI6HsJHigzp_znxFG8XNl2HrRllI,4372
4
+ python_wrap/_buckets.py,sha256=75NpbNS_GQIrAuk-NevPCbOgjGdhn7dJLpL2r11YwZ4,5840
5
+ python_wrap/_core.py,sha256=RS6ZaSQBJ-yf16OQBpMzA848fQ99NcyGTyUT4W3hHd8,9120
6
+ python_wrap/_fork.py,sha256=l4zfDFGJInNoaG20TkfDhCVEsuIWTzCZVpQiz4LPeaI,3157
7
+ python_wrap/_integration.py,sha256=Z_0layTmbOwOyUqGR_uXB6aQYlXqW9zu6H6qHKWhU1U,823
8
+ python_wrap/_runtime.py,sha256=8icJS2-4ifjDPGMTGO6bQZNuSXZZMempduztwpQF6Ic,5546
9
+ python_wrap/adaptive.py,sha256=0BAW-acFQhUuEunYHXwjHnNhrH2xejcanPLCOWl1cd0,21503
10
+ python_wrap/agents.py,sha256=ZiWqNyxECKYswH9kmH8vTDRvYUVG_d08klBZ1xXzFWI,92891
11
+ python_wrap/aio.py,sha256=zFutfNc-mDAFb7ImV8oONB1mYLIWIrmmJQn-tuJmdFI,22147
12
+ python_wrap/alerts.py,sha256=gwJzV0A-BO9Td8dn1eKCmaZ0GcAGr8UVyPNJZE_OdAM,11595
13
+ python_wrap/async_cache.py,sha256=ailwCdW3C5VzwMlBINAiA0jmKo7yMFjt49YDx8Dq58k,29525
14
+ python_wrap/batching.py,sha256=H6RVT8lme0-rNVvap1pQ07SDiCWN_re2upWGTqJj8vg,21817
15
+ python_wrap/buffering.py,sha256=c-t0QRBfsD8E-kDwU8cH1EJBbLFQnLLhijGseReIOac,36296
16
+ python_wrap/bulkhead.py,sha256=3rP5qbUJvNFOi1968v2WBAg_-wQ08AKBtHZV3lB1Vpg,17482
17
+ python_wrap/caching.py,sha256=MPN2u4XcZIyR4PAAqgvRreStgmgOl6cUa3p9w5wbmo8,80082
18
+ python_wrap/celery.py,sha256=Xr9ehO-zhb_C9Qe4QiTLPZfHB4tCERW10-cXdHETSOM,20918
19
+ python_wrap/chaos.py,sha256=z9n0bCfca3rWlrbU-E5Qp_WXZY-wd-OYYdLntrPfmzY,20197
20
+ python_wrap/circuit.py,sha256=wGp57sxsXz4vzB77c7L1WXvqgvYhqH1HfQioLiryIes,40833
21
+ python_wrap/compat.py,sha256=jycglMgFBigwpXXAma-QfTCdtjUI3bjsEsTbkX-XMOE,8596
22
+ python_wrap/concurrency.py,sha256=nfOibx_sZZDYv6eRGU_CmR5ZsFmXL_iQUBUlyNnn_BE,6444
23
+ python_wrap/config.py,sha256=jzgHZ9UAqa91o5ZPegdTFmLKNBE0sW4VD8oN_htOI_w,8742
24
+ python_wrap/coordination.py,sha256=zA9E1wMSbt_X0hek4_0kdxYbyLV1GzW3GmkGj7SyEec,23751
25
+ python_wrap/credentials.py,sha256=qBUfHrqbH1hRc6XBNN3TRkiE_Dn5anofOsXXbFLu_Qs,4492
26
+ python_wrap/dashboard.py,sha256=cXXx-z5KvZSzelGXd9XkwDSp-_emBYamKuOrOi-ucTg,15951
27
+ python_wrap/deadline.py,sha256=v2KTpf0kxdqXcGQm8YDoQ3vx-epSTSEpTt84jop4EIc,5859
28
+ python_wrap/debounce.py,sha256=uXHXho5fm7YnB0Q0iOKNDTQLcmCgYW-Y0WVTknTfwuE,20817
29
+ python_wrap/decorators.py,sha256=x03toQUV0ZpIWimgBWXj0tihB9dYp9fdd9U0bkl2W6Y,206
30
+ python_wrap/devtools.py,sha256=4oTk5ubN8a0Knq3FzyFbtV8L8EeNQXpfl9VohAhdSLE,13512
31
+ python_wrap/django.py,sha256=5TWNJlKmULDn0EVVHlYIR5Qivl7c0zdULuhDPwnQXeQ,3980
32
+ python_wrap/doctor.py,sha256=3_zs-2FMCjoiYl2kkflrLfvxdba64LrWpO71AfEnBG0,23290
33
+ python_wrap/errors.py,sha256=j7lGwoqS7Eq1T_I0IV-CwIrbcpxwACz2wGVsOnQdAD8,2685
34
+ python_wrap/events.py,sha256=ga-wa51EwoT_4HVL5Zf60BkkG_zzLEoyCthJ3XeK_qU,13666
35
+ python_wrap/exporters.py,sha256=LNLRRlxxazAWIf8c1U7yWsm2-KR8c_lGP_yoNW48CkY,25847
36
+ python_wrap/fastapi.py,sha256=K8DfbiNbpqfLzEP_iLb5jNCnKclt0TkOeJIsdQK27BQ,2914
37
+ python_wrap/flask.py,sha256=qs744VYCiEvMN5D1H1aZ-EiXiE_Ggya1SfciB996bjI,2201
38
+ python_wrap/genai.py,sha256=ujQVTNYBSzla8_QADTK64xaAy26XzZ3IvAxkSYoXk-s,41824
39
+ python_wrap/health.py,sha256=Zf8WRF2SJAgO49eqeVCsVVbnW7JUAqriQqa-McmageI,7718
40
+ python_wrap/hedging.py,sha256=shj4sebgYGXlWgQZfgH9Fo7Q33LEuCJcBtBWCz0wPOM,8162
41
+ python_wrap/http.py,sha256=nDoCDGEx_WZ4ZpTnd6rtyFP9kMesvfSF7w74zqP0HCw,35648
42
+ python_wrap/idempotency.py,sha256=S3QzFFxSb_DIcaBjBoAglYlmV-D9L3WfgJ3Sa_jGYLY,18241
43
+ python_wrap/introspect.py,sha256=p-_fEXOav6Omc0405wCfv-QA_Nq2EGmn7Sf-9xDSFdY,26554
44
+ python_wrap/lifecycle.py,sha256=7ejAsAWFQRMqQBRnmCbWT1pRJx7SoNefUPExcoeQL7I,23882
45
+ python_wrap/llm.py,sha256=y09EaU4BwT2lGf3wd6oXjtHmScl1yPJDWq9QdJPYheI,97443
46
+ python_wrap/llm_cassette.py,sha256=rMxcD12XOxpN4HW1Y9YeM4yLsCLAma7TxhDmJl_IiUM,35932
47
+ python_wrap/llm_http_chaos.py,sha256=0jE3TpD5vn0_pIflU4vgLQQhbxD9o1sUfjWnurj4MtQ,11853
48
+ python_wrap/llm_shared.py,sha256=WWAnr-BedK73HuzZMoPTiJheDMRjOoS6IJFStTThT8c,29398
49
+ python_wrap/llm_testing.py,sha256=SuFE76sNSY_usj-AoIL5_gL2-Q1YhilAqvzDSGP0uas,34544
50
+ python_wrap/llm_validate.py,sha256=LktsEBUngL_Tj0W6CcWMS4QwVST9aWmE0J91Od4b3EU,15943
51
+ python_wrap/local_state.py,sha256=edcxRDfbDPXOdGyP-i02JIN3IETAZ9g53dY8sjkFP4U,15398
52
+ python_wrap/logs.py,sha256=M1JgcB8CuLW3UDayrwu_4UvxohDib1E4cXsZtgYG414,29751
53
+ python_wrap/mcp.py,sha256=dO2kz8T_tC04BQsg1ZhwOiz5guqyfagtKuFkb1wgGuk,20551
54
+ python_wrap/mcp_guard.py,sha256=-gxivhBMtG6C-FfIcF-4b7UYftr9Nkz7jgaNDb3SuhY,14140
55
+ python_wrap/metrics.py,sha256=5VLCL-ZuLcuRdwXmjl_8IA8Nz7awpt6AFas-3gPHS7Y,7951
56
+ python_wrap/migrate.py,sha256=4qX3Gtil0effvv-hNS1ZG-7uXhfsno-tQMJWHzyo7v4,57530
57
+ python_wrap/observability.py,sha256=2kFcvh-l5g4QoJRgtFguTIQY3dJ3kdclxpcbn_sRStE,18717
58
+ python_wrap/periodic.py,sha256=D1LddGrz19NCocOmYDy-u2xJ9EAtindQK4Ax7o7B8Os,19867
59
+ python_wrap/policies.py,sha256=Oo5ZzVTl9x_VLgmfwkvsbnmvCmffAKKYudZera0Ht3Q,16120
60
+ python_wrap/policy.py,sha256=he8zJQMUECKuVi7adQw-Jzn-pQie2h3SH5eWHkeF2cY,10082
61
+ python_wrap/predicates.py,sha256=oqyOT9axNQBHA4PxgEF2Mg8RRHu3ZZEmFLYI5DlSDs8,9514
62
+ python_wrap/presets.py,sha256=jf8SgmlZoAT-rt_Oei6MmrL0vAaGsWSlkXMJ4NBu1iA,13972
63
+ python_wrap/processing.py,sha256=OYuTYOeff72KtWa_cs9LmZ5nDVm2raDb0y1HyeZxgls,8050
64
+ python_wrap/propagation.py,sha256=dwvprlBz8rjghM_5r3L-73vGnF64YB8MVHVmlVQ_gFo,2281
65
+ python_wrap/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
+ python_wrap/pytest_plugin.py,sha256=KIcYbp_e_t1iHCZr8SVHRsXsz7q35Dj_A8s_jDiNJh8,3224
67
+ python_wrap/quotas.py,sha256=eskoV2IG2pxO1pjUEV-PYP1dfvhrvOYT9zOKgEKCssE,11295
68
+ python_wrap/ratelimit.py,sha256=tRso6738DgF25zu7Ps2T8dHQYGqJKUP1Yn90a9FCOwk,23013
69
+ python_wrap/redaction.py,sha256=wzqvkDOSlee6Hg7Wg_V0KNNM-6SDueN-PZVCOhSYz-M,8067
70
+ python_wrap/retry.py,sha256=eaUcg83pmxUnZczUhjSxbeu3FgC8ikkV0OZPGx7ndPE,63833
71
+ python_wrap/shared.py,sha256=Uudyimuvvh5HBFmwUACWFq8a01KVv2Xdv_hxbwHVNI4,26087
72
+ python_wrap/singleflight.py,sha256=GymVtnC4YOAmk4ytp6Fzl_g9A8bw6KUGc2Upxu0tyiw,9614
73
+ python_wrap/slow.py,sha256=TX1XV4T2d8jeXQ6WEM9YVGvSWdrN0BMvhnwSSRczIlQ,2364
74
+ python_wrap/state.py,sha256=pM2fl8IdLw3EU3uGWjraGx9xPMTmPaDk3M7xMd7hXbE,18099
75
+ python_wrap/stores.py,sha256=RdXzVC1ym4qKf4KazfwKL-65lmcODs5vk8tdBWMP3gg,6631
76
+ python_wrap/switches.py,sha256=3TghsUAtlEXmStm7ckPP32BLpN2t1JSB3xDayw6F2l0,5120
77
+ python_wrap/testing.py,sha256=uoBsYYI1HKjpIhgAJJD_iaMjRdMyG0xG_ctSZfb0k6U,22510
78
+ python_wrap/timeouts.py,sha256=NqDEK5Fi8sHTs3r-7VPh_86Ynh6OdFI-KI2owSERZGo,35222
79
+ python_wrap/timing.py,sha256=k_Z56eGsJU6G--q1jnwFRarizNDtqE5OhK5Q-zlFdCw,25035
80
+ python_wrap/validation.py,sha256=Z8HrKOjuC8dBNrrc9L_qbblgGNvPqmDQhHb_J90OUa8,33306
81
+ python_wrap/web.py,sha256=lXIJsEr4GAtNSaozJqPeUebgH7gwywQI5FEmVaorPVA,28371
82
+ python_wrap/_data/agent_guide.md,sha256=e7nMjgsiQfRQMe4-vMP6v03U6KDxWQYEEORIWPeuUTM,5209
83
+ python_wrap/_data/recipes.json,sha256=ftSgsVJkP_mAvzDSmX1m0wrI9qGthEHZVLEA99ErwuA,23637
84
+ python_wrap/adapters/__init__.py,sha256=yzBJL1wnoW3s1qbZ-PhDRMJf94ambKz_sJ3wXjxaBN0,3151
85
+ python_wrap/adapters/_frameworks.py,sha256=SPxaE74f57Z64PrzKvKXyGSyUIEnFVAdefCY7b7E4_4,8991
86
+ python_wrap/adapters/_sdk.py,sha256=KfLg8ZxUptKYBmCKRfz21nNeQGjlbyOCZO7uhe2BsT4,77363
87
+ python_wrap/adapters/anthropic.py,sha256=icVfw1NXaXyJBoJZ3fAACAQoygvP-Kv6L04udsOyK0s,5052
88
+ python_wrap/adapters/langchain.py,sha256=3BrpnuNxrA9Ad7vhaFux_o-9lCeLOIUJNNuSW45jCgw,11679
89
+ python_wrap/adapters/openai.py,sha256=WUvGgDWnt7OVuXnNFmcbPiQeIQKYC-wLQDDhB6tolys,7043
90
+ python_wrap/adapters/openai_agents.py,sha256=jsiTaHF9ZBhr42qAYuao3H-q06vOQrgTevfjivIe6QI,18592
91
+ python_wrap/adapters/pydantic_ai.py,sha256=UxXIG0bkUfnTNd__8D_iWoqJVGlbQ5wJt-lC3HUqP7g,17803
92
+ python_wrap-0.4.0.dist-info/METADATA,sha256=kAgryqAts6SN7RTwAac3IKLMMJarhJCFe1_1GOwx0SU,33054
93
+ python_wrap-0.4.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
94
+ python_wrap-0.4.0.dist-info/licenses/LICENSE,sha256=HJx7meo3u1AM4Ms6Q1QNNdwSSdstdmEpo_AAx_TycH0,1079
95
+ python_wrap-0.4.0.dist-info/RECORD,,
@@ -1,29 +0,0 @@
1
- python_wrap/__init__.py,sha256=mOEWHKnniaYpqW2GioCvCeXFdrnAz_6dGxTJXBvHnOw,4807
2
- python_wrap/_core.py,sha256=wpAq9lhYN1dWeSfoFqsPznxRAkF3_ui1qERmmMyRiW0,8695
3
- python_wrap/aio.py,sha256=zFutfNc-mDAFb7ImV8oONB1mYLIWIrmmJQn-tuJmdFI,22147
4
- python_wrap/batching.py,sha256=w9CGn60vrMjA2uu9qnMHZBRF9uAjxO8z9TzqC7FDlVo,21370
5
- python_wrap/bulkhead.py,sha256=6p2won4-n59NbAUhThLlayPiXQQADrbGVqNiOn6D93g,15309
6
- python_wrap/caching.py,sha256=IJZm312bUtnMRTkQRKYnuOBXMcTCu-lniuLh2h9x_Ro,62883
7
- python_wrap/circuit.py,sha256=aw06aM9B0uNhcYZuwyVtkMwKOYwEbb2MavEkpi2Cgbc,20654
8
- python_wrap/concurrency.py,sha256=jb_-L0BeFU17Gy78WlSqlbDcQlEXgtIHmpcDdxF6PKU,73855
9
- python_wrap/config.py,sha256=Llp-7jlRMTEKltwL_qBdOQsaSKW7bFfsrm592cGZ4EM,7542
10
- python_wrap/deadline.py,sha256=v2KTpf0kxdqXcGQm8YDoQ3vx-epSTSEpTt84jop4EIc,5859
11
- python_wrap/decorators.py,sha256=x03toQUV0ZpIWimgBWXj0tihB9dYp9fdd9U0bkl2W6Y,206
12
- python_wrap/devtools.py,sha256=4oTk5ubN8a0Knq3FzyFbtV8L8EeNQXpfl9VohAhdSLE,13512
13
- python_wrap/errors.py,sha256=j7lGwoqS7Eq1T_I0IV-CwIrbcpxwACz2wGVsOnQdAD8,2685
14
- python_wrap/events.py,sha256=n88H-1yyd4UHDSCFD6UofcV7pgiLK66QK-KgEy3xFW4,6083
15
- python_wrap/hedging.py,sha256=shj4sebgYGXlWgQZfgH9Fo7Q33LEuCJcBtBWCz0wPOM,8162
16
- python_wrap/logs.py,sha256=bfvsNUQyfS-i7SOPXO2pTvxDGBu8_BBAzwi6iKSOS3A,26802
17
- python_wrap/metrics.py,sha256=-unhVArc_mABM35gyYyhHl7pmHD5HbM14t7q_ckicwI,7858
18
- python_wrap/periodic.py,sha256=D2LqO1EOuleHsESMrgOZDxLeq04YLF8SBO8oOrAVKjk,19095
19
- python_wrap/policy.py,sha256=DcTPVIx2BSlPXsTt5PZWW_leNeQWH_pIZu4ocPK3a0M,9561
20
- python_wrap/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
- python_wrap/retry.py,sha256=j9DjOF0SHTuEJnJQNtC_FRLeU0bYzOMCDA-I8VNxoik,49139
22
- python_wrap/state.py,sha256=pM2fl8IdLw3EU3uGWjraGx9xPMTmPaDk3M7xMd7hXbE,18099
23
- python_wrap/testing.py,sha256=YbYQ_NDvLq4UBU6MDD23XWAadslwM43Bx_BpNYuZmqc,21513
24
- python_wrap/timing.py,sha256=Bnud5P0ZLEu1UMPr7_a5d6Co1Tawq3VZnl3bjEJSXU0,17067
25
- python_wrap/validation.py,sha256=JC_7WZlHl4raTZPzfCDihLYseGME3c16n9Ia6Mm9bis,25774
26
- python_wrap-0.2.1.dist-info/METADATA,sha256=PRxusaLTae9U0WVqGgMEpMtibyi41inO9y6iOvRz-xc,25036
27
- python_wrap-0.2.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
28
- python_wrap-0.2.1.dist-info/licenses/LICENSE,sha256=HJx7meo3u1AM4Ms6Q1QNNdwSSdstdmEpo_AAx_TycH0,1079
29
- python_wrap-0.2.1.dist-info/RECORD,,