An unofficial synchronous client package for interacting with Riot Games' Valorant API endpoints.
Project description
valorant.py
valorant.py
is an unofficial API wrapper for Riot Games' Valorant API endpoints. It's modern, easy to use, feature-rich, and intuitive! Implemented with object oriented designs and explicit reloads to prevent 429
s, valorant.py is the best Valorant API wrapper out there!
Updates
Most recent version: 0.4.0
Changes:
- Added
AsyncClient
- Added
asyncio.run
to namespace - Updated some docstrings and type-hinting
Installation
Manager | Command |
---|---|
PIP | pip install valorant |
Poetry | python -m poetry add valorant |
Easy Install | easy_install valorant |
Usage
Quickstart:
import valorant
KEY = "RGAPI-Key-Here"
client = valorant.Client(KEY)
agents = client.get_characters()
for agent in agents:
print(agent.name)
Asynchronous Client:
import valorant
KEY = "RGAPI-Key-Here"
client = valorant.AsyncClient(KEY)
async def _main():
agents = await client.get_characters()
for agent in agents:
print(agent.name)
valorant.run(_main())
Documentation
You can find all of valorant.py
's documentation here
. I plan on generating package docs with Sphinx eventually...
Contributing
- Fork the repository:
Fork
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request! 🎉
You can also re-create these steps with GitHub Desktop, Visual Studio Code, or whatever version control UI you prefer.
Final Note
Thanks for taking the time to check out valorant.py
! 🎉
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
Built Distribution
File details
Details for the file valorant-0.4.0.tar.gz
.
File metadata
- Download URL: valorant-0.4.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.57.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0688fba80487d11f59b88860b08b78aaa921b99881578575ddc4b65be29dd9a5 |
|
MD5 | c2c46ea435be5c177064bb72cb64171f |
|
BLAKE2b-256 | ec4b4a99554445e3d2589d5e964a1b4a49a0214f58015742c9406c9271edbffc |
File details
Details for the file valorant-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: valorant-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.57.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6120a115a46c864718318047a5698a4c653f236c79e2cda9e1f1b8e9de855af9 |
|
MD5 | 0dffd4b24f8358a59942634face1a290 |
|
BLAKE2b-256 | 2281a7e8c568125721661dc208de1fbe7b8ecf507507c84f0d82df22e377b5a9 |