An Asynchronous Unofficial Valorant API Wrapper for Python
Project description
valorant
A modern, easy to use, feature-rich, and async ready API wrapper for Valorant API written in Python.
Key Features
- Modern Pythonic API using
async
andawait
.
Installing
Python 3.8 or higher is required
Windows:
$ pip install -U valorant.py
Linux/MacOS:
$ python3 -m pip install -U valorant.py
Quick Example
import asyncio
import valorant
async def main():
client = valorant.Client(valorant.Locale.thai) # set default locale to thai
async with client:
weapon = client.get_weapon('9c82e19d-4575-0200-1a81-3eacf00cf872') # Vandal
assert weapon is not None
for skin in weapon.skins:
print(skin.display_name) # default locale
print(skin.display_icon)
# specify locale
print(skin.display_name.ja_JP)
print(skin.display_name.japanese)
print(skin.display_name.from_locale(valorant.Locale.japanese))
if skin.theme is not None:
print(skin.theme.display_name)
print(skin.theme.display_icon)
if skin.content_tier is not None:
print(skin.content_tier.display_name)
print(skin.content_tier.display_icon)
for level in skin.levels:
print(level.display_name)
for chroma in skin.chromas:
print(chroma.display_name)
asyncio.run(main())
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project inspired by
- discord.py the Discord API wrapper for Python.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
valorant.py-1.0.3.tar.gz
(45.5 kB
view hashes)
Built Distribution
Close
Hashes for valorant.py-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91246cc46f3dc08f40978eacbbbe8c1666ae14b12c9e68b056027f3829018c0c |
|
MD5 | fac74644fd4ddf1f57d18ff752b0663b |
|
BLAKE2b-256 | 7dd7e06181d0791892c0767e8fd47c07964be80f0ca0d3e832bae1191b0ed5db |