ValLocal
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:
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
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
Release files for ValLocal 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ValLocal-0.1.1.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ValLocal-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.1 kB
Release files / ValLocal-0.1.1.tar.gz
| Download URL | ValLocal-0.1.1.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d06b23cf2b8a4f5ba61e111c0e7ca15324c02929baac46c64f00abbfab13941f
|
|
BLAKE2b-256 checksum How to use checksums |
e8f0f763d4f07be450995586ab25e0903ecba91cbc1e7c50caa744b13d7e1f44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / ValLocal-0.1.1-py3-none-any.whl
| Download URL | ValLocal-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2422c927cfd7c8049a66d197a4be314d9e551b3e0fad2f78f17500b3314397b2
|
|
BLAKE2b-256 checksum How to use checksums |
31025b73990a6b04cf8354dc7722be8321536cae72e826597dbcc1fb2bc4daf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|