Skip to main content

No project description provided

Project description

valorant.py

GitHub Actions valorant on PyPI Downloads License Code style: black Contribute Discord Chat

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
PIPEnv pipenv install 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 my Community Discord Server.

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.

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

Uploaded Source

Built Distribution

valorant-1.0.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-1.0.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/3.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for valorant-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d8e2a32ed941e6812ab0ce103947e4c94463db1f0114bf2da36d890e727c5f8e
MD5 60808989a9cf681b9d0c76c6c40b1b1f
BLAKE2b-256 1e755fc41a1d91661a57671f79c2ce0ff3582075c0612fd124cc72af14c31357

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/3.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for valorant-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f50458be600f6382aa888cc11c2f98ec6ebbdf1ac0a29b0ea1aac5d5465d8d1
MD5 75e781a3dabb98aba46c73f808f6dd19
BLAKE2b-256 2b6e1e476712e77c1a1fd0a28d4b11a9df21861e2c4d8e25b669f66582a09fb1

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