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.5.tar.gz
(44.0 kB
view details)
Built Distribution
File details
Details for the file valorant.py-1.0.5.tar.gz
.
File metadata
- Download URL: valorant.py-1.0.5.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c4a420d41b30d19394d860ac9ad969f467e1862ccc29d39b4f4ebc3f95b35c |
|
MD5 | c6fc5a6bf1fc2411a393534154d4e2a7 |
|
BLAKE2b-256 | 44f191b53a5513119515907f02edc9a0c4b20b1bda828029e8837990d9976eb4 |
File details
Details for the file valorant.py-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: valorant.py-1.0.5-py3-none-any.whl
- Upload date:
- Size: 94.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baaca9c8795ca6b7dbb491ea9c80039f45af2d43a1082fdd4608f530fa8f3cd4 |
|
MD5 | 1a5e29354b7ff24f560a5fdf911e7e94 |
|
BLAKE2b-256 | cefbb23a73a7c35d39baeafb8b8bd675b9d6825b241a451e052edd8dc53a9f19 |