Welcome to statspost’s documentation!

A modern, easy to use, feature-rich, and async ready API wrapper for statspost written in Python.

Key Features

  • Modern Pythonic API using async and await.

  • Proper rate limit handling.

  • Optimised in both speed and memory.


Python 3.8 or higher is required

To install the library, you can just run the following command:

# Linux/macOS
python3 -m pip install -U statspost.py

# Windows
py -3 -m pip install -U statspost.py

To speedup the api wrapper you should run the following command:

# Linux/macOS
python3 -m pip install -U "statspost.py[speed]"

# Windows
py -3 -m pip install -U statspost.py[speed]

To install the development version, do the following:

$ git clone https://github.com/Dhruvacube/statspost.py
$ cd statspost.py
$ python3 -m pip install -U .[speed]

Quick Example

from statspost import StatsPost
import asyncio
import sys

#defining run function
run = asyncio.get_event_loop().run_until_complete

# setting up the statpost client handler

# setting up the windows loop policy according to the operating system
if sys.platform.startswith(('win32', 'cygwin')):

# Post stats, and return the data

You can find more examples in the examples directory.

Indices and tables