A modern, easy to use, feature-rich, and async ready API wrapper for Valorant API written in 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.
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.8.tar.gz
(45.3 kB
view details)
Built Distribution
File details
Details for the file valorant_py-1.0.8.tar.gz
.
File metadata
- Download URL: valorant_py-1.0.8.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e9d3f20c9340b3ddc3a9e08647f4c3b745cf018b6f25c2be8aa6a118e1d929 |
|
MD5 | 829dcc64564f616c48feff4e7ce06aeb |
|
BLAKE2b-256 | fd026c772681c9b08620cfc9022ebc5e7c1d3023ac612f8940404ed1bc0b4608 |
File details
Details for the file valorant.py-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: valorant.py-1.0.8-py3-none-any.whl
- Upload date:
- Size: 96.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1611f4a00242d5d8b0acc16d0d87c36f9676c50c33986cece350fd95a1c9875 |
|
MD5 | e8326cf4d4cbda37bff8dc2b8611cd56 |
|
BLAKE2b-256 | 642068cf1380cd56484465d045abf366a5dd33d99dcc29a79243cda741ed41a2 |