API wrapper for SP servers written in Python.
Project description
pyspapi
API wrapper for SP servers written in Python.
Installation
Requires Python 3.8 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
Project details
Release history Release notifications | RSS feed
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.1.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.1-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file pyspapi-3.3.1.tar.gz.
File metadata
- Download URL: pyspapi-3.3.1.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 |
b91c0bdc142e2dd1f49a9dd1a410716033f196f8d0fdcd217aeb5cbe5d643567
|
|
| MD5 |
cc4506cb43e0abfb37343a87a6ba81e8
|
|
| BLAKE2b-256 |
78738754f7f027ba2568616b5139a6ca0a6ed62cb3782660142e0ff4c14394d0
|
File details
Details for the file pyspapi-3.3.1-py3-none-any.whl.
File metadata
- Download URL: pyspapi-3.3.1-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 |
445a1276fadd38bfe600304633a96d3a5269d802d61725cd6c4319e7fc80fe02
|
|
| MD5 |
3fe7492726d05f9b5e608f2dc52b88ff
|
|
| BLAKE2b-256 |
ce65e94875e6e9fa624d93c66febcc0627bfba179b9d3dc101f9017db45a8b63
|