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.1.tar.gz (2.4 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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opensolvency-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.tar.gz
Algorithm Hash digest
SHA256 723b19a9db64ae2bcd8bf1bcc8c8045d1bbc984437e603c19ff411eb60004c61
MD5 c642d05ca30144a9cea7639dc7d85bd7
BLAKE2b-256 762584b91405ae22f0edb487a362860433811bc12b5ed5363e0d2844b6df331f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opensolvency-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: opensolvency-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b69978691860920c17c38ccac37a75eb6b7548cf7539190d857001e3e31004fa
MD5 90c871011a7a24a23f789edb023ec757
BLAKE2b-256 f506ed4de2400e1753638d7d69ca7ded6286744698e62c085635f193650902b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for opensolvency-0.1.1-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