Metadata-Version: 2.4
Name: infinihash-baas
Version: 0.1.0
Summary: Python SDK for Infinihash Rails (BaaS): invoices, collection, settlement, signed records export.
Author: Infinihash
License: MIT
Project-URL: Homepage, https://onboard.infinihash.com
Project-URL: API reference, https://rails-api.infinihash.com/api/docs
Project-URL: Source, https://github.com/Infinihash/baas-python
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28
Provides-Extra: test
Requires-Dist: pytest>=7; extra == "test"
Dynamic: license-file

# infinihash-baas

Python SDK for **Infinihash Rails** (BaaS): invoices, ACH/stablecoin collection, settlement, signed records export.

    pip install "git+https://github.com/Infinihash/baas-python@v0.1.0"

```python
from infinihash_baas import Rails, SANDBOX_URL
r = Rails("ihb_...", base_url=SANDBOX_URL)      # build against the sandbox first
inv = r.create_invoice("INV-1", customer_id, [{"description": "Work", "unitCents": 25000}])
r.send_invoice(inv["id"])
r.pay_invoice(inv["id"], idempotency_key="INV-1-pay-1")   # retries never double-move money
```

- `Rails().capabilities()` / `require("...")` read what the host really offers (escrow and refunds are unavailable on every current deployment).
- `verify_webhook_signature(secret, raw_body, header)` is fail-closed.
- `create_sandbox_key(email)` gets a free, instant sandbox key (no sign-up); `examples/sandbox_quickstart.py` goes from nothing to a paid sandbox invoice.
- Examples: `examples/capabilities.py` (no key needed), `examples/sandbox_quickstart.py`, `examples/invoice_and_collect.py`.
- Reference: https://rails-api.infinihash.com/api/docs. Get started: https://onboard.infinihash.com.
