Skip to main content

Rocket League Stats API client

Project description

rlstatsapi

Simple and fast Python client to read Rocket League Stats API events.

Install

pip install -e .

Configure Rocket League

Before starting the game, edit:

<Install Dir>\TAGame\Config\DefaultStatsAPI.ini

Minimum required values:

  • PacketSendRate=60 (any value > 0)
  • Port=49123

Then restart Rocket League.

Quick usage

import asyncio
import logging
from rlstatsapi import StatsClient

logging.basicConfig(level=logging.INFO)


async def main() -> None:
    client = StatsClient(log_enabled=True)
    client.on_any(lambda msg: print(msg.event, msg.data))

    await client.connect()
    try:
        await asyncio.Event().wait()
    finally:
        await client.disconnect()


asyncio.run(main())

Public API

  • StatsClient(...)
  • connect()
  • disconnect()
  • on(event_name, handler)
  • on_any(handler)
  • events()

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

rlstatsapi-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

rlstatsapi-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file rlstatsapi-0.1.0.tar.gz.

File metadata

  • Download URL: rlstatsapi-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rlstatsapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4f45b57faee571e275815802212f2df27d7ce25fdefb0c53b49214aaca248d2
MD5 cb94b7705cf8834dff07958b12ddb2c0
BLAKE2b-256 e27f0407824b0c2f70071c80b95699aeebf7480d5fd5c88c0afbcf3054d31b62

See more details on using hashes here.

File details

Details for the file rlstatsapi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rlstatsapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rlstatsapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fccc65d3580bdda9f846f59742ec1d53940c49644dd6f52c14de3de56a27e8a
MD5 e443e0d86efb04611f4d857d516ba75d
BLAKE2b-256 761bc5b377382387ce8cb82acdf1b2a3b279a0e1b8b52fa7ee50d9b32602421f

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