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.0.tar.gz (109.7 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.0-py3-none-any.whl (282.4 kB view details)

Uploaded Python 3

File details

Details for the file paysponge-0.1.0.tar.gz.

File metadata

  • Download URL: paysponge-0.1.0.tar.gz
  • Upload date:
  • Size: 109.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for paysponge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4546d2b4b0af79df210b2a27ad4274c93702118e43ded7f06bb4aa18302f7e7
MD5 baf6693136a185f2b1ac9567f37a86c8
BLAKE2b-256 dfa9a0f8dfc3be415da7cd644fc96a19e5324c9c639ffe83daf5a43f4d5b4557

See more details on using hashes here.

File details

Details for the file paysponge-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: paysponge-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 282.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for paysponge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd80e7897f044066f2b8869e65b6348e3fc181f9f7cf502e1af9ef4c6716ee6
MD5 b0668ead1f02c80413c57d8baff3f804
BLAKE2b-256 14f2c394346eccc46185baa21933d0b73cd607a0daeb2ac8c43bed2f740c9dfd

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