Skip to content

ValUtils/ValLocal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValLocal

PyPI - Version GitHub deployments GitHub

A Python module for interacting with the RiotClient local api.

Features

  • Automated lockfile grabbing
  • Request method
  • Riot auth

Installation

The preferred method of installation is through pip but if you know better use the package manager that you want.

pip install ValLocal

Reference

Basic structure

ValLib contains this basic building blocks:

  • LockFile a dataclass containing the lockfile data

And the following methods:

  • get_lockfile to get the lockfile as a LockFile instance
  • local_api to make requests to the RiotClient, using LockFile
  • local_auth to get riot auth, using LockFile

Ussage

import ValLocal

lock = ValLocal.get_lockfile()
api_help = ValLocal.local_api(lock, "GET", "/help").text
print(api_help)

Auth

Getting auth for remote endpoints

import ValLocal

lock = ValLocal.get_lockfile()
auth = ValLocal.local_auth(lock)

This is the same auth as ValLib ExtraAuth and it can be used both in ValLib api and ValWrap endpoints.

Roadmap

  • Async
  • WebSockets
  • Better documentation

Acknowledgements

  • Thanks to Techdoodle for his API docs
  • Thanks to the Valorant App Developers discord

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages