Skip to main content

Python client for the OpenSolvency governance gate (REST over the HTTP ingress)

Reason this release was yanked:

renamed to agentworth

Project description

opensolvency (Python client)

A thin REST client for the OpenSolvency governance gate. Point it at a running opensolvency serve; every payment it submits runs through the same gate (auto-execute inside a mandate, park for operator approval, or block). A blocked outcome is a normal result, not an error. Standard library only - no dependencies.

from opensolvency import OpenSolvencyClient

os = OpenSolvencyClient("http://127.0.0.1:8787", token="...")
res = os.pay(payee="tesco", payee_class="groceries", amount=8000,  # minor-units
             rationale="the weekly grocery shop")
print(res["outcome"])   # settled | pending | blocked | failed
print(os.status(), os.ready())

Idempotency keys are generated per pay() (override with idempotency_key=). The full-feature surface is the TypeScript SDK (@general-liquidity/opensolvency); this is for Python hosts that talk to a running ingress.

License: MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opensolvency-0.1.5.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opensolvency-0.1.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file opensolvency-0.1.5.tar.gz.

File metadata

  • Download URL: opensolvency-0.1.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opensolvency-0.1.5.tar.gz
Algorithm Hash digest
SHA256 36f7d960bd7c0021b87f554554a00d4a8dc2a686f6aea8f07088a833eab39397
MD5 417d6c0294926e715522db5b5ebe69c5
BLAKE2b-256 9bf4517783a63391ad0b1e09acffab9f67ab8477640fcf8e00041d0af7d0a51d

See more details on using hashes here.

Provenance

The following attestation bundles were made for opensolvency-0.1.5.tar.gz:

Publisher: release.yml on general-liquidity/opensolvency

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opensolvency-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: opensolvency-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opensolvency-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0788777cf648cd5a25f0f7f3ddfbf7bcc92b0fc4bc2e05f998a9192db7a1d7e8
MD5 3f2b8d701df3b4a33754a2826646e98d
BLAKE2b-256 96ed2b5fb0784d5fc6a36341a1ff0a88f76205e7a0f61fca5a2f94a784003b7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opensolvency-0.1.5-py3-none-any.whl:

Publisher: release.yml on general-liquidity/opensolvency

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page