项目作者: jack1142

项目描述 :
Async ready API wrapper for Rocket League API written in Python.
高级语言: Python
项目地址: git://github.com/jack1142/rlapi.git
创建时间: 2019-05-17T20:42:33Z
项目社区:https://github.com/jack1142/rlapi

开源协议:Apache License 2.0

下载


rlapi

Async ready API wrapper for Rocket League API written in Python.

Sponsor on GitHub
Documentation Status
Code style: black
License: Apache-2.0
PRs Welcome

Rocket League API is currently in closed beta and Psyonix doesn’t give out access to it easily.

To request API access, you should contact Psyonix by email RLPublicAPI@psyonix.com and hope for positive response.

Installation

Python 3.8 or higher is required

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

  1. # Linux/OS X
  2. python3.8 -m pip install -U rlapi
  3. # Windows
  4. py -3.8 -m pip install -U rlapi

To install the development version, replace rlapi with git+https://github.com/Jackenmen/rlapi

Usage example

You can easily create a client using the class Client. Here’s simple example showing how you can get player stats with this library:

  1. import asyncio
  2. import rlapi
  3. async def main():
  4. client = rlapi.Client(client_id="client id", client_secret="client secret")
  5. players = await client.get_player("kuxir97", None)
  6. asyncio.run(main())

Documentation

Read rlapi’s documentation.

Contributing

Please take a look at our contributing guidelines if you’re interested in helping!

License

Distributed under the Apache License 2.0. See LICENSE for more information.

This project bundles lxml-stubs which are distributed on Apache License 2.0

Contributing guidelines and issue templates are taken from discord.py project


Jakub Kuczys ·
GitHub @Jackenmen