Skip to main content

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.py
  • examples/transfer.py
  • examples/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

paysponge-0.1.1.tar.gz (109.6 kB view details)

Uploaded Source

Built Distribution

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

paysponge-0.1.1-py3-none-any.whl (282.4 kB view details)

Uploaded Python 3

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

Hashes for paysponge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4cae446229d3b919229ff48cc06d470f48528b14da3197a3a88852a5a746ebde
MD5 6389adbc8992a810674137a082b73e55
BLAKE2b-256 dafbad3f62e9d6337324a3507997ccb98febf3ba7a2e12a49c3ac787aaca0995

See more details on using hashes here.

Provenance

The following attestation bundles were made for paysponge-0.1.1.tar.gz:

Publisher: sdk-publish.yml on paysponge/sponge

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

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

Hashes for paysponge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6651f106f25d84de27aee2fe29b0b6c4cb2d6b6d6bc9b8bf9c1cf6a81c4d283
MD5 5fd345c6f6b9e72775d77629876edecd
BLAKE2b-256 3a9cbc5862d355c86a79aa41cd7052b0a36f931f5241b3576be8777f89bf05c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for paysponge-0.1.1-py3-none-any.whl:

Publisher: sdk-publish.yml on paysponge/sponge

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