Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staciax/valorant
An API wrapper for Valorant-API.com written in Python.
https://github.com/staciax/valorant
asynchronous python python3 valorant valorant-api
Last synced: 9 days ago
JSON representation
An API wrapper for Valorant-API.com written in Python.
- Host: GitHub
- URL: https://github.com/staciax/valorant
- Owner: staciax
- License: mit
- Created: 2023-08-08T09:52:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-13T18:25:31.000Z (9 months ago)
- Last Synced: 2024-04-14T08:52:20.736Z (9 months ago)
- Topics: asynchronous, python, python3, valorant, valorant-api
- Language: Python
- Homepage:
- Size: 190 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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` and `await`.## Installing
Python 3.8 or higher is requiredWindows:
```
$ pip install -U valorant.py
```
Linux/MacOS:
```
$ python3 -m pip install -U valorant.py
```
## Quick Example
```py
import asyncio
import valorantasync 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 Nonefor 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](LICENSE) file for details.## Links
- [Valorant API](https://valorant-api.com)
- [Official Discord Server](https://discord.com/invite/9V5MWgD)