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
Links
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyspapi-3.4.0.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|