Production-ready, auto-updating Riot API wrapper.
Project description
RiotSkillIssue
Production-ready, auto-updating, and fully typed Python wrapper for the Riot Games API.
Features
| Feature | Description |
|---|---|
| Type-Safe | 100% Pydantic models for all requests and responses |
| Auto-Updated | Generated daily from the Official OpenAPI Spec |
| Resilient | Built-in exponential backoff, circuit breakers, and Retry-After handling |
| Distributed | Pluggable Redis support for shared rate limiting and caching |
| Multi-Game | Full support for LoL, TFT, LoR, and VALORANT APIs |
Installation
Requires Python 3.8+.
pip install riotskillissue
Quick Start
import asyncio
from riotskillissue import RiotClient, Platform, Region
async def main():
async with RiotClient() as client:
# Look up account by Riot ID
account = await client.account.get_by_riot_id(
region=Platform.EUROPE,
gameName="Agurin",
tagLine="EUW"
)
print(f"Found: {account.gameName}#{account.tagLine}")
# Get summoner data
summoner = await client.summoner.get_by_puuid(
region=Region.EUW1,
encryptedPUUID=account.puuid
)
print(f"Level: {summoner.summonerLevel}")
if __name__ == "__main__":
asyncio.run(main())
Set your API key via environment variable:
export RIOT_API_KEY="RGAPI-your-key-here"
Or pass it directly:
async with RiotClient(api_key="RGAPI-...") as client:
...
Configuration
from riotskillissue import RiotClient, RiotClientConfig
from riotskillissue.core.cache import RedisCache
config = RiotClientConfig(
api_key="RGAPI-...",
max_retries=5,
redis_url="redis://localhost:6379/0" # Distributed rate limiting
)
cache = RedisCache("redis://localhost:6379/1")
async with RiotClient(config=config, cache=cache) as client:
...
Documentation
Full documentation is available at demoen.github.io/riotskillissue.
Legal
RiotSkillIssue is not endorsed by Riot Games and does not reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games and all associated properties are trademarks or registered trademarks of Riot Games, Inc.
License
MIT. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file riotskillissue-0.1.5.tar.gz.
File metadata
- Download URL: riotskillissue-0.1.5.tar.gz
- Upload date:
- Size: 983.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2dffb0a59eef1956dce87ddf88b157d5411ce52e84ffb16b4669aaa9b0f6b5f
|
|
| MD5 |
e5754233e3ac1d8b41f7fd25bd7fad8d
|
|
| BLAKE2b-256 |
451c7c0faec420d6ae0e118e7c4bc2656af3bbd64faab979713dc3e6e9b2079d
|
Provenance
The following attestation bundles were made for riotskillissue-0.1.5.tar.gz:
Publisher:
publish.yml on Demoen/riotskillissue
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
riotskillissue-0.1.5.tar.gz -
Subject digest:
e2dffb0a59eef1956dce87ddf88b157d5411ce52e84ffb16b4669aaa9b0f6b5f - Sigstore transparency entry: 928215752
- Sigstore integration time:
-
Permalink:
Demoen/riotskillissue@3c7db91aab469b9bb483fa6b9996c0324344830e -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/Demoen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3c7db91aab469b9bb483fa6b9996c0324344830e -
Trigger Event:
push
-
Statement type:
File details
Details for the file riotskillissue-0.1.5-py3-none-any.whl.
File metadata
- Download URL: riotskillissue-0.1.5-py3-none-any.whl
- Upload date:
- Size: 81.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c6a08f1994eff8db321d43c68db63d0b93640204058e329b14eaaa0be29e83
|
|
| MD5 |
cc5a99333fff20e56cc4211709dd0797
|
|
| BLAKE2b-256 |
17a384393eb1304bc656950172b0cc0a49dced8414d759f0f9481b34932043d8
|
Provenance
The following attestation bundles were made for riotskillissue-0.1.5-py3-none-any.whl:
Publisher:
publish.yml on Demoen/riotskillissue
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
riotskillissue-0.1.5-py3-none-any.whl -
Subject digest:
95c6a08f1994eff8db321d43c68db63d0b93640204058e329b14eaaa0be29e83 - Sigstore transparency entry: 928215753
- Sigstore integration time:
-
Permalink:
Demoen/riotskillissue@3c7db91aab469b9bb483fa6b9996c0324344830e -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/Demoen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3c7db91aab469b9bb483fa6b9996c0324344830e -
Trigger Event:
push
-
Statement type: