No project description provided
Project description
valorant.py
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
- Fork the repository:
Fork
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -a -m 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file valorant-1.0.0.tar.gz
.
File metadata
- Download URL: valorant-1.0.0.tar.gz
- Upload date:
- Size: 11.2 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/4.11.2 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74648026f4d6344e4177611729b2de58364393b68b17a2ff0fea4fb62e7ac94 |
|
MD5 | 4c49efa09dc48bfb2b7a1873fd8579f2 |
|
BLAKE2b-256 | 53d0f352faaeee1b6a36a0dcda4d530aa651b1553388b7dd08d6c725a90e4d4d |
File details
Details for the file valorant-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: valorant-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.6 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/4.11.2 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af2e1274a240fea859fa8c48ebd9b7cac48a25d658ac047ceffcc667bce752b |
|
MD5 | 82ee60925068cb5b643a22e30dfda36d |
|
BLAKE2b-256 | 7e29b67dfaf7c3013ea1b1cc18684222c8fa3ed06d56fe4b45664b2ebde2cc89 |