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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyspapi-3.3.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

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

Hashes for pyspapi-3.3.1.tar.gz
Algorithm Hash digest
SHA256 b91c0bdc142e2dd1f49a9dd1a410716033f196f8d0fdcd217aeb5cbe5d643567
MD5 cc4506cb43e0abfb37343a87a6ba81e8
BLAKE2b-256 78738754f7f027ba2568616b5139a6ca0a6ed62cb3782660142e0ff4c14394d0

See more details on using hashes here.

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

Hashes for pyspapi-3.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 445a1276fadd38bfe600304633a96d3a5269d802d61725cd6c4319e7fc80fe02
MD5 3fe7492726d05f9b5e608f2dc52b88ff
BLAKE2b-256 ce65e94875e6e9fa624d93c66febcc0627bfba179b9d3dc101f9017db45a8b63

See more details on using hashes here.

Supported by

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