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
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.3.2.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyspapi-3.3.2-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file pyspapi-3.3.2.tar.gz.
File metadata
- Download URL: pyspapi-3.3.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b20f65a160c1745367e7f1ee42f8fc5e9088d2eb690497fbcbfa05d8080f285
|
|
| MD5 |
042c97c19cc5ced9bb65ee2502ae60f9
|
|
| BLAKE2b-256 |
5c587c5204facbe2a0a7cab239eb6ff21e0793d9df16d84550eb8021b3f9157d
|
File details
Details for the file pyspapi-3.3.2-py3-none-any.whl.
File metadata
- Download URL: pyspapi-3.3.2-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d19b5cc227fea2c9f7f19aeb533eef7c8d98f2d22b29092664f6cbbde429f6
|
|
| MD5 |
e4340ba91b6d418b1b3f5c9ec5fa7ddc
|
|
| BLAKE2b-256 |
baf40e1ec1aa139921110837bbf39e38a973b49b2f1e6e35ee21e461c48dccc1
|