Skip to main content

An unofficial synchronous client package for interacting with Riot Games' Valorant API endpoints.

Project description

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!

Updates

Most recent version: 0.4.3

Changes: just some bug hotfixes

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())

Local Client:

This is intended for use with the game locally. Eases the use of doing things like getting live match data, chat sessions, friend requests, etc. Doesn't need an access key. The current Local Client is a work-in-progress and is unstable.

import valorant

client = valorant.LocalClient()

print(client.get_session())

Documentation

The public API documentation for valorant.py is hosted here.

If you're making edits to the documentation, you can generate the HTML and start a local server by running bash bin/docs.sh in the repository directory. This requires Ruby 2.5 or higher (Sorry if you have to install Ruby just to edit the docs =P).

Contributing

  1. Fork the repository: Fork
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -a -m 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request! 🎉

You can also re-create these steps with GitHub Desktop, Visual Studio Code, or whatever git version control UI you prefer. You don't have to, but I use prefixes for all my commits (i.e ✨: add asyncio run to package namespace). I have a personal style guide that I use, which you can find here.

Final Note

Thanks for taking the time to check out valorant.py! 🎉

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-0.5.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

valorant-0.5.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-0.5.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for valorant-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1c41cc744ce8bc2e61d49e1a3e5ac2e4066e7e8ee3cdc082873ac0c6b2409971
MD5 a41b86fbe49e8d368579a7414743e41b
BLAKE2b-256 57fc9d7f6f015d79ecc989b6a62731f9178ec4588f043e847c608f29f5ad283a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for valorant-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed1bbacb6043623fef0058cedd315d391bad62afcf74cc5f02bd529b06478422
MD5 87e9137e670f65c394a7e2e680bfffaa
BLAKE2b-256 0d9da38b6f48590b650270030827a4ba0f789d6d4f1a2b1125cb028eb4f24a88

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