Python SDK for PaySponge
Project description
paysponge
Python SDK for PaySponge.
The paysponge package is a small first-class SDK surface for common wallet
and platform workflows.
Install
cd mobwallet/python/paysponge
uv sync --group dev
Quick Start
from paysponge import SpongeWallet
wallet = SpongeWallet.connect(api_key="sponge_test_xxx")
agent = wallet.get_agent()
addresses = wallet.get_addresses()
balances = wallet.get_balances()
Platform/master-key usage:
from paysponge import SpongePlatform
platform = SpongePlatform.connect(api_key="sponge_master_xxx")
agent = platform.create_agent(name="Hackathon Agent")
Examples
examples/basic.pyexamples/transfer.pyexamples/basic_sdk.py
Run them with uv run so they use the package environment:
cd mobwallet/python/paysponge
SPONGE_API_KEY=sponge_test_xxx uv run python examples/basic.py
SPONGE_API_KEY=sponge_test_xxx RECIPIENT_ADDRESS=0x... uv run python examples/transfer.py
Tests
cd mobwallet/python/paysponge
uv run python -m unittest discover -s tests
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
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 paysponge-0.1.1.tar.gz.
File metadata
- Download URL: paysponge-0.1.1.tar.gz
- Upload date:
- Size: 109.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cae446229d3b919229ff48cc06d470f48528b14da3197a3a88852a5a746ebde
|
|
| MD5 |
6389adbc8992a810674137a082b73e55
|
|
| BLAKE2b-256 |
dafbad3f62e9d6337324a3507997ccb98febf3ba7a2e12a49c3ac787aaca0995
|
Provenance
The following attestation bundles were made for paysponge-0.1.1.tar.gz:
Publisher:
sdk-publish.yml on paysponge/sponge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paysponge-0.1.1.tar.gz -
Subject digest:
4cae446229d3b919229ff48cc06d470f48528b14da3197a3a88852a5a746ebde - Sigstore transparency entry: 1551187556
- Sigstore integration time:
-
Permalink:
paysponge/sponge@d09eb043daf78c4120c0f75f593f6d2a8537f04d -
Branch / Tag:
refs/heads/master - Owner: https://github.com/paysponge
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@d09eb043daf78c4120c0f75f593f6d2a8537f04d -
Trigger Event:
push
-
Statement type:
File details
Details for the file paysponge-0.1.1-py3-none-any.whl.
File metadata
- Download URL: paysponge-0.1.1-py3-none-any.whl
- Upload date:
- Size: 282.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6651f106f25d84de27aee2fe29b0b6c4cb2d6b6d6bc9b8bf9c1cf6a81c4d283
|
|
| MD5 |
5fd345c6f6b9e72775d77629876edecd
|
|
| BLAKE2b-256 |
3a9cbc5862d355c86a79aa41cd7052b0a36f931f5241b3576be8777f89bf05c0
|
Provenance
The following attestation bundles were made for paysponge-0.1.1-py3-none-any.whl:
Publisher:
sdk-publish.yml on paysponge/sponge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paysponge-0.1.1-py3-none-any.whl -
Subject digest:
f6651f106f25d84de27aee2fe29b0b6c4cb2d6b6d6bc9b8bf9c1cf6a81c4d283 - Sigstore transparency entry: 1551188184
- Sigstore integration time:
-
Permalink:
paysponge/sponge@d09eb043daf78c4120c0f75f593f6d2a8537f04d -
Branch / Tag:
refs/heads/master - Owner: https://github.com/paysponge
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@d09eb043daf78c4120c0f75f593f6d2a8537f04d -
Trigger Event:
push
-
Statement type: