Metadata-Version: 2.4
Name: unfragile
Version: 0.1.0
Summary: The Unfragile API in a few calls (find, search, verify, resolve, passport, stats), with offline checks of signed receipts and passports.
Author-email: Unfragile <hello@unfragile.ai>
License: MIT
Project-URL: Homepage, https://unfragile.ai
Project-URL: Documentation, https://unfragile.ai/docs
Project-URL: Source, https://github.com/Savirinc/unfragile-mcp-server
Keywords: unfragile,mcp,ai,agents,search,verify,ed25519,receipts,sdk
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: verify
Requires-Dist: cryptography>=42; extra == "verify"
Dynamic: license-file

# unfragile (Python)

The Unfragile API in a few calls, and offline checks of what it signs. The calls use only the standard library;
the signature check needs `pip install "unfragile[verify]"` (it adds `cryptography`, since Python has no Ed25519).

```python
from unfragile import Unfragile, verify_receipt

u = Unfragile()                                   # keyless: the free daily allowance; or Unfragile(api_key=...)
r = u.find("refund a stripe payment", answer=True)
print(verify_receipt(r["receipt"]).valid)         # Ed25519, checked on your machine

v = u.verify("npm:@stripe/mcp")                   # {"verdict", "reason", "record", "passport"}
```

Calls: `find`, `search`, `verify`, `resolve`, `passport`, `stats`. Errors are `UnfragileError` with the API's own
message, and `parameter`, `retry_after_s` and `scope` when the API names them.
