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

Release files for pyspapi 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyspapi 3.4.0
File Size Uploaded
pyspapi-3.4.0.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyspapi 3.4.0
File Interpreter ABI Platform
pyspapi-3.4.0-py3-none-any.whl Python 3 none any Details

Total release size:23.1 kB

Release files / pyspapi-3.4.0.tar.gz

Download URL pyspapi-3.4.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
329b2123412cc43713f2a310606a6daf6c0f05547dd554d650cf1cf63ad1f9fb
BLAKE2b-256 checksum
How to use checksums
52ed7075766b092bd42ad8d82f79bf8c3974293daa1a2879ee1bdcde75ee3df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pyspapi-3.4.0-py3-none-any.whl

Download URL pyspapi-3.4.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d21e4e8e2752c53567b075d93626f4370ae492c151edad4dd2e956a29fca678a
BLAKE2b-256 checksum
How to use checksums
79ff017ff41840057eece4a83a8d754714a0ba158f2f17baef680fb7bdae43fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

3.4.0 This release

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.0

1 release file

3.1.2

1 release file

3.1.1

1 release file

3.1.0

1 release file

3.0.0a0

1 release file

2.1.2

1 release file

2.1.1

1 release file

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page