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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b1b5ec5a404e634cb6f00cfe4ba45aa1f3b71b3d722d222370650870a473fde
|
|
| MD5 |
3cd6c6ef2df4ef21bf116dcdfacb938d
|
|
| BLAKE2b-256 |
35ef6599dce8298cb5d9aeec117d449b536431f761d70668572eabe404820b57
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b93bc978b972a66204b83ed493d823dcb299d046515d795942bfee6059153341
|
|
| MD5 |
16f0d8de0d8295d8574871fe88c9f090
|
|
| BLAKE2b-256 |
becf230673710b83b9f9524e1ef5fd4b8d23ace9f90ef1904cfa28eda9c8f844
|