Skip to main content
pyspapi Discord server invite GitHub release (latest by date including pre-releases) PyPI downloads info PyPI version info pyspapi documentation

pyspapi

API wrapper for SP servers written in Python.

Installation

Requires Python 3.12 or higher

Windows

pip install pyspapi

Linux/macOS

pip3 install pyspapi

Quick example

Checking the balance

from pyspapi import SPAPI
from asyncio import get_event_loop

spapi = SPAPI(card_id='CARD_ID', token='TOKEN')


async def main():
    print(await spapi.balance)

loop = get_event_loop()
loop.run_until_complete(main())

More examples can be found in the examples

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspapi-3.4.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

pyspapi-3.4.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file pyspapi-3.4.0.tar.gz.

File metadata

  • Download URL: pyspapi-3.4.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyspapi-3.4.0.tar.gz
Algorithm Hash digest
SHA256 329b2123412cc43713f2a310606a6daf6c0f05547dd554d650cf1cf63ad1f9fb
MD5 1c7e3a6ba5ca30c114881dcc0f0f464f
BLAKE2b-256 52ed7075766b092bd42ad8d82f79bf8c3974293daa1a2879ee1bdcde75ee3df0

See more details on using hashes here.

File details

Details for the file pyspapi-3.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyspapi-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyspapi-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d21e4e8e2752c53567b075d93626f4370ae492c151edad4dd2e956a29fca678a
MD5 65a4be362a781a508407f2427dd14726
BLAKE2b-256 79ff017ff41840057eece4a83a8d754714a0ba158f2f17baef680fb7bdae43fd

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 Sentry Error logging StatusPage Status page