SkillAgentSearch skills...

Valapi.py

A Valorant API wrapper and Riot XMPP client.

Install / Use

/learn @akex06/Valapi.py
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ValAPI.py

ValAPI.py is a Valorant API wrapper and XMPP client.

Examples

Getting your player ID

from valorant import Valorant


player = Valorant("Lorem", "Ipsum")
player_id = player.user_info.player_id
print(f"Your player ID is {player_id}")

Implementing your own XMPP

import asyncio
from valorant import XMPP
from xml.etree.ElementTree import Element


class MyCustomXMPPClient(XMPP):
    def __init__(
            self,
            username: str,
            password: str
    ) -> None:
        super().__init__(username, password)

    async def process_message(self, element: Element) -> None:
        pass

    async def process_iq(self, element: Element) -> None:
        pass

    async def process_presence(self, element: Element) -> None:
        pass


async def main():
    xmpp_client = MyCustomXMPPClient("Lorem", "Ipsum")
    await xmpp_client.connect()
    await xmpp_client.start_auth_flow()
    await xmpp_client.process_messages()
    
asyncio.run(main())
View on GitHub
GitHub Stars6
CategoryDevelopment
Updated11mo ago
Forks1

Languages

Python

Security Score

77/100

Audited on May 4, 2025

No findings