Skip to main content

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

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)

Source distribution for ValLocal 0.1.1
File Size Uploaded
ValLocal-0.1.1.tar.gz 16.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ValLocal 0.1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page