Skip to main content

API wrapper for SP servers written in Python

Project description

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.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

Project details


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.2.0.tar.gz (8.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pyspapi-3.2.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyspapi-3.2.0.tar.gz
Algorithm Hash digest
SHA256 98d132047e54b0d274b56d39f8aa55875703943b76ad083e5865e9d95e19f541
MD5 25dcdc97e619e8744e3af697f81d1863
BLAKE2b-256 55ebf03e9c9e82c4e820b7d1dc6a514197ac7fcbd54ee8ccbe15b1871478e91b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page