Skip to main content

valorant.py

Actions PyPI Downloads LICENSE Discord

valorant.py is an unofficial API wrapper for Riot Games' Valorant API endpoints. It's modern, easy to use, feature-rich, and intuitive!

Features

  • Simple: High-level abstraction of API interactions; easy to use and easy to customize.

  • Lightweight: Doesn't rely on any external dependencies, minimal package size.

  • Extensive: Covers all Valorant related endpoints from the Riot Games API. Also includes Account coverage.

  • Fast: HTTP requests and object instancing optimized to use minimal resources and complete tasks quickly!

  • Intuitive: Complete auto-completion, docstrings, and type-hinting for all library objects and variables.

Installation

valorant.py requires Python 3.8 or higher.

Manager Command
PIP pip install valorant
Poetry poetry add valorant

Usage

Take a look at the examples/ folder for more usage snippets!

Quickstart:

import valorant

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

agents = client.get_characters()

print(agents.get("Viper"))

Local Client:

import valorant

client = valorant.LocalClient()

print(client.get_session())

NOTE: The Local Client interacts with the Client API that Valorant uses while the game is running on your system. This means access to current player, friend requests, shop, etc. The Local Client is currently unstable. valorant.py is not liable for any punishment you may recieve should you use its tools to break Valorant ToS. (i.e Auto-Agent Selection)

Documentation

The public API documentation for valorant.py is hosted on ReadTheDocs.io.

Use bash bin/docs to start the documentation server locally. This uses Ruby's WEBrick gem.

Help and Questions

Have a bug or issue? Need help with the API? Open an issue or hop in the #valorant-py channel of the Frisscraft Community Discord Server.

Contributing

Head over to the Contributing Guide page.

Release files for valorant 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for valorant 1.0.4
File Size Uploaded
valorant-1.0.4.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for valorant 1.0.4
File Interpreter ABI Platform
valorant-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 36.5 kB

Release files / valorant-1.0.4.tar.gz

Download URL valorant-1.0.4.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5cd8eafbbd45ac361a0ecb19481a0602cc8b897fc9172b8a3f271d14fed433d4
BLAKE2b-256 checksum
How to use checksums
d63a7b8141b407f1756a93a62021a583d72a9a5a6b6069e00bd012d26b0f9458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release files / valorant-1.0.4-py3-none-any.whl

Download URL valorant-1.0.4-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b09cccf47189fe7f8cde7252b4f5503cca872f884c87b39fba977192291b33f
BLAKE2b-256 checksum
How to use checksums
936b3fdb2767a1be42ecb93eb52c672774639b41589545819bf765357f852360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page