Metadata-Version: 2.4
Name: pyspapi
Version: 3.3.0
Summary: API wrapper for SP servers written in Python.
License: MIT
License-File: LICENSE
Author: deesiigneer
Author-email: xdeesiigneerx@gmail.com
Requires-Python: >=3.12,<3.15
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Provides-Extra: dev
Provides-Extra: docs
Requires-Dist: aiohttp (>=3.9,<4.0)
Requires-Dist: pydata-sphinx-theme (>=0.16.1,<0.17.0) ; extra == "docs"
Requires-Dist: ruff (>=0.14,<0.15) ; extra == "dev"
Requires-Dist: sphinx (>=7,<9) ; extra == "docs"
Requires-Dist: sphinx-autobuild (>=2025.8.25,<2026.0.0) ; extra == "docs"
Requires-Dist: toml-sort (>=0.24,<0.25) ; extra == "dev"
Project-URL: Documentation, https://pyspapi.readthedocs.org
Project-URL: Discord, https://discord.com/invite/VbyHaKRAaN
Project-URL: Homepage, https://pyspapi.deesiigneer.ru
Project-URL: Issue Tracker, https://github.com/deesiigneer/pyspapi/issues
Project-URL: Repository, https://github.com/deesiigneer/pyspapi
Description-Content-Type: text/x-rst

.. image:: https://raw.githubusercontent.com/deesiigneer/pyspapi/main/assets/repo-banner.png
   :alt: pyspapi

.. image:: https://img.shields.io/discord/850091193190973472?color=5865F2&label=discord
   :target: https://discord.gg/VbyHaKRAaN
   :alt: Discord server invite
.. image:: https://img.shields.io/github/v/release/deesiigneer/pyspapi?include_prereleases&label=github%20release
   :target: https://github.com/deesiigneer/pyspapi/
   :alt: GitHub release (latest by date including pre-releases)
.. image:: https://img.shields.io/pypi/v/pyspapi.svg
   :target: https://pypi.org/project/pyspapi/
   :alt: PyPI downloads info
.. image:: https://img.shields.io/pypi/dm/pyspapi?color=informational&label=pypi%20downloads
   :target: https://pypi.org/project/pyspapi/
   :alt: PyPI version info
.. image:: https://img.shields.io/readthedocs/pyspapi
   :target: https://pyspapi.readthedocs.io/
   :alt: pyspapi documentation

pyspapi
========

`API <https://github.com/sp-worlds/api-docs>`_ wrapper for SP servers written in Python.

Installation
-------------
**Requires Python 3.8 or higher**

*Windows*


.. code:: sh

    pip install pyspapi

*Linux/macOS*

.. code:: sh

    pip3 install pyspapi

Quick example
--------------

Checking the balance
~~~~~~~~~~~~~~~~~~~~~
.. code:: py

    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 <https://github.com/deesiigneer/pyspapi/tree/main/examples>`_

Links
------

- `Discord server <https://discord.gg/VbyHaKRAaN>`_
- `pyspapi documentation <https://pyspapi.readthedocs.io/>`_
- `PyPi <https://pypi.org/project/pyspapi/>`_
- `API documentation for SP sites <https://github.com/sp-worlds/api-docs>`_

