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.1.tar.gz (6.1 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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-0.3.1.tar.gz
  • Upload date:
  • Size: 6.1 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.2 CPython/3.8.7

File hashes

Hashes for valorant-0.3.1.tar.gz
Algorithm Hash digest
SHA256 602aee5d5602c2dd01f9019ad6c0a7ca73e4496f4cf60c1453018ac2c4a38fa5
MD5 89be76f04cbba9504cbacfd6ad6923c3
BLAKE2b-256 3dbe54af8a2a9b7a4b0273c42c193382fcaa0e7c54e5bf9005694db668a9f256

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.2 CPython/3.8.7

File hashes

Hashes for valorant-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0aee6e6d81818118148479ae8c7fa874f31b2c517f86aa64251229da3fa9258
MD5 a37c4ab3b9766626b5951df56ac66e02
BLAKE2b-256 927d426caf16a29e05a165ef56359eb92910c4f8b193829a5feecbe09946b7d9

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