Metadata-Version: 2.4
Name: did-it-land
Version: 0.1.1
Summary: Know whether a side-effect landed, and how to reverse it: a corpus of per-vendor effect capsules for durable and saga workflows.
Author: Satsawat Natakarnkitkul
License: MIT License
        
        Copyright (c) 2026 Satsawat Natakarnkitkul
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/netsatsawat/did-it-land
Project-URL: Documentation, https://github.com/netsatsawat/did-it-land/blob/main/docs/CAPSULE-SCHEMA.md
Keywords: durable-execution,saga,idempotency,reconciliation,agents,dbos
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml>=6.0
Provides-Extra: http
Requires-Dist: httpx>=0.27; extra == "http"
Provides-Extra: dbos
Requires-Dist: dbos>=0.10; extra == "dbos"
Dynamic: license-file

# did-it-land

> Your durable worker crashed mid-tool-call. Did the charge actually fire, and how do you
> reverse it? did-it-land is the per-vendor knowledge that answers both, as data.

Durable and saga engines resume a crashed workflow from a checkpoint, then leave you the
hard part: query the vendor to see whether the side-effect landed, and write your own
compensation. did-it-land ships that knowledge as a small corpus of effect capsules plus a
thin runtime.

```
pip install "did-it-land[http]"
did-it-land demo
```

```python
from did_it_land import bundled, reconcile, unwind, HttpxTransport

stripe = HttpxTransport("https://api.stripe.com", headers={"Authorization": f"Bearer {key}"})
charge = bundled().get("stripe.charge")

key = "sk_test_..."                # your Stripe test-mode key
order_started_at = "1700000000"    # unix seconds, recorded when the order began
context = {"order_id": "ORD-1", "created_after": order_started_at}
outcome = reconcile(charge, context, transport=stripe)
if outcome.landed:
    ...        # the charge already happened, skip the retry

unwind(charge, {"payment_intent_id": "pi_123"}, transport=stripe)
```

v1 ships four capsules: `stripe.charge`, `s3.delete_object`, `github.merge_pr`, and
`postgres.insert`. Full docs, the DBOS adapter, and the TypeScript runtime are in the
repository.

Homepage and docs: https://github.com/netsatsawat/did-it-land

Written by [Satsawat Natakarnkitkul](https://satsawat.ai). License: MIT.
