Skip to main content

Complete Python interface for the Valorant API. Works right out of the box!

Project description

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.

Project details


Download files

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

Source Distribution

valorant-1.0.4.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

valorant-1.0.4-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-1.0.4.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for valorant-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5cd8eafbbd45ac361a0ecb19481a0602cc8b897fc9172b8a3f271d14fed433d4
MD5 3f7fbdefb39af19bb701a3e250f9dec9
BLAKE2b-256 d63a7b8141b407f1756a93a62021a583d72a9a5a6b6069e00bd012d26b0f9458

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for valorant-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9b09cccf47189fe7f8cde7252b4f5503cca872f884c87b39fba977192291b33f
MD5 6f7bbceb1a6192c8f78b6e09e5dec262
BLAKE2b-256 936b3fdb2767a1be42ecb93eb52c672774639b41589545819bf765357f852360

See more details on using hashes here.

Supported by

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