Skip to main content

Official PacSpace Balance API SDK for Python.

Project description

pacspace-sdk (Python)

Official Python SDK for the PacSpace Balance API.

Install

pip install pacspace-sdk

Quick Start

from pacspace_sdk import PacSpace

pac = PacSpace.init("pk_test_xxx")

emit = pac.balance.emit("cust_123", -42, "usage")
status = pac.balance.wait_for_verified(emit["recordId"])
usage = pac.balance.usage()

Verify source selection

verification = pac.verify(
    "0xproof_root_here",
    source="both",  # "db" (default), "chain", or "both"
)

Webhook Verification

from pacspace_sdk import Webhooks

webhooks = Webhooks("whsec_xxx")
event = webhooks.verify(signature, timestamp, raw_body)

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

pacspace_sdk-0.1.2.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

pacspace_sdk-0.1.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file pacspace_sdk-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for pacspace_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 69972fb9d34f456d8e8dc5cb0a3d3e788e14f2720617d47fad5cc43434252d9b
MD5 0031911d5f342cd493f1b0ba3c3f5175
BLAKE2b-256 36099e258ff1d70034709461c513fa2a21c7269d2cdfa00427700408a1159d6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pacspace_sdk-0.1.2.tar.gz:

Publisher: publish.yml on PacSpace/python-sdk

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

File details

Details for the file pacspace_sdk-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pacspace_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c62083b9f8a04ef1f8b896f81bd244eda156999b9ac46337063bec57cd78a8fb
MD5 31809ef5f4b7435b4bbd3c1976ea1195
BLAKE2b-256 08e7921ab8bb552fa0352be41c28097510264e88ff5b737c79e2e7f1e97d027c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pacspace_sdk-0.1.2-py3-none-any.whl:

Publisher: publish.yml on PacSpace/python-sdk

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