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.2.0.tar.gz (19.3 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.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pacspace_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for pacspace_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5b1b5ec5a404e634cb6f00cfe4ba45aa1f3b71b3d722d222370650870a473fde
MD5 3cd6c6ef2df4ef21bf116dcdfacb938d
BLAKE2b-256 35ef6599dce8298cb5d9aeec117d449b536431f761d70668572eabe404820b57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pacspace_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for pacspace_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b93bc978b972a66204b83ed493d823dcb299d046515d795942bfee6059153341
MD5 16f0d8de0d8295d8574871fe88c9f090
BLAKE2b-256 becf230673710b83b9f9524e1ef5fd4b8d23ace9f90ef1904cfa28eda9c8f844

See more details on using hashes here.

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