A Python module for interacting with the RiotClient local api.
- Automated lockfile grabbing
- Request method
- Riot auth
The preferred method of installation is through pip
but if you know better use the package manager that you want.
pip install ValLocal
ValLib contains this basic building blocks:
LockFile
a dataclass containing the lockfile data
And the following methods:
get_lockfile
to get the lockfile as aLockFile
instancelocal_api
to make requests to the RiotClient, usingLockFile
local_auth
to get riot auth, usingLockFile
import ValLocal
lock = ValLocal.get_lockfile()
api_help = ValLocal.local_api(lock, "GET", "/help").text
print(api_help)
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.
- Async
- WebSockets
- Better documentation
- Thanks to Techdoodle for his API docs
- Thanks to the Valorant App Developers discord