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 ValLocalValLib contains this basic building blocks:
LockFilea dataclass containing the lockfile data
And the following methods:
get_lockfileto get the lockfile as aLockFileinstancelocal_apito make requests to the RiotClient, usingLockFilelocal_authto 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