Skip to main content

valorant.py

GitHub Actions valorant on PyPI Downloads License Code style: black Contribute

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 429s, valorant.py is the best Valorant API wrapper out there!

Update Notice:

Riot recently released a new endpoint along Episode 2: Leaderboards! Leaderboards in valorant.py support pagination and attribute finding. Take a look at the following snippet:

import valorant

KEY = "RGAPI-Key-Goes-Here"
client = valorant.Client(kEY)

page1 = client.get_leaderboard(size=25, page=0)
page2 = client.get_leaderboard(size=25, page=1)

print(page1.players.find(3, "leaderboardRank"))
print(page2.players.find("haley", "gameName"))

Overview

Installation

Manager Command
pip pip install valorant
poetry python -m poetry add valorant
easy_install easy_install valorant

Usage

Quickstart Guide:

import valorant

KEY = "RGAPI-Key-Goes-Here"
client = valorant.Client(KEY, locale=None)

maps = client.get_maps()
agents = client.get_characters()

print(agents.get("Viper"))
print(maps.get("Ascent"))

Documentation

valorant.py Documentation

Contributing

Bug reports, additional endopint coverage, and other fun stuff is always welcome in issues!

  1. Clone the repository with git:

    • git clone https://github.com/frissyn/valorant.py.git
    • cd valorant
  2. Make your changes

  3. Create a pull request describing what you changed.

  4. Squash your commits with a reference to your pull request.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

valorant-0.3.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

valorant-0.3.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file valorant-0.3.0.tar.gz.

File metadata

  • Download URL: valorant-0.3.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for valorant-0.3.0.tar.gz
Algorithm Hash digest
SHA256 42d343aac74bf3c521d6f0670762a076019598744465fd478bfc3c6785c1fa22
MD5 7a2d78589de59c1a73eec9821faf36ef
BLAKE2b-256 2d1be29a5316ee572f4b2e242445b3b65830db30ec05abbdd9f021c155340fbe

See more details on using hashes here.

File details

Details for the file valorant-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: valorant-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for valorant-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b72fcd3d634db0625969a0e1b8a2bc1d45768a0b766ab2743a6e4aa25cc8f14
MD5 7d7454e7036089f9737548a04e832b15
BLAKE2b-256 b9efe7c09abcb71e8091bf0707287ccde0abbc8359a3d61f5b04c5e145bf8b88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page