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

Uploaded Source

File details

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

File metadata

  • Download URL: pyspapi-3.1.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyspapi-3.1.2.tar.gz
Algorithm Hash digest
SHA256 86c49d870e265b81f407107004bc1d2d061230dfe48126c33986bad589f37adf
MD5 3a414bf0e19ffa4bd4bd573b1843b34b
BLAKE2b-256 54baae6acdbb380cd6f4e81fd927c78d8261303bfbdaded97e28d594a9baac9c

See more details on using hashes here.

Supported by

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