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.0

Changes:

  • Added AsyncClient
  • Added asyncio.run to namespace
  • Updated some docstrings and type-hinting

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

Documentation

You can find all of valorant.py's documentation here. I plan on generating package docs with Sphinx eventually...

Contributing

  1. Fork the repository: Fork
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am '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 version control UI you prefer.

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

Uploaded Source

Built Distribution

valorant-0.4.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-0.4.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for valorant-0.4.1.tar.gz
Algorithm Hash digest
SHA256 914fc10425b21b8c3cbcbceedd970c1ee77bd8d87b4fc3513244aa319d217230
MD5 4d495e54867544388697ff9f86da660a
BLAKE2b-256 e561c9ba93ba02f6a9f9907af7e757f51b9a80d9dabee30d8e6f704448979a10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for valorant-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3a79a8eead5fd0766b9815b40f4bff68d7d4636f5434379e9fee04c19a52621
MD5 35eb1fbbe0a85f973a97e6cfd202e5b7
BLAKE2b-256 eba14f07304ccc7f17d146796764c324191f0dd0aa32bf13d861c1cd2de5fe17

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